summaryrefslogtreecommitdiffstats
path: root/backend_mitsup95d.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_mitsup95d.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_mitsup95d.c')
-rw-r--r--backend_mitsup95d.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/backend_mitsup95d.c b/backend_mitsup95d.c
index cb9b469..9f26454 100644
--- a/backend_mitsup95d.c
+++ b/backend_mitsup95d.c
@@ -505,6 +505,11 @@ static int mitsup95d_get_status(struct mitsup95d_ctx *ctx)
return CUPS_BACKEND_OK;
}
+static void mitsup95d_cmdline(void)
+{
+ DEBUG("\t\t[ -s ] # Query status\n");
+}
+
static int mitsup95d_cmdline_arg(void *vctx, int argc, char **argv)
{
struct mitsup95d_ctx *ctx = vctx;
@@ -529,21 +534,28 @@ static int mitsup95d_cmdline_arg(void *vctx, int argc, char **argv)
return 0;
}
+static const char *mitsup95d_prefixes[] = {
+ "mitsup9x",
+ "mitsup95d", "mitsup93d",
+ NULL
+};
+
/* Exported */
struct dyesub_backend mitsup95d_backend = {
.name = "Mitsubishi P93D/P95D",
- .version = "0.06",
- .uri_prefix = "mitsup95d",
+ .version = "0.07",
+ .uri_prefixes = mitsup95d_prefixes,
.cmdline_arg = mitsup95d_cmdline_arg,
+ .cmdline_usage = mitsup95d_cmdline,
.init = mitsup95d_init,
.attach = mitsup95d_attach,
.teardown = mitsup95d_teardown,
.read_parse = mitsup95d_read_parse,
.main_loop = mitsup95d_main_loop,
.devices = {
- { USB_VID_MITSU, USB_PID_MITSU_P93D, P_MITSU_P93D, NULL},
- { USB_VID_MITSU, USB_PID_MITSU_P95D, P_MITSU_P95D, NULL},
- { 0, 0, 0, NULL}
+ { USB_VID_MITSU, USB_PID_MITSU_P93D, P_MITSU_P93D, NULL, "mitsup95d"},
+ { USB_VID_MITSU, USB_PID_MITSU_P95D, P_MITSU_P95D, NULL, "mitsup93d"},
+ { 0, 0, 0, NULL, NULL}
}
};