summaryrefslogtreecommitdiff
path: root/src/examples/eldbus
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-06-17 12:29:19 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-06-17 12:35:06 +0200
commit4df5e929fce038f2ea5928577caf28be2d7bcd8f (patch)
tree4189aa96bbc63b757461466f2c85e21861269e68 /src/examples/eldbus
parent4e2d7b5f8b88a7a4c313cfbd1438d7cfc4a60142 (diff)
examples: eldbus and elementary: fix build after efl model changes
In commit 8e4f383d61188020d5ceeee691fd7df761f10202 the function signature changed but examples have not been build and fixed.
Diffstat (limited to 'src/examples/eldbus')
-rw-r--r--src/examples/eldbus/dbusmodel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/eldbus/dbusmodel.c b/src/examples/eldbus/dbusmodel.c
index 9695bd5..ea43bc4 100644
--- a/src/examples/eldbus/dbusmodel.c
+++ b/src/examples/eldbus/dbusmodel.c
@@ -80,7 +80,7 @@ promise_then_a(void* priv_obj EINA_UNUSED, void* data)
80 unsigned j = 0; 80 unsigned j = 0;
81 EINA_ARRAY_ITER_NEXT(properties_list, j, property, a_it) 81 EINA_ARRAY_ITER_NEXT(properties_list, j, property, a_it)
82 { 82 {
83 efl_model_property_get(child, property, &promises[j]); 83 promises[j] = efl_model_property_get(child, property);
84 } 84 }
85 eina_promise_then(eina_promise_all(eina_carray_iterator_new((void **)promises)), 85 eina_promise_then(eina_promise_all(eina_carray_iterator_new((void **)promises)),
86 &promise_then_prop_c, &error_cb, child); 86 &promise_then_prop_c, &error_cb, child);
@@ -137,8 +137,8 @@ main(int argc, char **argv EINA_UNUSED)
137 root = eo_add_ref(ELDBUS_MODEL_OBJECT_CLASS, NULL, eldbus_model_object_constructor(eo_self, ELDBUS_CONNECTION_TYPE_SESSION, NULL, EINA_FALSE, bus, path)); 137 root = eo_add_ref(ELDBUS_MODEL_OBJECT_CLASS, NULL, eldbus_model_object_constructor(eo_self, ELDBUS_CONNECTION_TYPE_SESSION, NULL, EINA_FALSE, bus, path));
138 138
139 Eina_Promise *promises[] = { NULL, NULL, NULL}; 139 Eina_Promise *promises[] = { NULL, NULL, NULL};
140 efl_model_children_slice_get(root, 0, 0, &promises[0]); 140 promises[0] = efl_model_children_slice_get(root, 0, 0);
141 efl_model_children_count_get(root, &promises[1]); 141 promises[1] = efl_model_children_count_get(root);
142 142
143 eina_promise_then(eina_promise_all(eina_carray_iterator_new((void **)promises)), 143 eina_promise_then(eina_promise_all(eina_carray_iterator_new((void **)promises)),
144 &promise_then, &error_cb, root); 144 &promise_then, &error_cb, root);