summaryrefslogtreecommitdiff
path: root/src/bin/filter.c
blob: ef05a4956f2cdf6b54261723ca0dc78dcc3fb989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "smman.h"

void
filter_load(void *data,
            Rules *rules,
            Rule *rule)
{
   Smman *smman;

   smman = data;
   if (smman->rules != rules)
     return;

   DBG("smman[%p] rules[%p] rule[%p][%s]", smman, rules, rule, rule->name);

   DBG("rule : %s\n\tfilename[%s]\n\tsource_host[%s]\n\t"
       "source_path[%s]\n\ttags[%s]\n\ttodel[%s]",
       rule->name, rule->spec.filename, rule->spec.source_host,
       rule->spec.source_path, rule->spec.tags,
       (rule->spec.todel) ? "EINA_TRUE" : "EINA_FALSE");
}

void
filter_load_done(void *data,
                 Rules *rules)
{
   Smman *smman;

   smman = data;
   if (smman->rules != rules)
     return;

   DBG("smman[%p] rules[%p]", smman, rules);
}


void
filter_load_error(void *data,
                  Rules *rules,
                  const char *errstr)
{
   Smman *smman;

   smman = data;

   if (smman->rules != rules)
     return;

   ERR("Failed to load rules : %s", errstr);
   ecore_main_loop_quit();
}