summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-11 17:22:39 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-11 17:22:39 -0500
commitd9b5b63ff881497f6e1a33b0ce4e1087bd4131c2 (patch)
treef3dc51c114d2f3c9709f9fedc6d1e3b7ebcf2b61
parent0370ad740515b57cdc5cd2563ddf2e26421506f2 (diff)
downloadselphy_print-d9b5b63ff881497f6e1a33b0ce4e1087bd4131c2.tar.gz
selphy_print-d9b5b63ff881497f6e1a33b0ce4e1087bd4131c2.tar.bz2
selphy_print-d9b5b63ff881497f6e1a33b0ce4e1087bd4131c2.zip
mitsu9550: Move copy field to standard place in job header.
(Purely a cosmetic change, but it allows common code to display properly)
-rw-r--r--backend_mitsu9550.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend_mitsu9550.c b/backend_mitsu9550.c
index c7c1656..bcc1ffd 100644
--- a/backend_mitsu9550.c
+++ b/backend_mitsu9550.c
@@ -109,6 +109,9 @@ struct mitsu9550_cmd {
/* Private data structure */
struct mitsu9550_printjob {
+ size_t jobsize;
+ int copies;
+
uint8_t *databuf;
uint32_t datalen;
@@ -117,8 +120,6 @@ struct mitsu9550_printjob {
uint32_t plane_len;
int is_raw;
- int copies;
-
/* Parse headers separately */
struct mitsu9550_hdr1 hdr1;
int hdr1_present;
@@ -374,6 +375,8 @@ static int mitsu9550_read_parse(void *vctx, const void **vjob, int data_fd, int
}
memset(job, 0, sizeof(*job));
job->is_raw = 1;
+ job->jobsize = sizeof(*job);
+ job->copies = copies;
top:
/* Read in initial header */