summaryrefslogtreecommitdiffstats
path: root/backend_common.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2015-08-12 22:56:29 -0400
committerSolomon Peachy <pizza@shaftnet.org>2015-08-12 22:56:29 -0400
commit7d92baee9b32bfdfcc05bbde05416a7cc3f09840 (patch)
tree03e5c1fbe774f593921ca440193a4882849aab94 /backend_common.h
parent6983fc380f2606c39c3cd74d8c288ffad43806f1 (diff)
downloadselphy_print-7d92baee9b32bfdfcc05bbde05416a7cc3f09840.tar.gz
selphy_print-7d92baee9b32bfdfcc05bbde05416a7cc3f09840.tar.bz2
selphy_print-7d92baee9b32bfdfcc05bbde05416a7cc3f09840.zip
all: Unified approach to extra_vid/pid/type
This required a modification to all attach() methods. Also, fix canonselphy's parsing/attachment code.
Diffstat (limited to 'backend_common.h')
-rw-r--r--backend_common.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/backend_common.h b/backend_common.h
index 1fd07ce..96156c5 100644
--- a/backend_common.h
+++ b/backend_common.h
@@ -91,7 +91,6 @@ enum {
P_ES1,
P_ES2_20,
P_ES3_30,
- P_ES40_CP790,
P_ES40,
P_CP790,
P_CP_XXX,
@@ -107,7 +106,9 @@ enum {
P_SONY_UPDR150,
P_SONY_UPCR10,
P_MITSU_D70X,
+ P_MITSU_K60,
P_MITSU_9550,
+ P_MITSU_9550S,
P_DNP_DS40,
P_DNP_DS80,
P_CITIZEN_CW01,
@@ -145,6 +146,7 @@ int send_data(struct libusb_device_handle *dev, uint8_t endp,
uint8_t *buf, int len);
int read_data(struct libusb_device_handle *dev, uint8_t endp,
uint8_t *buf, int buflen, int *readlen);
+int lookup_printer_type(struct dyesub_backend *backend, uint16_t idVendor, uint16_t idProduct);
/* Global data */
extern int terminate;
@@ -154,21 +156,6 @@ extern int extra_vid;
extern int extra_pid;
extern int extra_type;
-/* External data */
-extern struct dyesub_backend updr150_backend;
-extern struct dyesub_backend kodak6800_backend;
-extern struct dyesub_backend kodak605_backend;
-extern struct dyesub_backend kodak1400_backend;
-extern struct dyesub_backend shinkos1245_backend;
-extern struct dyesub_backend shinkos2145_backend;
-extern struct dyesub_backend shinkos6145_backend;
-extern struct dyesub_backend shinkos6245_backend;
-extern struct dyesub_backend canonselphy_backend;
-extern struct dyesub_backend mitsu70x_backend;
-extern struct dyesub_backend mitsu9550_backend;
-extern struct dyesub_backend dnpds40_backend;
-extern struct dyesub_backend cw01_backend;
-
/* CUPS compatibility */
#define CUPS_BACKEND_OK 0 /* Sucess */
#define CUPS_BACKEND_FAILED 1 /* Failed to print use CUPS policy */