summaryrefslogtreecommitdiff
path: root/backend/epsonds.h
diff options
context:
space:
mode:
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;