s3-printing: return talloced print jobs
commit2f85c1fcf268e447303990e48b49b149020320d0
authorDavid Disseldorp <ddiss@samba.org>
Wed, 8 Feb 2012 15:55:40 +0000 (8 16:55 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 26 Jun 2012 14:10:39 +0000 (26 16:10 +0200)
treef3f2f457352dc5ba56fed82e4db70302e77acc44
parente1ddf8f0e41643933c2aa58dc9421cbc7631e2e5
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