printing: add jobid_to_sysjob helper function
commit136f4d03f510e926cd206cb7358f790c7b5c215e
authorDavid Disseldorp <ddiss@samba.org>
Thu, 30 Oct 2014 00:37:46 +0000 (30 01:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:03 +0000 (18 21:09 +0100)
treef67592bf3f01ee3325b3fb8c40ab1a33a32a4292
parent7e486b942c7e5cd923bb9ced6b7bc9649bc7100e
printing: add jobid_to_sysjob helper function

Samba needs to deal with two types of print job identifiers, those
allocated by the printing backend (sysjob ids), and those allocated
by Samba's spoolss server (jobids).

This change adds a helper function to map spoolss jobids to sysjob ids,
to go alongside the corresponding sysjob to jobid mapping function.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 77b5be1742ee7aa2733a25bfa6a3af369f5c9401)
source3/include/printing.h
source3/printing/printing.c