summaryrefslogtreecommitdiff
path: root/src/lib/store/store_private.h
blob: 3f09f256bff22c7979d84a126ff76c53e9170281 (plain) (blame)
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
#include <Store.h>

extern int _store_log_dom_global;

#define ERR(...) EINA_LOG_DOM_ERR(_store_log_dom_global, __VA_ARGS__)
#define DBG(...) EINA_LOG_DOM_DBG(_store_log_dom_global, __VA_ARGS__)
#define NFO(...) EINA_LOG_DOM_INFO(_store_log_dom_global, __VA_ARGS__)
#define WRN(...) EINA_LOG_DOM_WARN(_store_log_dom_global, __VA_ARGS__)
#define CRI(...) EINA_LOG_DOM_CRIT(_store_log_dom_global, __VA_ARGS__)


struct _Store
{
   const char *url;
   const void *data;
};

typedef struct _Store_Add
{
   Store *store;
   Ecore_Con_Url *ec;

   struct
   {
      Eina_Strbuf *buf;
      size_t len;
   } data;

   struct
   {
      const void *data;
      Store_Done_Cb done;
      Store_Error_Cb error;
   } cb;

   struct
   {
      Ecore_Event_Handler *ed,
                          *ec;
   } ev;
} Store_Add;

void store_add_free(Store_Add *sa);

Eina_Bool store_event_data(void *data, int type, void *event_info);
Eina_Bool store_event_complete(void *data, int type, void *event_info);

char * store_utils_dupf(const char *s, ...);