summaryrefslogtreecommitdiffstats
path: root/obj.c
Commit message (Collapse)AuthorAgeFilesLines
* - added RSYSLOGD_MODDIR environment variableRainer Gerhards2008-03-071-1/+2
| | | | | - added -M rsyslogd option (allows to specify module directory location) - converted net.c into a loadable library plugin
* - extracted logerror*() family of functions from syslogd, made them theirRainer Gerhards2008-03-051-1/+10
| | | | | | own class and converted to new object calling conventions (interface-based) - converted gss-misc into a loadable library module
* - changed modules.c calling conventions to be interface-basedRainer Gerhards2008-03-051-10/+13
| | | | | | | | | | | - moved module loader from conf.c to module.c, where it belongs - made the necessary plumbing to auto-load library modules - upgraded debug system to include iRet in function exit message - changed module interface so that instances need only to be supported by output plugins (if we actually need them for input plugins, we can always add it again...) - milestone: first implementation of library modules (but do not get unloaded on exit/hup so far)
* fixed newly introduced bugs in imgssapi and imtcp and their helpers nowRainer Gerhards2008-03-031-1/+7
| | | | plain tcp works again
* - added class tcpsRainer Gerhards2008-03-021-1/+0
| | | | | | - added class tcps_sess - changed imtcp to use new classes; seems to work; imgssapi currently broken
* converted conf.c to an abstract classRainer Gerhards2008-02-291-4/+16
|
* corrected invalid function definitionRainer Gerhards2008-02-291-1/+1
|
* - added "debug" command to debug environment settingsRainer Gerhards2008-02-291-53/+202
| | | | | | | | | - changed the object/interface system to use a new way of calling, giving up the numerical object ID. This was necessary as we needed more extensibility for third-party modules (which don't play at all with the previous fixed object ID). This is stage work for the object loader. Please note that I needed to change the object (de)serializer, I can't outrule that I have introduced bugs there.
* changed obj base object's calling interface to use the new obj_if_tRainer Gerhards2008-02-291-18/+112
| | | | interface structure
* - bugfix: queue aborted when it was shut down, DA-enabled, DA mode was justRainer Gerhards2008-02-271-1/+7
| | | | | | | | | initiated but not fully initialized (a race condition) - bugfix: queue properties sizeOnDisk, bytesRead were persisted to disk with wrong data type (long instead of int64) - could cause problems on 32 bit machines - fixed a problem introduced today, on-disk queue size was now wrongly calculated (but not in any released version)
* bugfix: object property deserializer did not handle negative numbersRainer Gerhards2008-02-271-1/+15
|
* bugfix: queue disk file were not properly persisted when immediately afterRainer Gerhards2008-02-271-1/+3
| | | | | | | | | closing an output file rsyslog was stopped or huped (the new output file open must NOT have happend at that point) - this lead to a sparse and invalid queue file which could cause several problems to the engine (unpredictable results). This situation should have happened only in very rare cases. tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=40
* simplified var object, now only supports strings and numbers as a singleRainer Gerhards2008-02-221-37/+33
| | | | type
* first steps in implementing object interfaces (stage work for later dynamicRainer Gerhards2008-02-211-6/+16
| | | | class loading)
* cleanup for 3.11.4v3-11-4Rainer Gerhards2008-02-211-0/+6
|
* changed rsCStrObj name to cstr_t, which is more inline with the rest ofRainer Gerhards2008-02-211-4/+4
| | | | rsyslog (now) and also much easier to type
* used new classes in expr.cRainer Gerhards2008-02-201-2/+0
|
* changed rsCStrDestruct() to use the new interface conventionsRainer Gerhards2008-02-201-1/+1
|
* created var class out of property_tRainer Gerhards2008-02-201-30/+26
|
* - added doc on how expressions will workRainer Gerhards2008-02-191-4/+2
| | | | | | - cleaned up the stringbuf Construct interface - did some cleanup on stringbuf calls - we now have much better interfaces and macros
* - renamed Msg object to usual all-lowercase object name (else we ran intoRainer Gerhards2008-01-301-0/+15
| | | | | | troubles with the framework, also it was somewhat ugly...) - fixed a memory leak in object destruction (was recently introduced by object naming, not present in any released version)
* added ability to re-enqueue objects into the queue when a worker thread isRainer Gerhards2008-01-291-1/+3
| | | | cancelled
* implemented naming for all objects (mostly as a debug aid, but you neverRainer Gerhards2008-01-291-1/+61
| | | | know what else it will be good for)
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-18/+18
| | | | | | finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
* worker shutdown sequence enhanced to try different ways to shut down andRainer Gerhards2008-01-141-1/+0
| | | | | terminate workers if none helps (this protects against badly written output plugins which hold the queue for too long)
* support for reading back persistet queue information completedRainer Gerhards2008-01-131-2/+10
|
* partial ability to read a disk queue back in (not completed, but would likeRainer Gerhards2008-01-111-3/+51
| | | | to save source for the weekend)
* added function to de-serialize a property bag (untested as other code isRainer Gerhards2008-01-111-19/+80
| | | | yet missing)
* queue can now persist disk queue information on immediate shutdownRainer Gerhards2008-01-111-1/+1
|
* support for object property bags addedRainer Gerhards2008-01-111-14/+40
|
* file stream objects are now persistet on immediate queue shutdown (queueRainer Gerhards2008-01-111-3/+5
| | | | itself is not yet fully persisted)
* changed some config parameters and some cleanupRainer Gerhards2008-01-101-1/+1
|
* - added write functions for several types to stream classRainer Gerhards2008-01-101-78/+57
| | | | - changed objSerialize methods to work directly on the stream class
* some cleanup on object modelRainer Gerhards2008-01-091-29/+30
|
* completed object deserializerRainer Gerhards2008-01-081-15/+46
|
* - first implementation of "disk" queue mode finished. It still needs someRainer Gerhards2008-01-081-9/+73
| | | | | | | work and the deserializer needs also to be expanded, but the queue at least performs well now. - fixed a race condition that could occur when input modules were terminated
* implemented queue disk reader to switch to multiple filesRainer Gerhards2008-01-081-2/+1
|
* worked a bit more on the queue, disk dequeing part (not complete yet)Rainer Gerhards2008-01-071-0/+2
|
* - MsgSetProperty() implementedRainer Gerhards2008-01-071-7/+275
| | | | | - defined a property class - implemented deserializer (needs some more work)
* implemented class type registryRainer Gerhards2008-01-071-0/+32
|
* implemented disk queue as far as I could without an object de-serializerRainer Gerhards2008-01-071-2/+2
|
* performance-tuned stringbuf classRainer Gerhards2008-01-071-4/+11
|
* worked on object header (now also contains the size)Rainer Gerhards2008-01-061-30/+54
|
* completed serializer for msg (but needs review)Rainer Gerhards2008-01-061-1/+32
|
* worked a bit on object serializationRainer Gerhards2008-01-061-1/+122
|
* utilized the new auto-destruction capability so that the queue can nowRainer Gerhards2008-01-041-1/+2
| | | | destruct user objects if needed
* - begun some work on Msg Object serializiationRainer Gerhards2008-01-041-0/+97
- created a kind of general base class