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 12:42:11 +0000 (14:42 +0200)
commitb8926f63a3c11ea87eb425502b650f696c63306f
tree62e6f93740d75a995307e7685d7718446f4a8301
parent38551d2d9fc7c85db5b94040d429cdf28090a9f8
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