summaryrefslogtreecommitdiffstats
path: root/omusrmsg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-24 07:35:13 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-24 07:35:13 +0000
commitcb2fc5f2d664ce48b9e3e8fd6c06e3aa3a9d9f66 (patch)
tree3b750bb2624ae9a90c96e2bc15d9a687df0764b3 /omusrmsg.c
parentd9653ad08ffd2e8578aac00777cd610fce1f05c1 (diff)
downloadrsyslog-cb2fc5f2d664ce48b9e3e8fd6c06e3aa3a9d9f66.tar.gz
rsyslog-cb2fc5f2d664ce48b9e3e8fd6c06e3aa3a9d9f66.tar.xz
rsyslog-cb2fc5f2d664ce48b9e3e8fd6c06e3aa3a9d9f66.zip
fixed wrong credits - last patch was by mildew -- sorry for that ;)
Diffstat (limited to 'omusrmsg.c')
-rw-r--r--omusrmsg.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/omusrmsg.c b/omusrmsg.c
index 6d400655..cdb3981c 100644
--- a/omusrmsg.c
+++ b/omusrmsg.c
@@ -214,28 +214,11 @@ static int doAction(selector_t *f)
return 0;
}
-/* query an entry point
- */
-static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())
-{
- if((name == NULL) || (pEtryPoint == NULL))
- return RS_RET_PARAM_ERROR;
-
- *pEtryPoint = NULL;
- if(!strcmp((char*) name, "doAction")) {
- *pEtryPoint = doAction;
- } /*else if(!strcmp((char*) name, "freeInstance")) {
- *pEtryPoint = freeInstanceFile;
- }*/
-
- return(*pEtryPoint == NULL) ? RS_RET_NOT_FOUND : RS_RET_OK;
-}
-
/* try to process a selector action line. Checks if the action
* applies to this module and, if so, processed it. If not, it
* is left untouched. The driver will then call another module
*/
-rsRetVal parseSelectorActUsrMsg(uchar **pp, selector_t *f)
+static rsRetVal parseSelectorAct(uchar **pp, selector_t *f)
{
uchar *p, *q;
int i;
@@ -320,6 +303,25 @@ rsRetVal parseSelectorActUsrMsg(uchar **pp, selector_t *f)
return RS_RET_CONFLINE_PROCESSED;
}
+/* query an entry point
+ */
+static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())
+{
+ if((name == NULL) || (pEtryPoint == NULL))
+ return RS_RET_PARAM_ERROR;
+
+ *pEtryPoint = NULL;
+ if(!strcmp((char*) name, "doAction")) {
+ *pEtryPoint = doAction;
+ } else if(!strcmp((char*) name, "parseSelectorAct")) {
+ *pEtryPoint = parseSelectorAct;
+ } /*else if(!strcmp((char*) name, "freeInstance")) {
+ *pEtryPoint = freeInstanceFile;
+ }*/
+
+ return(*pEtryPoint == NULL) ? RS_RET_NOT_FOUND : RS_RET_OK;
+}
+
/* initialize the module
*
* Later, much more must be done. So far, we only return a pointer