From d1d790418230bed0f79942bd1f0838312bb8390c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 5 Jun 2012 08:29:56 +0200 Subject: [PATCH] s3:printing: add print_spool_rap_jobid() metze --- source3/include/printing.h | 1 + source3/printing/printspoolss.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/source3/include/printing.h b/source3/include/printing.h index 3551d8e62ad..4589b38bd8f 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -185,6 +185,7 @@ void print_spool_end(files_struct *fsp, enum file_close_type close_type); void print_spool_terminate(struct connection_struct *conn, struct print_file_data *print_file); +uint16_t print_spool_rap_jobid(struct print_file_data *print_file); /* The following definitions come from printing/printing.c */ diff --git a/source3/printing/printspoolss.c b/source3/printing/printspoolss.c index 4f153f3da82..0706969e64d 100644 --- a/source3/printing/printspoolss.c +++ b/source3/printing/printspoolss.c @@ -34,6 +34,15 @@ struct print_file_data { uint16 rap_jobid; }; +uint16_t print_spool_rap_jobid(struct print_file_data *print_file) +{ + if (print_file == NULL) { + return 0; + } + + return print_file->rap_jobid; +} + void print_spool_terminate(struct connection_struct *conn, struct print_file_data *print_file); -- 2.11.4.GIT