diff options
author | David Disseldorp <ddiss@samba.org> | 2012-02-08 18:47:11 +0100 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2012-06-26 16:10:39 +0200 |
commit | c29773d89036153a122f577ff9fb2a789e7f156f (patch) | |
tree | e4ec146dfa33a1e97d2d1ecebdd5ab30a68cf01e /source3/printing/print_cups.c | |
parent | 91cd9a47974e0099d550c88ee646ee3b1f44df72 (diff) | |
download | samba-c29773d89036153a122f577ff9fb2a789e7f156f.tar.gz samba-c29773d89036153a122f577ff9fb2a789e7f156f.tar.bz2 samba-c29773d89036153a122f577ff9fb2a789e7f156f.zip |
s3-printing: pass lpq command to job_submit
Currently the generic print backend does not fill the printing backend
job identifier (sysjob) on submission of a new job. The sysjob
identifier is required to correctly map jobs in the printer queue to
corresponding spoolss print jobs.
Passing the lpq command to job_submit allows the generic print backend
to check the printer queue for the new job following submission. This
behaviour will come in a later commit.
Diffstat (limited to 'source3/printing/print_cups.c')
-rw-r--r-- | source3/printing/print_cups.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 88f143c0c7..b5c7b0d4ec 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -852,7 +852,9 @@ static int cups_job_resume(int snum, struct printjob *pjob) * 'cups_job_submit()' - Submit a job for printing. */ -static int cups_job_submit(int snum, struct printjob *pjob) +static int cups_job_submit(int snum, struct printjob *pjob, + enum printing_types printing_type, + char *lpq_cmd) { TALLOC_CTX *frame = talloc_stackframe(); int ret = 1; /* Return value */ |