Skip to content

Commit

Permalink
xml: add filterx parser
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Aug 9, 2024
1 parent 08088f7 commit 920ffd5
Show file tree
Hide file tree
Showing 7 changed files with 603 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/filterx/expr-function.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ FilterXExpr *filterx_generator_function_lookup(GlobalConfig *cfg, const gchar *f
.construct = filterx_function_ ## func_name ## _construct, \
}

#define FILTERX_GENERATOR_FUNCTION_PROTOTYPE(func_name) \
gpointer \
filterx_function_ ## func_name ## _construct(Plugin *self)
#define FILTERX_GENERATOR_FUNCTION_PROTOTYPE(func_name) \
gpointer \
filterx_generator_function_ ## func_name ## _construct(Plugin *self)

#define FILTERX_GENERATOR_FUNCTION_DECLARE(func_name) \
FILTERX_GENERATOR_FUNCTION_PROTOTYPE(func_name);
Expand Down
2 changes: 2 additions & 0 deletions modules/xml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ set(xml_SOURCES
"xml.h"
"xml-private.h"
"windows-eventlog-xml-parser.h"
"filterx-parse-xml.h"

"xml-plugin.c"
"xml-parser.c"
"xml.c"
"windows-eventlog-xml-parser.c"
"filterx-parse-xml.c"
)


Expand Down
4 changes: 3 additions & 1 deletion modules/xml/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ modules_xml_libxml_la_SOURCES = \
modules/xml/xml.c \
modules/xml/xml-private.h \
modules/xml/windows-eventlog-xml-parser.h \
modules/xml/windows-eventlog-xml-parser.c
modules/xml/windows-eventlog-xml-parser.c \
modules/xml/filterx-parse-xml.h \
modules/xml/filterx-parse-xml.c


BUILT_SOURCES += \
Expand Down
Loading

0 comments on commit 920ffd5

Please sign in to comment.