summaryrefslogtreecommitdiffstats
path: root/backend_shinkos2145.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-05-21 11:07:49 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-05-22 18:59:09 -0400
commit971b0ccf4d8dc058af41ea721f32228ce7f9a720 (patch)
treecc6c82a07b33f7f576f0bcf6d17f8e85e0b1a703 /backend_shinkos2145.c
parent8b250e8d1d4998d1b8d9f04fbef296a09a880ed9 (diff)
downloadselphy_print-971b0ccf4d8dc058af41ea721f32228ce7f9a720.tar.gz
selphy_print-971b0ccf4d8dc058af41ea721f32228ce7f9a720.tar.bz2
selphy_print-971b0ccf4d8dc058af41ea721f32228ce7f9a720.zip
kodak: Add preliminary support for Kodak 7000-series, 8810, and 6900
6900 in particular is _very_ preliminary. Also unifies some more common sinfonia code.
Diffstat (limited to 'backend_shinkos2145.c')
-rw-r--r--backend_shinkos2145.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index 33a957f..e197a6e 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -1059,16 +1059,6 @@ static int shinkos2145_attach(void *vctx, struct libusb_device_handle *dev, int
return CUPS_BACKEND_OK;
}
-static void shinkos2145_cleanup_job(const void *vjob)
-{
- const struct sinfonia_printjob *job = vjob;
-
- if (job->databuf)
- free(job->databuf);
-
- free((void*)job);
-}
-
static void shinkos2145_teardown(void *vctx) {
struct shinkos2145_ctx *ctx = vctx;
@@ -1361,7 +1351,7 @@ struct dyesub_backend shinkos2145_backend = {
.init = shinkos2145_init,
.attach = shinkos2145_attach,
.teardown = shinkos2145_teardown,
- .cleanup_job = shinkos2145_cleanup_job,
+ .cleanup_job = sinfonia_cleanup_job,
.read_parse = shinkos2145_read_parse,
.main_loop = shinkos2145_main_loop,
.query_serno = shinkos2145_query_serno,