s3-printing: return talloced print jobs
authorDavid Disseldorp <ddiss@samba.org>
Wed, 8 Feb 2012 15:55:40 +0000 (16:55 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Jul 2012 18:53:08 +0000 (20:53 +0200)
commit9d481ce29b1f47ffda2696862109eebfe942097c
tree4a31879fe1e6e6d2c34d8757100fa3170b0e93a2
parent7ba7b3678cd505dc4ccef25b6fc4db7bd4cc3442
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