s3-printing: return talloced print jobs
authorDavid Disseldorp <ddiss@samba.org>
Wed, 8 Feb 2012 15:55:40 +0000 (16:55 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 22 Jun 2012 17:29:08 +0000 (19:29 +0200)
commit7ea56a5183b6914602ce3cbdf2b6c1e0594b9e73
tree36cb170d55772ea16b3951164db9949274940d5f
parentd0c7d261110200cb26fa4856bb696d6da20bf457
s3-printing: return talloced print jobs

print_job_find() currently returns print jobs to callers via a
statically allocated variable, this is particularly messy as the
device mode is talloced under the static variable.

This change adds or passes a talloc context to all callers, giving them
ownership of the returned print job.
source3/include/printing.h
source3/printing/printing.c