summaryrefslogtreecommitdiffstats
path: root/backend_shinkos2145.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-03-16 15:35:00 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-03-16 15:35:00 -0400
commit693f0bbb284524101cee7e8f8331dac07590bdd1 (patch)
treefa0cf6d928245e3e8bb5918555dc2682ba573424 /backend_shinkos2145.c
parentc7e91edcda00517f9cfaf16ae45b043a69d2ca56 (diff)
downloadselphy_print-693f0bbb284524101cee7e8f8331dac07590bdd1.tar.gz
selphy_print-693f0bbb284524101cee7e8f8331dac07590bdd1.tar.bz2
selphy_print-693f0bbb284524101cee7e8f8331dac07590bdd1.zip
all: Move all backend names into aliases tables.
Update all printer entries to have unique names. As long as the USB VID/PID is unique, each "backend" appears unique!
Diffstat (limited to 'backend_shinkos2145.c')
-rw-r--r--backend_shinkos2145.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index 436f300..75d22c5 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -1750,10 +1750,15 @@ static int shinkos2145_query_serno(struct libusb_device_handle *dev, uint8_t end
#define USB_VID_SHINKO 0x10CE
#define USB_PID_SHINKO_S2145 0x000E
+static const char *shinkos2145_prefixes[] = {
+ "shinkos2145",
+ NULL
+};
+
struct dyesub_backend shinkos2145_backend = {
.name = "Shinko/Sinfonia CHC-S2145",
- .version = "0.49",
- .uri_prefix = "shinkos2145",
+ .version = "0.50",
+ .uri_prefixes = shinkos2145_prefixes,
.cmdline_usage = shinkos2145_cmdline,
.cmdline_arg = shinkos2145_cmdline_arg,
.init = shinkos2145_init,
@@ -1763,8 +1768,8 @@ struct dyesub_backend shinkos2145_backend = {
.main_loop = shinkos2145_main_loop,
.query_serno = shinkos2145_query_serno,
.devices = {
- { USB_VID_SHINKO, USB_PID_SHINKO_S2145, P_SHINKO_S2145, NULL},
- { 0, 0, 0, NULL}
+ { USB_VID_SHINKO, USB_PID_SHINKO_S2145, P_SHINKO_S2145, NULL, "shinkos2145"},
+ { 0, 0, 0, NULL, NULL}
}
};