summaryrefslogtreecommitdiffstats
path: root/source/printing/notify.c
Commit message (Collapse)AuthorAgeFilesLines
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-6/+6
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r24069: Fix Coverity ID 368. We would segfault if 0 < data.dsize < 8Volker Lendecke2007-10-101-1/+1
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23112: Trim down the message.c API slightly: The messages_pending_for_pid ↵Volker Lendecke2007-10-101-8/+1
| | | | | | | | | | | is now replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this, changed the msg_type definitions to hexadecimal. This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I would rather not do this, because that one is racy and can't be guaranteed at all.
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-10-101-1/+2
| | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* r23023: Get rid of the only caller of message_send_pid_with_timeout(). This ↵Volker Lendecke2007-10-101-5/+13
| | | | | | | | | | | | | | | | | | | | | replaces the timeouts on the individual message send calls with an overall timeout on all the calls. The timeout in message_send_pid_with_timeout() did not make much sense IMO anyway, because the tdb_fetch() for the messages_pending_for_pid was blocking in a readlock anyway, we "just" did the timeout for the write lock. This new code goes through the full wait for the write lock once and then breaks out of sending the notifies instead of running into the timeout per target. Jerry, please check this! Thanks, Volker
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-10-101-6/+12
| | | | tomorrow.
* r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-10-101-3/+7
| | | | Jeremy.
* r22542: Move over to using the _strict varients of the tallocJeremy Allison2007-10-101-1/+1
| | | | | calls. No functional changes. Looks bigger than it is :-). Jeremy.
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-3/+3
| | | | | | and fix all compiler warnings in the users metze
* r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()Stefan Metzmacher2007-10-101-1/+1
| | | | | | | and DLIST_DEMOTE() now take the type of the tmp pointer not the tmp pointer itself anymore. metze
* r17590: Some C++ WarningsVolker Lendecke2007-10-101-3/+3
|
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | does not have the timeout argument in Samba4. Add a new routine tdb_lock_bystring_with_timeout. Volker
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-5/+7
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r6595: This is Volkers new-talloc patch. Just got the go-ahead fromJeremy Allison2007-10-101-3/+3
| | | | | Volker to commit. Woo Hoo ! Jeremy.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-8/+8
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3067: patch based on volker's initial work in trunk that fixes the queu ↵Gerald Carter2007-10-101-47/+38
| | | | update problem when using the background daemon
* r2133: Several fixes:Gerald Carter2007-10-101-5/+8
| | | | | | | | | | | | | | | | | | | * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1 patch from Olaf Flebbe <o.flebbe@science-computing.de>. Will need to watch this one in the build farm. * Fix bug found by rwf@loonybin.net where the PRINT_ATTRIBUTE_PUBLISHED was getting reset by attempts to sanitize the defined attributes (PRINTER_ATTRIBUTE_SAMBA) * Resolve name conflict on DEC OSF-5.1 (inspired by patch from Adharsh Praveen <rprav@india.hp.com>) * Work around parsing error in the print change notify code (not that the alignment bug is still there but reording the entries in the array works around it). * remove duplicate declaration of getprintprocdir from rpcclient.
* r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replicationJeremy Allison2007-10-101-1/+1
| | | | | | sleep time is not more than 5 seconds. Should fix issue reported by Chris Garrigues <cwg@deepeddy.com>. Jeremy.
* r925: add changes frpm trunk (r841 and r842) -- enable background queue ↵Gerald Carter2007-10-101-0/+9
| | | | update process and allow printers to have different sharenames from printernames
* a small include file rearrangement that doesn't affect normalAndrew Tridgell2003-11-121-0/+1
| | | | | compilation, but that allows Samba3 to take advantage of pre-compiled headers in gcc if available.
* updating version in copyrightGerald Carter2003-10-141-1/+1
|
* More printf portability fixes. Got caught out by some gcc'isms lastTim Potter2003-07-251-4/+4
| | | | time. )-:
* More printf fixes - size_t is long on some architectures.Tim Potter2003-07-241-2/+2
|
* Some const correctness. Stop tdb being used as a remote backend. If anJeremy Allison2003-06-271-1/+1
| | | | | | | idmap backend is specified cause smbd to ask winbindd (use winbindd if you want a consistant remote backend solution). Should work well enough for next beta now... Jeremy.
* Limit the number of outstanding print notify messages for a process toJeremy Allison2003-04-231-1/+8
| | | | | 1000. Jeremy.
* Ensure we're not filtering our essential delete messages.Jeremy Allison2003-04-101-11/+21
| | | | | Added jobid debug when unpacking message. Jeremy.
* Subtle changes to message handling after ENUMJOBS.Jeremy Allison2003-04-021-1/+4
| | | | Jeremy.
* * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter2003-02-151-2/+33
| | | | | | | * never save a pointer to an automatic variable (they go away) implement a deep copy for SPOOLSS_NOTIFY_MSG to correct messages being sent that have junk for strings; fix in response to changes for CR 1504
* off by one bug in string length; CR 1159Gerald Carter2003-02-141-1/+1
|
* Merge from HEAD: Fix NULL pointer de-reference in arguments to tdb_pack.Andrew Bartlett2003-02-121-4/+4
| | | | Andrew Bartlet
* Collapse duplicate messages before sending.Jeremy Allison2003-02-051-80/+132
| | | | Jeremy.
* Add 3 second timeout when terminating server and sending print notifyJeremy Allison2003-01-301-4/+4
| | | | | | messages. Stops build-up of large numbers of smbd's waiting to terminate on large print throughput. Jeremy.
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-1/+1
| | | | | named. Ensure we can query them. Jeremy.
* [print notify fixes from APP_HEAD]Gerald Carter2002-11-261-0/+87
| | | | | | | | * fixing change notify on print server handle * adding change notify support into smbcontrol for sending comment changes, etc... All part of CR 1159/1160
* Merge of scalable printing code fix... Needs testing.Jeremy Allison2002-11-071-30/+59
| | | | Jeremy.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-16/+104
|
* Sync 3.0 branch with HEADJelmer Vernooij2002-08-171-24/+41
|
* *Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison2002-07-111-9/+9
| | | | | | | 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.
* Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2002-06-281-0/+230
Now let's keep this in sync ! Jeremy.