summaryrefslogtreecommitdiff
path: root/src/lib/rules/rules_private.h
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-19 10:45:57 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-19 10:45:57 +0100
commitd380b49deef43c71de1c4353d4ab2c4c808da559 (patch)
treef2746bc4b9b2a86d77419e6270a32f8cd63b136e /src/lib/rules/rules_private.h
parentdbb099df5455a2932b9ed3b12258cff8faca513b (diff)
Smman can now load its conf file and fake loading of rules.
Next step is to compile regexes and find log files to watch.
Diffstat (limited to '')
-rw-r--r--src/lib/rules/rules_private.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/lib/rules/rules_private.h b/src/lib/rules/rules_private.h
index c4a370f..1d74d95 100644
--- a/src/lib/rules/rules_private.h
+++ b/src/lib/rules/rules_private.h
@@ -1,6 +1,4 @@
1#include <Rules.h> 1#include <Rules.h>
2#include <sys/types.h>
3#include <regex.h>
4 2
5extern int _rules_log_dom_global; 3extern int _rules_log_dom_global;
6 4
@@ -16,30 +14,6 @@ struct _Rules
16 Eina_Inlist *rules; 14 Eina_Inlist *rules;
17}; 15};
18 16
19struct _Rule
20{
21 EINA_INLIST;
22 const char *name;
23
24 struct
25 {
26 const char *filename,
27 *type,
28 *source_host,
29 *source_path,
30 *tags;
31 Eina_Bool todel;
32 Eina_Inlist *regex;
33 } spec;
34};
35
36typedef struct _Rule_Regex
37{
38 const char *regex;
39 Eina_Bool must_match;
40 regex_t preg;
41} Rule_Regex;
42
43typedef struct _Rules_Load 17typedef struct _Rules_Load
44{ 18{
45 Rules *rules; 19 Rules *rules;