printing: add jobid_to_sysjob helper function
authorDavid Disseldorp <ddiss@samba.org>
Thu, 30 Oct 2014 00:37:46 +0000 (01:37 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 30 Oct 2014 05:52:04 +0000 (06:52 +0100)
commit77b5be1742ee7aa2733a25bfa6a3af369f5c9401
tree29ab5cdb6429bf259f7ae0ca5c799bc3948da664
parent229f8b324a0f4a77eed5ef5fcdf87a3758a50d66
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>
source3/include/printing.h
source3/printing/printing.c