summaryrefslogtreecommitdiff
path: root/source3/printing
AgeCommit message (Collapse)AuthorFilesLines
2002-11-26[print notify fixes from APP_HEAD]Gerald Carter3-279/+326
* fixing change notify on print server handle * adding change notify support into smbcontrol for sending comment changes, etc... All part of CR 1159/1160 (This used to be commit 256d8c27cdc6f802f3bfba44593b07014f6ae10a)
2002-11-24No need to #include smb.h, when we already #include include.hAndrew Bartlett3-4/+0
(This used to be commit b3049bb0d0ff97142940e2b33e9603d1c231ccfe)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison2-15/+25
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-12Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison1-18/+22
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-10First cut of fix for changenotify on a print server handle. Use the ↵Jeremy Allison1-43/+80
connections tdb with an snum of -1 and a special printername. Jeremy. (This used to be commit 940b04ddfa87acc939911e3fe76496e3c4675632)
2002-11-10Fix for scalable printing noticed by tpot. Don't loop infinatelyJeremy Allison1-13/+36
when holding a mutex.... :-). Jeremy. (This used to be commit c206643baaae64cef38f2f74e46337d35a489ca9)
2002-11-07Fix crash bug with overwriting memory.Jeremy Allison1-5/+3
Jeremy. (This used to be commit 9b08b4e4c24290e5d90a7cc2dc442cb82e73df28)
2002-11-07Keeping branches in sync....Jeremy Allison1-1/+2
Jeremy. (This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88)
2002-11-07Merge of scalable printing code fix... Needs testing.Jeremy Allison2-30/+307
Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy. (This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)
2002-10-31Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison2-15/+18
Jeremy. (This used to be commit d05b147fb3f32031a202cf61703dc2fd969f4617)
2002-10-31Check the long_archi name is not null.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 9e47aa32ed96faff4a68a8e360c1353fc011adf1)
2002-10-26Fix problem where an fd would be left open for every printer queue.Jeremy Allison1-0/+27
Jeremy. (This used to be commit 997c234e15a5f8d742320359a53e15a27661d456)
2002-10-21merge from samba_3_0Gerald Carter2-73/+0
removed the following parameters * postscript * printer driver * printer driver location * printer driver file also removed the get_a_printer_driver_9x_compatible() function (This used to be commit e7dd8cf903144393b1362719d75430a2ee7e5f27)
2002-10-16Never do a ZERO_STRUCT on a structure in a linked list, it's dumb :-).Jeremy Allison1-1/+3
Jeremy. (This used to be commit 0d989a911d742ed5eeb874f5b8350b0931f3d9db)
2002-10-16SMB_ASSERT to check list terminates.Jeremy Allison1-0/+3
Jeremy (This used to be commit 25f6a9247e88a94cbacdc8fb06dc0d13c53d69bd)
2002-10-04Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2-9/+9
MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit bb58a08af459b4abae9d53ab98c15f40638ce52b)
2002-09-25At least try to get this function picked up by the autoprototyperAndrew Bartlett1-2/+2
(This used to be commit d5303d5c080212486329f7e5a65f732e11efbb37)
2002-09-25merge from APP_HEADGerald Carter1-8/+32
(This used to be commit 930c6710fe076b52ad21addf5fcda834f85e15a9)
2002-09-24Hold lock on NEXTJOB record for a very short time. Jerry needs to add codeJeremy Allison1-29/+52
to make this rebust w.r.t. stored devicemodes. Jeremy. (This used to be commit f93a008f09acda2ddaff9857f2fe0c86948539d1)
2002-09-20CUPS merge from SAMBA_2_2Gerald Carter1-0/+4
(This used to be commit cbb16eac0e79649f4383763439c7e745f27fd0cb)
2002-09-18printjob merge from APP_HEAD regarding device modesGerald Carter3-29/+133
(This used to be commit aa52351384abace54a89c9fbfa5e4c31a8464c91)
2002-09-10AbortPrinter() fix merged from APP_HEAD.Gerald Carter1-3/+31
(This used to be commit 97ede49e1271fa00c6ffdf9e6e3c2330ea935461)
2002-09-05Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simplyJeremy Allison1-2/+6
add then entries to the end of the list in printing/notify.c using DLIST_ADD_END. Jeremy. (This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)
2002-09-05Remove donotify as notifies are cheap now.Jeremy Allison1-11/+11
Jeremy. (This used to be commit 78585de5811d10bcca156e296c7dd51eabe5d626)
2002-09-05Roussed on Jeremy for not putting in enough debugs in the new printTim Potter1-0/+6
notify stuff. (-: (This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)
2002-09-04Added better error code on out of space. Removed total jobs check - notJeremy Allison1-48/+1
applicable any more. Jeremy. (This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
2002-09-04Merge of (apparently working :-) new printing notify code.Jeremy Allison1-16/+94
Jeremy. (This used to be commit 8595c6ce4d74539089b600b3b0ff858a04b793ff)
2002-09-04Add bcast_msg_flags to connection struct. Allows sender to filter whenJeremy Allison1-12/+18
sending broadcast messages. Also initial cut-down of printing notify messages (not yet finished). Jeremy. (This used to be commit aca333719695b278843c59e1c6eb07d6655fd59c)
2002-09-04DeletePrinterDriver[Ex]() fixes from APP_HEADGerald Carter1-147/+125
(This used to be commit 04874134ed83847988bad5fcad3463395dc283fb)
2002-08-30fix up print portion of registry. Merge from APP_HEAD.Gerald Carter1-2/+2
(This used to be commit ec37633548ed329c05b93499f75883d987b78f1e)
2002-08-30merge of phant0m key fix from APP_HEADGerald Carter1-7/+152
(This used to be commit cb13d334a53f27713665570d85607d57eb407f9f)
2002-08-27Move to reference counting rather than lock counting.Jeremy Allison1-35/+57
Jeremy. (This used to be commit e7b48224c4f8c6063e1dd850cc91f5488e65a48d)
2002-08-27Handle locking correctly.Jeremy Allison1-2/+6
Jeremy. (This used to be commit 4208f027cff77142df4f984a4a8985afbe30a4f1)
2002-08-27Allow us to "lock" printer tdb entries in memory to stop them beingJeremy Allison1-18/+61
re-used as cache. Jeremy. (This used to be commit 6f901e479dd7a0b9d1395aad5b8ef028c0514fec)
2002-08-18* Fix DeletePrinterDataEx() to work with arbitrary registry keysGerald Carter1-24/+101
* Fix delete_all_printer_data() to accept a key name for partial tree deletions * Fix EnumPrinterKey() to work with subkeys * Fix DeletePrinterKey() to work with ful or partial registry trees * Fix get_printer_subkeys() to return a list of unique keynames ( some were getting added twice due to subkeys names ) * fix a couple of typos for good measure (This used to be commit b6ceb8c2e50b7fcdc614a3b6782db05b60689a85)
2002-08-18fix GetPrinterDataEx() to work with registry subkeys using a depth > 1Gerald Carter1-1/+1
(This used to be commit 8799d4f7ccf3b3767c155d29f15cecd142d0db99)
2002-08-18fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.Gerald Carter1-5/+62
Works on the top level. Needs more testing for levels > 1. (This used to be commit 32a7083843f2bf9a3f32027189dbb0ff92927cd4)
2002-08-17* the printing code should now be back to the working state it wasGerald Carter1-38/+19
before the swap from NT_PRINTER_PARAM to REGISTRY_VALUE. * XxxPrinterDataEx() functions have not been expanded to support keys other than SPOOL_PRINTERDATA_KEY yet * fixed apparent long standing bug regarding the dependentfiles list in the DRIVER_INFO struct (This used to be commit d59b0eb1236cf5bb9371030a94eb60d4131c15fb)
2002-08-16Fairly large change to printing code.Gerald Carter1-435/+311
* removed support for PHANTOM_DEVMODE printer data * s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit of work. Everything seems stable, but is not complete. * support for printer data keys other than PrinterDriverData in the store and fetch routines. Still needs to be plugged into the XxxPrinterDataEx() calls. Tested against NT4.0 & 2k. Like I said, it's not done, but doesn't crash so it shouldn't upset anyone (unless you're trying to build a Samba printer server off of HEAD). More work to come. Should settle by Monday. jerry (This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
2002-08-08one line merge from APP_HEADGerald Carter1-1/+1
(This used to be commit b6b64d06a630f741c7ffbec99b71d34496159fa7)
2002-08-08delete printer driver fix from APP_HEADGerald Carter1-14/+37
(This used to be commit 9c6b930068d1e762fad78c9e36792764c280b85c)
2002-08-08printing change notification merge from APPLIANCE_HEADGerald Carter2-19/+47
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-08-02Merge of print notify fixes from APPLIANCE_HEAD.Tim Potter1-6/+5
(This used to be commit 7bf9ca6ca36fa319a57eab05567d49a003237bb5)
2002-07-29couple of minor formatting fixes to help me see better.Gerald Carter1-4/+2
(This used to be commit 26027ee42ae378eef59a8ae46f5e4e44bf2d4af0)
2002-07-22Merge from APPLIANCE_HEAD.Tim Potter1-1/+1
(This used to be commit 825cdc49dbc3e6b9d08b8e722c82cc09e2479fa1)
2002-07-22Ensure we're root before opening a printer backend tdb.Jeremy Allison1-0/+4
Jeremy. (This used to be commit 48ab4ae4221ed0be34c269e01a4e8b6bc93f87d7)
2002-07-20And a little more 'const'.Andrew Bartlett1-1/+1
(This used to be commit 2cbbf0ecd33774041dd831956935ab3cf69ce2a6)
2002-07-20another intermediate checkin on the way to enumerating formsGerald Carter1-5/+9
via the registry. There is a seg fault here which shouldn't bother anyone until I can get it fixed. I just need a check point in case I need to roll back to this version later on. (This used to be commit e62ae94823461e142978a786b2860ea97906cfb3)
2002-07-20More fixes towards warnings on the IRIX compilerAndrew Bartlett3-12/+7
(and yes, some of these are real bugs) In particular, the samr code was doing an &foo of various types, to a function that assumed uint32. If time_t isn't 32 bits long, that broke. They are assignment compatible however, so use that and an intermediate variable. Andrew Bartlett (This used to be commit 30d0998c8c1a1d4de38ef0fbc83c2b763e05a3e6)
2002-07-17Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison2-252/+121
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. (This used to be commit 4ff64f69706cc94d5dba7762754d00790c476963)