summaryrefslogtreecommitdiff
path: root/source3/printing
AgeCommit message (Collapse)AuthorFilesLines
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)
2002-07-17Lanman print jobs are *16* bits, not 32. arggggh. Map them....Jeremy Allison1-0/+79
Jeremy. (This used to be commit 2b06fd305be10fa8a8629adb4a99ccd3960786da)
2002-07-16Put printing tdbs in a subdirectory to prevent name collisions.Jeremy Allison1-1/+6
Jeremy. (This used to be commit b013b9437557f2d427e4b646b49ad7d99e94c164)
2002-07-11added copyrightGerald Carter1-0/+1
(This used to be commit dcb6d70706a0e86881588c3828ff5bd4d63d415f)
2002-07-11last check in for tonight.Gerald Carter1-40/+128
* DeletePrinterDriverEx() now has the ability to delete driver files. I need to do some more testing tro veriofy that we are in fact not deleting a file out from under another driver, but it looks ok so far. * DeletePrinterDriver() noiw deletes all versions of the specified driver (cversion == 0, 1, 2, 3) (This used to be commit 17bb780e1327663fa2fcd6a3cb25dd461a29c537)
2002-07-11all that is left to do is to actually perform theGerald Carter1-15/+155
file deletion now. I have the file list. One more commit should do it. (This used to be commit 7207662504f585352b0ceeb99f8998ef58db7f15)
2002-07-11intermediate work on DeletePrinterDriverEx(). This callGerald Carter1-71/+146
will actually delete driver files ( not yet though I don't think). Just wanted to get it in since Jeremy and I are both working on nt_printing.c (This used to be commit 3fa6c3132950c9ff1c6a532d8264ee34a6b2b0ff)
2002-07-11*Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison4-155/+411
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. (This used to be commit b0909cfa14fc7ef29d2b98b56d52723570da782a)
2002-07-08Fix for LPRng from James Henstridge james@daa.com.au.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 9c93f8908919a02099884d393312ef27d4a2d24e)
2002-07-02Address the string_sub problem by changing len = 0 to mean "no expand".Jeremy Allison2-9/+9
Went through and checked all string_subs I could to ensure they're being used correctly. Jeremy. (This used to be commit 17cae0d683be404be69554cd0e84117bdcc56c87)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-1/+1
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-06-28Shut down printing tdb correctly - this will be more important when I goJeremy Allison1-3/+17
to a tdb per-queue for scalability. Jeremy. (This used to be commit e808eb2758ff4ad1eed7b50a02865b87ba0c068e)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2-158/+435
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-06-27It's fairly obvious that no one has tried to upload a driverGerald Carter1-2/+2
to a Samba print server running HEAD in a while. This has been broken since tridge's changes to make_connection() to not do the chdir() to the connect_path. Sorry it took me so long to get around to fixing it. The problem occured with our internal use of make_connection(). jerry (This used to be commit b5bc8aa0f68ceebfb5c0ec15ff93b0172cec36d8)
2002-06-24replacing free() with SAFE_FREE() where possibleGerald Carter1-8/+8
(This used to be commit 5a4a7e5a88f4fdc5891436b05e44b05d1e7ad3f1)
2002-06-24backing out changes for nowGerald Carter1-11/+11
(This used to be commit e3422addeb2a74ba92e3b5374d1a1efbcc825d5a)
2002-06-24printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter4-29/+34
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix (This used to be commit f7536762863811f96364e8acd3716bdb7d665bbf)
2002-06-21Format tidyup before I start working on scalability fixes (one file perJeremy Allison1-74/+134
print queue). Jeremy. (This used to be commit 6544a500d0696c9fe1f1abc067a8b963a0e2b8da)
2002-06-07Globally replace 'global_sam_sid' with get_global_sam_sid(), a selfAndrew Bartlett1-2/+1
initialising function. This patch thanks to the work of "Stefan (metze) Metzmacher" <metze@metzemix.de> This is partly to enable the transition to SIDs in the the passdb. Andrew Bartlett (This used to be commit 96afea638e15d4cbadc57023a511094a770c6adc)
2002-05-10Ok, ok, I was too impatient...Jim McDonough1-2/+2
(This used to be commit af35c5a57ca5544441bd82b695d878f388cd5e73)
2002-05-10Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.Jim McDonough1-2/+2
Jeremy, please verify that this was ok... (This used to be commit f191563c7f1cfb7250327333a9470edc4dbedde1)
2002-05-09Merged in printing fixes... There were many missing !Jeremy Allison1-0/+29
Jeremy (This used to be commit 32fa089adead6ff3279172fd36560f4f9e2aeef0)
2002-04-19Added Martin's lpq parse fixes from 2.2.Jeremy Allison1-20/+12
Jeremy. (This used to be commit 3853234c2649c501e9876f940f802be86cb6383d)
2002-04-19When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).Jeremy Allison1-2/+2
Jeremy. (This used to be commit 9209d8e718e860e6a58937376cbb437b6b7adbbb)
2002-04-15Merge of print server permission handling fixes from HEAD.Tim Potter1-0/+16
Unit tests rock! (This used to be commit bc673c42045ceb46d9569bc4d88f9c64897fc85a)
2002-04-13when background printing wasn't enabled printing was completely brokenAndrew Tridgell1-1/+4
as the pid was 0 (This used to be commit f16033635f5125758a3d2c3b0780d5bd2bd7bdbd)
2002-04-11removed unnecessary memsetGerald Carter1-2/+1
(This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)
2002-04-11specversion merge from SAMBA_2_2Gerald Carter1-0/+2
(This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)
2002-03-22Stomped on some header file version numbers that have crept back in.Tim Potter1-1/+1
(This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
2002-03-20Ensure we don't do lp_servicename()'s in tdb traverse as thisJeremy Allison1-5/+7
allocates lots of memory. Jeremy. (This used to be commit fbc8c6a1096ec829f48b403239f105065bf155b1)
2002-03-20Print queue entries *must* have queue names, not numbers - numbers areJeremy Allison1-7/+30
not identical between different smbds (mr potter, come here and take your medicine.... :-). Jeremy. (This used to be commit 230941d2fbb746d39c00e482e7f600c68aa45efa)
2002-03-20Remove the "stat open" code - make it inline. This should fix theJeremy Allison1-1/+0
bugs with opening and renaming mp3 files, also the word rename problems that people have had for a while. Needs a make clean :-) make. Also added JohnR's printing fix. Jeremy. (This used to be commit 504e5ef0494c54efbd0357e334cb2aa5a9eb9c14)