summaryrefslogtreecommitdiff
path: root/source3/include/printing.h
AgeCommit message (Collapse)AuthorFilesLines
2012-06-26s3-printing: pass lpq command to job_submitDavid Disseldorp1-1/+3
Currently the generic print backend does not fill the printing backend job identifier (sysjob) on submission of a new job. The sysjob identifier is required to correctly map jobs in the printer queue to corresponding spoolss print jobs. Passing the lpq command to job_submit allows the generic print backend to check the printer queue for the new job following submission. This behaviour will come in a later commit.
2012-06-26s3-printing: remove unused print_job_fname()David Disseldorp1-1/+0
2012-06-26s3-printing: return talloced print jobsDavid Disseldorp1-1/+3
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.
2012-06-26s3-printing: clean up print_job_pause/resume interfaceDavid Disseldorp1-4/+4
Currently both return a bool and sometimes set a werr pointer argument, always return werror instead.
2012-06-26s3-printing: remove print_parse_jobid()David Disseldorp1-1/+0
With all callers fixed, it is now safe to remove.
2012-06-26s3-printing: rename queue->job sysjobDavid Disseldorp1-1/+1
Print jobs maintain two job identifiers, the jobid allocated by the spoolss layer (pj->jobid), and the job identifier defined by the printing backend (pj->sysjob). Printer job queues currently only contain a single job identifier variable (queue->job), the variable is sometimes representative of the spoolss layer job identifier, and more often representative of the printing backend id. This change renames the queue job identifier from queue->job to queue->sysjob, in preparation for a change to only store the printing backend identifier.
2012-06-26s3-printing: store print jobid as part of struct printjobDavid Disseldorp1-1/+2
Printing code in some places relies upon the spool-file format to retrieve the print jobid. By storing the jobid as part of struct printjob, and hence in the printing TDB, we can move away from this ugly behaviour.
2012-06-06s3:printing: let print_spool_open() take a uint64_t vuidStefan Metzmacher1-1/+1
metze
2012-06-06s3:printing: add print_spool_rap_jobid()Stefan Metzmacher1-0/+1
metze
2012-04-06build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett1-1/+1
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
2011-08-02s3:smbd - Move printing queue stuffSimo Sorce1-2/+0
This way we can properly deal with pcap updates in the background queue process if it is enabled (on by default) and not perform these actions in the main smbd process. Signed-off-by: Günther Deschner <gd@samba.org>
2011-07-20s3-auth Use the common auth_session_infoAndrew Bartlett1-7/+7
This patch finally has the same structure being used to describe the authorization data of a user across the whole codebase. This will allow of our session handling to be accomplished with common code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett1-7/+7
This seperation between the structure used inside the auth modules and in the wider codebase allows for a gradual migration from struct auth_serversupplied_info -> struct auth_session_info (from auth.idl) The idea here is that we keep a clear seperation between the structure before and after the local groups, local user lookup and the session key modifications have been processed, as the lack of this seperation has caused issues in the past. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-20ldb: replace 'struct TDB_DATA' with 'TDB_DATA'Rusty Russell1-4/+2
The typedef is TDB2 compatible, the struct isn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-05-06s3: only include tdb headers where needed.Günther Deschner1-2/+5
Guenther
2011-03-29s3:printing Make print_queue_receive publicSimo Sorce1-0/+5
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-25s3-printing: move more printing defines out of includes.hGünther Deschner1-0/+30
Guenther
2011-02-22s3-printing: move more printing structs to printing.hGünther Deschner1-0/+40
Guenther
2011-02-22s3-printing: only include printing where really needed.Günther Deschner1-0/+23
Guenther
2010-10-20s3: Make "unpack_pjob" staticVolker Lendecke1-1/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 20 16:51:04 UTC 2010 on sn-devel-104
2010-09-09s3-printing: Make auth_serversupplied_info const.Andreas Schneider1-7/+7
2010-08-18s3-printing: Added function to update the queue.Andreas Schneider1-1/+1
2010-08-18s3: Use pipe_struct->client_id->name for pjob.clientmachineVolker Lendecke1-0/+1
2010-08-17s3: Remove unused "pos" arg from print_job_writeVolker Lendecke1-2/+1
2010-08-16s3-printing: Lift the use of smbd_server_fd from job_submit.Volker Lendecke1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-08-08s3: Lift the server_messaging_context from print_job_endpageVolker Lendecke1-1/+2
2010-08-08s3: Lift the server_messaging_context from print_job_writeVolker Lendecke1-1/+4
2010-08-08s3: Lift the server_messaging_context from print_job_set_nameVolker Lendecke1-1/+3
2010-08-08s3: Lift the server_messaging_context from pjob_deleteVolker Lendecke1-1/+0
2010-08-08s3: Lift the server_messaging_context from print_queue_statusVolker Lendecke1-1/+1
2010-08-08s3: Lift the server_messaging_context from print_job_endVolker Lendecke1-1/+2
2010-08-08s3: Lift the server_messaging_context from print_queue_lengthVolker Lendecke1-1/+2
2010-08-08s3: Lift the smbd_messaging_context from print_queue_purgeVolker Lendecke1-1/+2
2010-08-08s3: Lift the smbd_messaging_context from print_queue_resumeVolker Lendecke1-1/+2
2010-08-08s3: Lift the smbd_messaging_context from print_queue_pauseVolker Lendecke1-1/+2
2010-08-08s3: Lift the smbd_messaging_context from print_job_startVolker Lendecke1-0/+1
2010-08-08s3: Lift the smbd_messaging_context from print_job_resumeVolker Lendecke1-2/+3
2010-08-08s3: Lift the smbd_messaging_context from print_job_pauseVolker Lendecke1-2/+3
2010-08-08s3: Lift the smbd_messaging_context from print_job_deleteVolker Lendecke1-1/+2
2010-07-27s3-printing: Removed unused function print_job_fd().Simo Sorce1-1/+0
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-printing: Moved printing.c headers to include/printing.h.Simo Sorce1-0/+33
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-smbd: Added code to print via spoolss.Simo Sorce1-0/+12
2010-07-27s3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.Simo Sorce1-1/+1
Signed-off-by: Jim McDonough <jmcd@samba.org>
2008-09-24printing: Rename new parameter "cups timeout" to "cups connection timeout".Karolin Seeger1-1/+1
Karolin
2008-09-23printing: Add new parameter "cups timeout".Karolin Seeger1-0/+1
The default timeout for connections to CUPS servers is set to 5 minutes in the CUPS libraries. The smbd hangs on startup until the timeout is reached if the CUPS server is unreachable. This parameter makes the timeout configurable. The default value is set to 30 seconds. Karolin
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-2/+2
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-18remove reference to removed codeStefan Metzmacher1-4/+0
see commit 9e5ad21e6793981a01f63f2de1c4d496ade0bb54 metze (This used to be commit ea3173a9457f9095a70d401abfd1af8c913211a0)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r17622: Add a framework for a printing backend designed to support the build ↵Volker Lendecke1-0/+4
farm. If we want to walk more printing code in the build farm I think doing that with a customized printing backend is much easier than with a set of shell scripts. Jerry, comments? Volker (This used to be commit 949cd6b992364d2bc60fd59051b6ac1c4cc4288c)