summaryrefslogtreecommitdiff
path: root/src/lib/rules/rules_private.h
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2014-01-07 09:41:52 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2014-01-07 09:41:52 +0100
commitf50e10521226133d4608d871fdb12e1521d681ed (patch)
tree19bc85bca417c2d7bebcd168972fdab8f7be06fb /src/lib/rules/rules_private.h
parenteb0c5b558750f6bf7fb699f514f6557843f56b9a (diff)
Fix the use of Rules_Load for loading each rule that is freed after
listing all the files from the rules directory ... We create a Rule_Load structure for this now.
Diffstat (limited to '')
-rw-r--r--src/lib/rules/rules_private.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/rules/rules_private.h b/src/lib/rules/rules_private.h
index 1d74d95..2042e93 100644
--- a/src/lib/rules/rules_private.h
+++ b/src/lib/rules/rules_private.h
@@ -27,6 +27,19 @@ typedef struct _Rules_Load
27 } cb; 27 } cb;
28} Rules_Load; 28} Rules_Load;
29 29
30typedef struct _Rule_Load
31{
32 Rules *rules;
33
34 struct
35 {
36 Rules_Progress_Cb progress;
37 Rules_Done_Cb done;
38 Rules_Error_Cb error;
39 const void *data;
40 } cb;
41} Rule_Load;
42
30Eina_Bool rules_load_ls_filter(void *data, Eio_File *handler, const Eina_File_Direct_Info *info); 43Eina_Bool rules_load_ls_filter(void *data, Eio_File *handler, const Eina_File_Direct_Info *info);
31void rules_load_ls(void *data, Eio_File *handler, const Eina_File_Direct_Info *info); 44void rules_load_ls(void *data, Eio_File *handler, const Eina_File_Direct_Info *info);
32void rules_load_ls_done(void *data, Eio_File *handler); 45void rules_load_ls_done(void *data, Eio_File *handler);