examples: eldbus and elementary: fix build after efl model changes
authorStefan Schmidt <stefan@osg.samsung.com>
Fri, 17 Jun 2016 10:29:19 +0000 (12:29 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Fri, 17 Jun 2016 10:35:06 +0000 (12:35 +0200)
In commit 8e4f383d61188020d5ceeee691fd7df761f10202 the function signature
changed but examples have not been build and fixed.

src/examples/eldbus/dbusmodel.c
src/examples/elementary/filemvc.c

index 9695bd5..ea43bc4 100644 (file)
@@ -80,7 +80,7 @@ promise_then_a(void* priv_obj EINA_UNUSED, void* data)
              unsigned j = 0;
              EINA_ARRAY_ITER_NEXT(properties_list, j, property, a_it)
                {
-                  efl_model_property_get(child, property, &promises[j]);
+                  promises[j] = efl_model_property_get(child, property);
                }
              eina_promise_then(eina_promise_all(eina_carray_iterator_new((void **)promises)),
                                &promise_then_prop_c, &error_cb, child);
@@ -137,8 +137,8 @@ main(int argc, char **argv EINA_UNUSED)
    root = eo_add_ref(ELDBUS_MODEL_OBJECT_CLASS, NULL, eldbus_model_object_constructor(eo_self, ELDBUS_CONNECTION_TYPE_SESSION, NULL, EINA_FALSE, bus, path));
 
    Eina_Promise *promises[] = { NULL, NULL, NULL};
-   efl_model_children_slice_get(root, 0, 0, &promises[0]);
-   efl_model_children_count_get(root, &promises[1]);
+   promises[0] = efl_model_children_slice_get(root, 0, 0);
+   promises[1] = efl_model_children_count_get(root);
 
    eina_promise_then(eina_promise_all(eina_carray_iterator_new((void **)promises)),
                      &promise_then, &error_cb, root);
index eb33d55..f4d7890 100644 (file)
@@ -84,7 +84,7 @@ _tree_selected_cb(void *data, const Eo_Event *event)
 
    printf("TREE selected model\n");
 
-   efl_model_property_get(child, "path", &promise);
+   promise= efl_model_property_get(child, "path");
    eina_promise_then(promise, &_promise_then, &_promise_error, priv);
    return EINA_TRUE;
 }