summaryrefslogtreecommitdiff
path: root/backend/epsonds.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-05-24 21:03:56 +0200
commit58912f68c2489bcee787599837447e0d64dfd61a (patch)
treedda50aadde35fe152da1a8d50769987ace0f1496 /backend/epsonds.h
parentcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff)
New upstream version 1.0.27upstream/1.0.27
Diffstat (limited to 'backend/epsonds.h')
-rw-r--r--backend/epsonds.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/backend/epsonds.h b/backend/epsonds.h
index 024773b..0427ef3 100644
--- a/backend/epsonds.h
+++ b/backend/epsonds.h
@@ -43,13 +43,6 @@
#include "sane/sanei_usb.h"
#include "sane/sanei_jpeg.h"
-#ifdef __GNUC__
-#define __func__ __FUNCTION__
-#else
-#define __func__ "(undef)"
-/* I cast my vote for C99... :) */
-#endif
-
#define EPSONDS_CONFIG_FILE "epsonds.conf"
#ifndef PATH_MAX
@@ -94,7 +87,7 @@ typedef enum
{ /* hardware connection to the scanner */
SANE_EPSONDS_NODEV, /* default, no HW specified yet */
SANE_EPSONDS_USB, /* USB interface */
- SANE_EPSONDS_NET /* network interface (unsupported)*/
+ SANE_EPSONDS_NET /* network interface */
} epsonds_conn_type;
/* hardware description */
@@ -180,6 +173,10 @@ struct epsonds_scanner
struct jpeg_decompress_struct jpeg_cinfo;
struct jpeg_error_mgr jpeg_err;
SANE_Bool jpeg_header_seen;
+
+ /* network buffers */
+ unsigned char *netbuf, *netptr;
+ size_t netlen;
};
typedef struct epsonds_scanner epsonds_scanner;