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>
Mon, 25 Jun 2012 13:26:01 +0000 (15:26 +0200)
commit91a31f0303cf79dec89c3bef95aadd3153f54d62
tree38fabd081e6fc3729e67c8e3345d510f160ec70e
parenta4a8bd335167c9c9aeb152ccc1010f30c13b8f51
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
source4/torture/rpc/spoolss.c