summaryrefslogtreecommitdiffstats
path: root/source3/include/printing.h
Commit message (Collapse)AuthorAgeFilesLines
* printing: add jobid_to_sysjob helper functionDavid Disseldorp2014-10-301-0/+1
| | | | | | | | | | | | Samba needs to deal with two types of print job identifiers, those allocated by the printing backend (sysjob ids), and those allocated by Samba's spoolss server (jobids). This change adds a helper function to map spoolss jobids to sysjob ids, to go alongside the corresponding sysjob to jobid mapping function. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* spoolss: return the spoolss job ID in notificationsDavid Disseldorp2013-11-181-0/+1
| | | | | | | | | | | | | | | | | Print job notifications currently carry the system print job identifier from the queue structure. Instead, the spoolss job identifier should be resolved and returned. Print clients can use notification job-ids in subsequent spoolss SetJob requests. Returning an incorrect identifier can result in the failure of such requests, e.g. spoolss_SetJob(SPOOLSS_JOB_CONTROL_DELETE). BUG: https://bugzilla.samba.org/show_bug.cgi?id=10271 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* lib/param: Move all enum declarations to lib/paramAndrew Bartlett2012-07-241-0/+1
| | | | | | | | This is in preperation for the parameter table being made common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-printing: pass lpq command to job_submitDavid Disseldorp2012-06-261-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.
* s3-printing: remove unused print_job_fname()David Disseldorp2012-06-261-1/+0
|
* s3-printing: return talloced print jobsDavid Disseldorp2012-06-261-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.
* s3-printing: clean up print_job_pause/resume interfaceDavid Disseldorp2012-06-261-4/+4
| | | | | Currently both return a bool and sometimes set a werr pointer argument, always return werror instead.
* s3-printing: remove print_parse_jobid()David Disseldorp2012-06-261-1/+0
| | | | With all callers fixed, it is now safe to remove.
* s3-printing: rename queue->job sysjobDavid Disseldorp2012-06-261-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.
* s3-printing: store print jobid as part of struct printjobDavid Disseldorp2012-06-261-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.
* s3:printing: let print_spool_open() take a uint64_t vuidStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:printing: add print_spool_rap_jobid()Stefan Metzmacher2012-06-061-0/+1
| | | | metze
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-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
* s3:smbd - Move printing queue stuffSimo Sorce2011-08-021-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>
* s3-auth Use the common auth_session_infoAndrew Bartlett2011-07-201-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>
* s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett2011-07-201-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>
* ldb: replace 'struct TDB_DATA' with 'TDB_DATA'Rusty Russell2011-06-201-4/+2
| | | | | | | The typedef is TDB2 compatible, the struct isn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-2/+5
| | | | Guenther
* s3:printing Make print_queue_receive publicSimo Sorce2011-03-291-0/+5
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-printing: move more printing defines out of includes.hGünther Deschner2011-02-251-0/+30
| | | | Guenther
* s3-printing: move more printing structs to printing.hGünther Deschner2011-02-221-0/+40
| | | | Guenther
* s3-printing: only include printing where really needed.Günther Deschner2011-02-221-0/+23
| | | | Guenther
* s3: Make "unpack_pjob" staticVolker Lendecke2010-10-201-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 20 16:51:04 UTC 2010 on sn-devel-104
* s3-printing: Make auth_serversupplied_info const.Andreas Schneider2010-09-091-7/+7
|
* s3-printing: Added function to update the queue.Andreas Schneider2010-08-181-1/+1
|
* s3: Use pipe_struct->client_id->name for pjob.clientmachineVolker Lendecke2010-08-181-0/+1
|
* s3: Remove unused "pos" arg from print_job_writeVolker Lendecke2010-08-171-2/+1
|
* s3-printing: Lift the use of smbd_server_fd from job_submit.Volker Lendecke2010-08-161-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Lift the server_messaging_context from print_job_endpageVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the server_messaging_context from print_job_writeVolker Lendecke2010-08-081-1/+4
|
* s3: Lift the server_messaging_context from print_job_set_nameVolker Lendecke2010-08-081-1/+3
|
* s3: Lift the server_messaging_context from pjob_deleteVolker Lendecke2010-08-081-1/+0
|
* s3: Lift the server_messaging_context from print_queue_statusVolker Lendecke2010-08-081-1/+1
|
* s3: Lift the server_messaging_context from print_job_endVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the server_messaging_context from print_queue_lengthVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the smbd_messaging_context from print_queue_purgeVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the smbd_messaging_context from print_queue_resumeVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the smbd_messaging_context from print_queue_pauseVolker Lendecke2010-08-081-1/+2
|
* s3: Lift the smbd_messaging_context from print_job_startVolker Lendecke2010-08-081-0/+1
|
* s3: Lift the smbd_messaging_context from print_job_resumeVolker Lendecke2010-08-081-2/+3
|
* s3: Lift the smbd_messaging_context from print_job_pauseVolker Lendecke2010-08-081-2/+3
|
* s3: Lift the smbd_messaging_context from print_job_deleteVolker Lendecke2010-08-081-1/+2
|
* s3-printing: Removed unused function print_job_fd().Simo Sorce2010-07-271-1/+0
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-printing: Moved printing.c headers to include/printing.h.Simo Sorce2010-07-271-0/+33
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3-smbd: Added code to print via spoolss.Simo Sorce2010-07-271-0/+12
|
* s3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.Simo Sorce2010-07-271-1/+1
| | | | Signed-off-by: Jim McDonough <jmcd@samba.org>
* printing: Rename new parameter "cups timeout" to "cups connection timeout".Karolin Seeger2008-09-241-1/+1
| | | | Karolin
* printing: Add new parameter "cups timeout".Karolin Seeger2008-09-231-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
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-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)
* remove reference to removed codeStefan Metzmacher2007-10-181-4/+0
| | | | | | | see commit 9e5ad21e6793981a01f63f2de1c4d496ade0bb54 metze (This used to be commit ea3173a9457f9095a70d401abfd1af8c913211a0)