diff options
| author | David Disseldorp <ddiss@samba.org> | 2014-10-30 01:37:46 +0100 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2014-10-30 06:52:04 +0100 |
| commit | 77b5be1742ee7aa2733a25bfa6a3af369f5c9401 (patch) | |
| tree | 29ab5cdb6429bf259f7ae0ca5c799bc3948da664 /source3/include | |
| parent | 229f8b324a0f4a77eed5ef5fcdf87a3758a50d66 (diff) | |
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>
Diffstat (limited to 'source3/include')
| -rw-r--r-- | source3/include/printing.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/printing.h b/source3/include/printing.h index ec5a53b7fd..563659a693 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -195,6 +195,7 @@ uint16_t print_spool_rap_jobid(struct print_file_data *print_file); uint32 sysjob_to_jobid_pdb(struct tdb_print_db *pdb, int sysjob); uint32 sysjob_to_jobid(int unix_jobid); +int jobid_to_sysjob_pdb(struct tdb_print_db *pdb, uint32_t jobid); bool print_notify_register_pid(int snum); bool print_notify_deregister_pid(int snum); bool print_job_exists(const char* sharename, uint32 jobid); |
