summaryrefslogtreecommitdiffstats
path: root/source/printing/printing.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge from APPLIANCE_HEAD.Tim Potter2002-07-221-1/+1
|
* Ensure we're root before opening a printer backend tdb.Jeremy Allison2002-07-221-0/+4
| | | | Jeremy.
* Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison2002-07-171-249/+118
| | | | | | queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy.
* Lanman print jobs are *16* bits, not 32. arggggh. Map them....Jeremy Allison2002-07-171-0/+79
| | | | Jeremy.
* Put printing tdbs in a subdirectory to prevent name collisions.Jeremy Allison2002-07-161-1/+6
| | | | Jeremy.
* *Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison2002-07-111-138/+396
| | | | | | | a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy.
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-1/+1
| | | | code
* Shut down printing tdb correctly - this will be more important when I goJeremy Allison2002-06-281-3/+17
| | | | | to a tdb per-queue for scalability. Jeremy.
* Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2002-06-281-158/+205
| | | | | Now let's keep this in sync ! Jeremy.
* printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter2002-06-241-10/+10
| | | | | | | | Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix
* Format tidyup before I start working on scalability fixes (one file perJeremy Allison2002-06-211-74/+134
| | | | | print queue). Jeremy.
* Ok, ok, I was too impatient...Jim McDonough2002-05-101-2/+2
|
* Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.Jim McDonough2002-05-101-2/+2
| | | | Jeremy, please verify that this was ok...
* When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).Jeremy Allison2002-04-191-2/+2
| | | | Jeremy.
* when background printing wasn't enabled printing was completely brokenAndrew Tridgell2002-04-131-1/+4
| | | | as the pid was 0
* Ensure we don't do lp_servicename()'s in tdb traverse as thisJeremy Allison2002-03-201-5/+7
| | | | | allocates lots of memory. Jeremy.
* Print queue entries *must* have queue names, not numbers - numbers areJeremy Allison2002-03-201-7/+30
| | | | | | not identical between different smbds (mr potter, come here and take your medicine.... :-). Jeremy.
* Merge in JohnR's page count fixes.Jeremy Allison2002-03-191-4/+31
| | | | Jeremy.
* syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter2002-03-151-6/+6
| | | | | | | | | | | | | in the reverse). * add in new printer change notify code from SAMBA_2_2 * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex() * sync up the _print_queue_struct in smb.h (why did someone change the user/file names in fs_user/fs_file (or vice-versa) ? ) * sync up some cli_spoolss_XXX functions
* getpid() -> sys_getpid()Tim Potter2002-03-141-1/+1
|
* Fix for machines that have their time changed forward, then back. EnsureJeremy Allison2002-03-071-6/+18
| | | | | | that any cached lpq information gathered during that time doesn't stay around for longer than 1 hour. Jeremy.
* Fixup the sending of printer change messages from job changes.Jeremy Allison2002-02-261-17/+21
| | | | Jeremy.
* Merge of printing performance fixes from appliance.Tim Potter2002-02-251-6/+6
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Removed MAXSTATUS which was set incorrectly - thus causing tdb traversalJeremy Allison2002-01-141-5/+3
| | | | | | of the connections db on smbd startup. This should fix the Solaris large load bug.... (fingers crossed). Jeremy.
* Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endianJeremy Allison2002-01-091-12/+13
| | | | | in tdb's. All except winbindd_idmap.... Hmmmmmm. Jeremy.
* Fixed nasty cast of tdb_delete in traversals.Jeremy Allison2002-01-031-1/+1
| | | | Jeremy.
* Factor out a broadcast_printer_notify() routine.Martin Pool2001-12-211-7/+17
|
* Fixed uninitialised variable warning.Tim Potter2001-12-181-1/+1
|
* Use print_queue_length() by preference if we don't need a queueJeremy Allison2001-12-051-0/+1
| | | | | as it doesn't do a traversal. Jeremy.
* Improved efficiency of enumerating print queue's under a particularJeremy Allison2001-12-051-9/+18
| | | | | extreme condition... Jeremy.
* Optimisation to send only to correct processid.Jeremy Allison2001-10-161-6/+16
| | | | Jeremy
* very simple asynchronous "lpq" thread patchJean-François Micouleau2001-10-161-2/+50
| | | | | | | | | | | | To speed up operations with the lpq command, it's now run in a separate asynchronous process. Opening the Printers folder on NT is now fast ;-) I think even faster than with a ** server Jeremy, you should look at that patch to include it in 2.2.3 J.F.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
|
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-041-4/+4
| | | | the client code still needs some work
* more NTSTATUS/WERROR conversionAndrew Tridgell2001-09-031-11/+11
|
* Fixed detection of CUPS. We need to check for the presence of the cupsTim Potter2001-08-231-2/+2
| | | | header files as well as libcups.
* Merge in the NT drivers changes from 2.2.Jeremy Allison2001-08-101-1/+1
| | | | Jeremy.
* Replaced the duplicate DOS constants with appropriate ones from doserr.h toTim Potter2001-08-101-9/+9
| | | | | emphasise the fact that the spoolss pipe returns DOS error codes instead of 32-bit nt status codes.
* Fix for incorrect creation of print job names, based on a patch byJeremy Allison2001-07-161-2/+2
| | | | | José M.Rodríguez <josemi@iies.es> Jeremy.
* The big character set handling changeover!Andrew Tridgell2001-07-041-13/+4
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* Properly instrument print_job_start()/print_job_end() so every fail caseJeremy Allison2001-06-281-4/+20
| | | | | logs a debug. We need this to track fail cases. Jeremy
* use LDSHFLAGS not -shared in several placesAndrew Tridgell2001-06-041-1/+1
|
* Removed mktemp from HEAD - same as done in 2.2.Jeremy Allison2001-04-181-16/+7
| | | | Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-10/+10
| | | | Jeremy.
* Fix from Dave Collier Brown to log a debug at level zero on common misconfigure.Jeremy Allison2001-03-261-1/+13
| | | | Jeremy.
* Added Michael Sweet's CUPS patch to call directly into the CUPS backend.Jeremy Allison2001-03-161-157/+29
| | | | | | Parameterises the printing functions so other backends can be plugged directly in (this is a good thing :-). Jeremy.
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-4/+0
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.Jeremy Allison2001-02-231-50/+50
| | | | | | | | | | | | | include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We need these to be different as we're storing LPQ_xx enums in the tdb already. rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now returning status codes. smbd/lanman.c: Change the RAP status codes to have "RAP" in the name. printing/printing.c: Keep track of the status of a job. Allow a job to be deleted from one smbd when being submitted by another. Made logic in mutex clearer. Jeremy.