printing: add jobid_to_sysjob helper function
commit9f438fdbe309c6abeb86b7d1f2011716b7d8a0b4
authorDavid Disseldorp <ddiss@samba.org>
Thu, 30 Oct 2014 00:37:46 +0000 (30 01:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Nov 2014 20:21:11 +0000 (17 21:21 +0100)
tree7eddb2f36a1ff5bf7d41307eb4b9587ffa287779
parent00f6184e52b7b4a044b8696e02023cd548ce87aa
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