summaryrefslogtreecommitdiff
path: root/src/lib/eldbus/eldbus_model_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eldbus/eldbus_model_private.h')
-rw-r--r--src/lib/eldbus/eldbus_model_private.h31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/lib/eldbus/eldbus_model_private.h b/src/lib/eldbus/eldbus_model_private.h
index b5f3610..5b155a1 100644
--- a/src/lib/eldbus/eldbus_model_private.h
+++ b/src/lib/eldbus/eldbus_model_private.h
@@ -8,19 +8,28 @@
8#include <Eo.h> 8#include <Eo.h>
9#include <Efl.h> 9#include <Efl.h>
10 10
11typedef struct _Eldbus_Children_Slice_Promise _Eldbus_Children_Slice_Promise; 11typedef struct _Eldbus_Children_Slice_Promise Eldbus_Children_Slice_Promise;
12typedef struct _Eldbus_Model_Data Eldbus_Model_Data;
13
12struct _Eldbus_Children_Slice_Promise 14struct _Eldbus_Children_Slice_Promise
13{ 15{
14 unsigned start; 16 Eina_Promise *p;
15 unsigned count; 17
16 Efl_Promise* promise; 18 unsigned int start;
19 unsigned int count;
17}; 20};
18 21
19typedef struct _Eldbus_Property_Promise _Eldbus_Property_Promise; 22struct _Eldbus_Model_Data
20struct _Eldbus_Property_Promise
21{ 23{
22 char *property; 24 Eldbus_Connection *connection;
23 Efl_Promise* promise; 25 Eldbus_Connection_Type type;
26
27 Eina_Stringshare *address;
28 Eina_Stringshare *unique_name;
29
30 Eina_Bool private : 1;
31
32 Eina_Bool is_listed : 1;
24}; 33};
25 34
26#define UNIQUE_NAME_PROPERTY "unique_name" 35#define UNIQUE_NAME_PROPERTY "unique_name"
@@ -28,6 +37,12 @@ struct _Eldbus_Property_Promise
28/* logging support */ 37/* logging support */
29extern int eldbus_model_log_dom; 38extern int eldbus_model_log_dom;
30 39
40static inline void
41_eldbus_eina_promise_cancel(void *data EINA_UNUSED,
42 const Eina_Promise *dead_ptr EINA_UNUSED)
43{
44}
45
31#define ELDBUS_MODEL_ON_ERROR_EXIT_PROMISE_SET(exp, promise, err, v) \ 46#define ELDBUS_MODEL_ON_ERROR_EXIT_PROMISE_SET(exp, promise, err, v) \
32 do \ 47 do \
33 { \ 48 { \