summaryrefslogtreecommitdiff
path: root/backend/epson2-ops.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-06 14:00:40 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-06 14:00:40 +0200
commit6e9c41a892ed0e0da326e0278b3221ce3f5713b8 (patch)
tree2e301d871bbeeb44aa57ff9cc070fcf3be484487 /backend/epson2-ops.h
Initial import of sane-backends version 1.0.24-1.2
Diffstat (limited to 'backend/epson2-ops.h')
-rw-r--r--backend/epson2-ops.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/backend/epson2-ops.h b/backend/epson2-ops.h
new file mode 100644
index 0000000..9c36326
--- /dev/null
+++ b/backend/epson2-ops.h
@@ -0,0 +1,52 @@
+/*
+ * epson2.c - SANE library for Epson scanners.
+ *
+ * Based on Kazuhiro Sasayama previous
+ * Work on epson.[ch] file from the SANE package.
+ * Please see those files for additional copyrights.
+ *
+ * Copyright (C) 2006-07 Tower Technologies
+ * Author: Alessandro Zummo <a.zummo@towertech.it>
+ *
+ * This file is part of the SANE package.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, version 2.
+ */
+
+/* some defines to make handling the TPU easier */
+#define FILM_TYPE_NEGATIVE (1L << 0)
+#define FILM_TYPE_SLIDE (1L << 1)
+
+#define e2_model(s,m) e2_dev_model((s)->hw,(m))
+
+extern int sanei_scsi_max_request_size;
+extern int *gamma_params;
+
+extern void e2_dev_init(Epson_Device *dev, const char *devname, int conntype);
+extern SANE_Status e2_dev_post_init(struct Epson_Device *dev);
+extern SANE_Bool e2_dev_model(Epson_Device *dev, const char *model);
+extern void e2_set_cmd_level(SANE_Handle handle, unsigned char *level);
+extern SANE_Status e2_set_model(Epson_Scanner *s, unsigned char *model, size_t len);
+extern SANE_Status e2_add_resolution(Epson_Device *dev, int r);
+extern void e2_set_fbf_area(Epson_Scanner *s, int x, int y, int unit);
+extern void e2_set_adf_area(struct Epson_Scanner *s, int x, int y, int unit);
+extern void e2_set_tpu_area(struct Epson_Scanner *s, int x, int y, int unit);
+extern void e2_add_depth(Epson_Device *dev, SANE_Word depth);
+extern SANE_Status e2_discover_capabilities(Epson_Scanner *s);
+extern SANE_Status e2_set_extended_scanning_parameters(Epson_Scanner *s);
+extern SANE_Status e2_set_scanning_parameters(Epson_Scanner *s);
+extern void e2_setup_block_mode(Epson_Scanner *s);
+extern SANE_Status e2_init_parameters(Epson_Scanner *s);
+extern void e2_wait_button(Epson_Scanner *s);
+extern SANE_Status e2_check_warm_up(Epson_Scanner *s, SANE_Bool *wup);
+extern SANE_Status e2_wait_warm_up(Epson_Scanner *s);
+extern SANE_Status e2_check_adf(Epson_Scanner *s);
+extern SANE_Status e2_start_std_scan(Epson_Scanner *s);
+extern SANE_Status e2_start_ext_scan(Epson_Scanner *s);
+extern void e2_scan_finish(Epson_Scanner *s);
+extern void e2_copy_image_data(Epson_Scanner *s, SANE_Byte *data, SANE_Int max_length,
+ SANE_Int *length);
+extern SANE_Status e2_ext_read(struct Epson_Scanner *s);
+extern SANE_Status e2_block_read(struct Epson_Scanner *s);