summaryrefslogtreecommitdiff
path: root/src/lib/store/store_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/store/store_private.h')
-rw-r--r--src/lib/store/store_private.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/lib/store/store_private.h b/src/lib/store/store_private.h
new file mode 100644
index 0000000..3f09f25
--- /dev/null
+++ b/src/lib/store/store_private.h
@@ -0,0 +1,48 @@
1#include <Store.h>
2
3extern int _store_log_dom_global;
4
5#define ERR(...) EINA_LOG_DOM_ERR(_store_log_dom_global, __VA_ARGS__)
6#define DBG(...) EINA_LOG_DOM_DBG(_store_log_dom_global, __VA_ARGS__)
7#define NFO(...) EINA_LOG_DOM_INFO(_store_log_dom_global, __VA_ARGS__)
8#define WRN(...) EINA_LOG_DOM_WARN(_store_log_dom_global, __VA_ARGS__)
9#define CRI(...) EINA_LOG_DOM_CRIT(_store_log_dom_global, __VA_ARGS__)
10
11
12struct _Store
13{
14 const char *url;
15 const void *data;
16};
17
18typedef struct _Store_Add
19{
20 Store *store;
21 Ecore_Con_Url *ec;
22
23 struct
24 {
25 Eina_Strbuf *buf;
26 size_t len;
27 } data;
28
29 struct
30 {
31 const void *data;
32 Store_Done_Cb done;
33 Store_Error_Cb error;
34 } cb;
35
36 struct
37 {
38 Ecore_Event_Handler *ed,
39 *ec;
40 } ev;
41} Store_Add;
42
43void store_add_free(Store_Add *sa);
44
45Eina_Bool store_event_data(void *data, int type, void *event_info);
46Eina_Bool store_event_complete(void *data, int type, void *event_info);
47
48char * store_utils_dupf(const char *s, ...);