diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-03-16 15:35:00 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2018-03-16 15:35:00 -0400 |
commit | 693f0bbb284524101cee7e8f8331dac07590bdd1 (patch) | |
tree | fa0cf6d928245e3e8bb5918555dc2682ba573424 /backend_shinkos1245.c | |
parent | c7e91edcda00517f9cfaf16ae45b043a69d2ca56 (diff) | |
download | selphy_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_shinkos1245.c')
-rw-r--r-- | backend_shinkos1245.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/backend_shinkos1245.c b/backend_shinkos1245.c index ba1d0e6..ca9a19f 100644 --- a/backend_shinkos1245.c +++ b/backend_shinkos1245.c @@ -1641,10 +1641,15 @@ static int shinkos1245_query_serno(struct libusb_device_handle *dev, uint8_t end #define USB_VID_SHINKO 0x10CE #define USB_PID_SHINKO_S1245 0x0007 +static const char *shinkos1245_prefixes[] = { + "shinkos1245", + NULL +}; + struct dyesub_backend shinkos1245_backend = { .name = "Shinko/Sinfonia CHC-S1245", - .version = "0.18", - .uri_prefix = "shinkos1245", + .version = "0.19", + .uri_prefixes = shinkos1245_prefixes, .cmdline_usage = shinkos1245_cmdline, .cmdline_arg = shinkos1245_cmdline_arg, .init = shinkos1245_init, @@ -1654,8 +1659,8 @@ struct dyesub_backend shinkos1245_backend = { .main_loop = shinkos1245_main_loop, .query_serno = shinkos1245_query_serno, .devices = { - { USB_VID_SHINKO, USB_PID_SHINKO_S1245, P_SHINKO_S1245, NULL}, - { 0, 0, 0, NULL} + { USB_VID_SHINKO, USB_PID_SHINKO_S1245, P_SHINKO_S1245, NULL, "shinkos1245"}, + { 0, 0, 0, NULL, NULL} } }; |