summaryrefslogtreecommitdiffstats
path: root/module-template.h
Commit message (Collapse)AuthorAgeFilesLines
* implemented module unload handling (required a number of interface changes)Rainer Gerhards2008-03-111-4/+9
|
* fixed a few remaining logerror() calls - thanks to Michael Biebl forRainer Gerhards2008-03-061-0/+1
| | | | pointing that out
* - changed modules.c calling conventions to be interface-basedRainer Gerhards2008-03-051-7/+17
| | | | | | | | | | | - 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)
* - changed module interface to support querying obj interface (stage work)Rainer Gerhards2008-03-041-4/+10
| | | | - changed module interface version, as the interface change is quite large
* - added class tcpsRainer Gerhards2008-03-021-1/+1
| | | | | | - added class tcps_sess - changed imtcp to use new classes; seems to work; imgssapi currently broken
* fixed bug in output module interface, seeRainer Gerhards2008-01-301-2/+3
| | | | | http://sourceforge.net/tracker/index.php?func=detail&aid=1881008&group_ id=123448&atid=696552
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-20/+28
| | | | | | 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...
* - fixed a bug that caused a segfault on startup when no $WorkDir directivev3-10-1aRainer Gerhards2008-01-101-12/+0
| | | | | | was specified in rsyslog.conf - fixed a bug that caused a segfault on queues with types other than "disk" - removed the now longer needed thread TermSyncTool
* removed single-threading support for sending TCP messages; causedRainer Gerhards2007-12-201-47/+0
| | | | | simplyfication of output module interface as well as core syslog processing.
* moved unix socket code to its own module (imuxsock)Rainer Gerhards2007-12-201-1/+1
|
* - implemented afterRun input module interface functionRainer Gerhards2007-12-171-0/+21
| | | | - implemented $klogSymbolsTwice config directive
* begun imklog, replacing klogd.c (finally we get rid of it...)Rainer Gerhards2007-12-171-1/+6
|
* implemented $MarkMessagePeriod config directiveRainer Gerhards2007-12-171-0/+23
|
* moved thread termination code out to threads.cRainer Gerhards2007-12-171-1/+1
|
* graceful termination now supportedRainer Gerhards2007-12-141-0/+12
|
* added thread activationRainer Gerhards2007-12-141-1/+4
|
* on the way to a real input module interface and threading class...Rainer Gerhards2007-12-141-0/+19
|
* - begun to create input module interface and macrosRainer Gerhards2007-12-141-9/+42
| | | | - changed module interface to include function to query type
* changed license to GPLv3 (for what is to become rsyslog v3)Rainer Gerhards2007-12-141-7/+8
|
* - added an identifier to command handler table - need to identify whichRainer Gerhards2007-11-211-0/+13
| | | | | | | | | | command handler entries need to be removed when module is unloaded - added support so that linkedlist key can be used for owner handle - enhanced llExecFunc to support deletion of list elements (on behalf of user function being called, slight interface change) - enhanced linkedlist class so that list elements can now be deleted based on the key value they have - created entry point so that CfSysLine handlers are removed on modExit()
* added an identifier to command handler table - need to identify whichRainer Gerhards2007-11-211-1/+12
| | | | command handler entries need to be removed when module is unloaded
* added new modExit() entry point to loadable module interfaceRainer Gerhards2007-11-211-3/+48
|
* - removed compiler warnings in non-debug modev1-19-6bRainer Gerhards2007-09-111-1/+1
| | | | | | - fixed a bug that caused the CStr class to not honor the parameter to return NULL on empty string - causes a mem leak and can create favourable environment for other bugs (as it leads to empty hostnames)
* fixed a bug that in --enable-debug mode caused an assertion when theRainer Gerhards2007-09-101-1/+1
| | | | discard action was used
* applied patches which will be released under 1.19.1, changed doc for 1.19.1v1-19-1Michael Meckelein2007-08-221-2/+5
| | | | release
* - I found out that we finally have problems with the (somewhat recursive)Rainer Gerhards2007-08-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | call to logerror() that many of the modules do. I have not tried it, but I think things will become wild when we compile without pthread support. Threading prevents full recursion, so we have not seen any bad effects so far. However, the problems that I experienced in ommysl (that caused me to re-structure startWorker()) are actually rooted in this issue. I first thought to fix it via a module interace, but I now came to the conclusion that it is not more effort and much cleaner to do an internal error buffering class. This is implemented in errbuf.c/h. - I just noticed that this is not actually an error buf, but the core of an input module for all internal messages. As such, I implement it now as iminternal.c/h. Of course, there is no input module interface yet designed, but that doesn't matter. Worst-case, I need to re-write the im, best case I can use the im (at least partly) to define the interface. - added a few functions to the linkedlist class - error messages during startup are now buffered - so we do no longer need to think about how emergency logging might work. Actually, these are logged to whatever is instatiated in the log file. This enhances the chance that we will be able to drop the error message somewhere it is seen.
* - added CODE_STD_FINALIZERparseSelectorAct to module-generation macrosRainer Gerhards2007-08-031-6/+7
| | | | | | - restructered rsyslogd startup - moved startWorker() to a more appropriate place - updated ommysql.c to fully support suspension/resumption by rule engine
* added tryResume() API to module interfaceRainer Gerhards2007-08-021-0/+25
|
* - changed modInit() interface to contain pointer to host-function queryRainer Gerhards2007-07-311-2/+13
| | | | method
* added macro to consistently define iRetRainer Gerhards2007-07-311-7/+7
|
* removed selector_t f references from output modulesRainer Gerhards2007-07-271-12/+6
|
* - added omsr object (objomsr.c, objomsr.h) - template request for outputRainer Gerhards2007-07-271-5/+26
| | | | | | modules - changed doAction() interface - templates and output string generation for doActon() is now fully
* - changed doAction() interface to contain the full message stringRainer Gerhards2007-07-261-2/+3
| | | | - f_iov and its handling has been removed
* - implemented needUDPSocket() interfaceRainer Gerhards2007-07-261-9/+23
| | | | | | | | - replaced (mis) use of f_prevcount in omfwd.c -> now data element in instance data is used for retry counting - removed f->f_type from syslogd.c, omfwd.c - removed f->f_file from omfwd.c, omfile.c - f->f_flags is gone away
* - changed doAction() interface to include module data pointerRainer Gerhards2007-07-261-3/+9
| | | | | | - removed references to f_un from omusrmsg.c - changed module template for parseSelectorAct() [code reduction, consitency]
* - implemented onSelectReadyWrite() interfaceRainer Gerhards2007-07-261-2/+28
| | | | - milestone reached: no more access to f->f_un in syslogd.c
* introduced getWriteFDForSelect() module APIRainer Gerhards2007-07-251-0/+23
|
* added new function dbgPrintInstInfo() to omod interfaceRainer Gerhards2007-07-251-0/+23
|
* changed calling interface for freeInstance() - need to work with dualRainer Gerhards2007-07-251-5/+11
| | | | buffers in order to change output modules one by one
* changed output modules to use a template-based code generation system forRainer Gerhards2007-07-251-0/+192
standard entry points (implemented via preprocessor)