summaryrefslogtreecommitdiff
path: root/source3/printing/nt_printing.c
AgeCommit message (Collapse)AuthorFilesLines
2003-01-14The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett1-1/+1
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)
2003-01-02BIG patch...Andrew Bartlett1-21/+21
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison1-4/+4
named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-13Store printer guid in the dsspooler registry key so we don't have toJim McDonough1-72/+178
query the directory server every time someone asks (This used to be commit f0fc4e30f6284565de404a20450a587cd3fe00a5)
2002-12-13More printer publishing code.Jim McDonough1-6/+16
- Add published attribute to info2, needed for win clients to work properly - Return proper info on getprinter 7 This means you can now look at the sharing tab of a printer and get correct info about whether it is published or not, and change it. (This used to be commit adda04379ee46f105436262663652f3f576fa3cf)
2002-12-05More printer data to publishJim McDonough1-71/+68
(This used to be commit 82f3a786bf01878629fe4c05b028ae8d58eb4394)
2002-12-04More attributes to publish. All DsSpooler attributes except REG_MULTI_SZ ↵Jim McDonough1-3/+62
ones should be published now. (This used to be commit 4fc602fd7da4b216748b005f62b14be0cfdddd63)
2002-12-04Janitor for tpot yet again... Merging in memory leak fix.Jeremy Allison1-2/+2
Jeremy. (This used to be commit a2ab78d68d269e77d55bf4b6929cf512a28f0708)
2002-12-04Automatic printer publishing when using APW or choosing 'list in the ↵Jim McDonough1-1/+143
directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients. (This used to be commit bbd7c8071a095c4e410f92489050b677a0f0ace1)
2002-11-23Lots of fixes for error paths where tdb_fetch() data need freeing.Jeremy Allison1-8/+11
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>. Jeremy. (This used to be commit 19f86f1f72aca924e9e320e20a175b5d21de45ad)
2002-11-07Keeping branches in sync....Jeremy Allison1-1/+2
Jeremy. (This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88)
2002-10-31Fix slowdown because of enumerating all print queues on every smbd startup.Jeremy Allison1-1/+7
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-21merge from samba_3_0Gerald Carter1-62/+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-04Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison1-2/+2
MAX_PRINT_JOBS in a queue. Jeremy. (This used to be commit bb58a08af459b4abae9d53ab98c15f40638ce52b)
2002-09-18printjob merge from APP_HEAD regarding device modesGerald Carter1-2/+2
(This used to be commit aa52351384abace54a89c9fbfa5e4c31a8464c91)
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-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 Carter1-1/+11
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-07-29couple of minor formatting fixes to help me see better.Gerald Carter1-4/+2
(This used to be commit 26027ee42ae378eef59a8ae46f5e4e44bf2d4af0)
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-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 Allison1-4/+4
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-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-24printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter1-7/+12
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-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-09Merged in printing fixes... There were many missing !Jeremy Allison1-0/+29
Jeremy (This used to be commit 32fa089adead6ff3279172fd36560f4f9e2aeef0)
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-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-17Added dos_errstr() function. Not all errors in list yet.Tim Potter1-1/+1
(This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)
2002-03-15syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter1-12/+54
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 (This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
2002-03-14Backed out enumprinters stuff - leave it for another day.Tim Potter1-1/+3
(This used to be commit d7efc5dd3dd712e7138b5c79eea9756125757175)
2002-03-12Merge of enumprinters vs getprinter naming patch from 2.2Tim Potter1-6/+8
(This used to be commit dfd51bc8d0714473880bf50369f7994304c1d83f)
2002-02-27Fix from JohnR - Fixed SetPrinterData(magic key) to support zero length ↵Jeremy Allison1-1/+1
DEVMODE as is the case with the Okidata Okipage 20 PCLXL Advanced printer driver. (This used to be commit 51c3d3536335a72aa264e3f4d62515f5c0b6d192)
2002-02-19 merge from 2.2Gerald Carter1-2/+2
(This used to be commit 9e96cbe24149c8d0ed4f3a1f1d5ea736ba5dca56)
2002-02-09Bring printing in HEAD inline with 2.2.x and app-head.Jeremy Allison1-124/+230
Jeremy. (This used to be commit 771ef92fc6e43725b7cc351079998a8acb74abef)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)