diff options
author | Michael Biebl <biebl@debian.org> | 2009-06-23 11:07:37 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2009-06-23 11:07:37 +0100 |
commit | 62b1f9d1c05362d94d91048f2332339c5767381b (patch) | |
tree | 59315ee8688a2284e6bba5a7826ff304b6511a53 /runtime/objomsr.c | |
parent | ab9c4e360b143e9b9f78ae80c9da62ecc131e672 (diff) | |
download | rsyslog-62b1f9d1c05362d94d91048f2332339c5767381b.tar.gz |
Imported Upstream version 4.2.0upstream/4.2.0
Diffstat (limited to 'runtime/objomsr.c')
-rw-r--r-- | runtime/objomsr.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/objomsr.c b/runtime/objomsr.c index 21d284f..8dddc4b 100644 --- a/runtime/objomsr.c +++ b/runtime/objomsr.c @@ -141,5 +141,23 @@ int OMSRgetEntry(omodStringRequest_t *pThis, int iEntry, uchar **ppTplName, int return RS_RET_OK; } + + +/* return the full set of template options that are supported by this version of + * OMSR. They are returned in an unsigned long value. The caller can mask that + * value to check on the option he is interested in. + * Note that this interface was added in 4.1.6, so a plugin must obtain a pointer + * to this interface via queryHostEtryPt(). + * rgerhards, 2009-04-03 + */ +rsRetVal +OMSRgetSupportedTplOpts(unsigned long *pOpts) +{ + DEFiRet; + assert(pOpts != NULL); + *pOpts = OMSR_RQD_TPL_OPT_SQL | OMSR_TPL_AS_ARRAY; + RETiRet; +} + /* vim:set ai: */ |