s3-printing: return talloced print jobs
commit4e3d1638add6a4bd13a02d6b370003c80c4f8c4a
authorDavid Disseldorp <ddiss@samba.org>
Wed, 8 Feb 2012 15:55:40 +0000 (8 16:55 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Jul 2012 19:34:20 +0000 (24 21:34 +0200)
tree4f61f7b9c9ef697ac58eb7448e97456ed6e774e1
parent84c0836c552e4706cb3ab87349207e865cd6fd16
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.
(cherry picked from commit 9d481ce29b1f47ffda2696862109eebfe942097c)
source3/include/printing.h
source3/printing/printing.c
source4/torture/rpc/spoolss.c