summaryrefslogtreecommitdiff
path: root/src/bin/eldbus
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-11-14 12:33:08 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-14 12:39:08 +0100
commit233317221d844e4818f830590d78017408b9d9fb (patch)
tree64532d7a88910667287df382a37966e2b638f36e /src/bin/eldbus
parent612633b4e20ec74ea6416ddcf1e29bb8038963e7 (diff)
eldbus-codegen: Make generated code for property set work by setting the cb
Whenever you tried using a propset function from code generated with eldbus-codegen it would segfault as we never set the callback function but passed in data instead. @fix
Diffstat (limited to 'src/bin/eldbus')
-rw-r--r--src/bin/eldbus/source_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eldbus/source_client.c b/src/bin/eldbus/source_client.c
index 28a605a..50c0188 100644
--- a/src/bin/eldbus/source_client.c
+++ b/src/bin/eldbus/source_client.c
@@ -511,7 +511,7 @@ source_client_property_generate_set(const DBus_Property *prop, Eina_Strbuf *c_co
511 eina_strbuf_append_printf(c_code, " Eldbus_Pending *p;\n"); 511 eina_strbuf_append_printf(c_code, " Eldbus_Pending *p;\n");
512 eina_strbuf_append_printf(c_code, " EINA_SAFETY_ON_NULL_RETURN_VAL(proxy, NULL);\n"); 512 eina_strbuf_append_printf(c_code, " EINA_SAFETY_ON_NULL_RETURN_VAL(proxy, NULL);\n");
513 eina_strbuf_append_printf(c_code, " EINA_SAFETY_ON_NULL_RETURN_VAL(value, NULL);\n"); 513 eina_strbuf_append_printf(c_code, " EINA_SAFETY_ON_NULL_RETURN_VAL(value, NULL);\n");
514 eina_strbuf_append_printf(c_code, " p = eldbus_proxy_property_set(proxy, \"%s\", \"%s\", value, %s_set, data);\n", prop->name, prop->type, prop->cb_name); 514 eina_strbuf_append_printf(c_code, " p = eldbus_proxy_property_set(proxy, \"%s\", \"%s\", value, %s_set, cb);\n", prop->name, prop->type, prop->cb_name);
515 eina_strbuf_append_printf(c_code, " eldbus_pending_data_set(p, \"__user_data\", data);\n"); 515 eina_strbuf_append_printf(c_code, " eldbus_pending_data_set(p, \"__user_data\", data);\n");
516 eina_strbuf_append_printf(c_code, " eldbus_pending_data_set(p, \"__proxy\", proxy);\n"); 516 eina_strbuf_append_printf(c_code, " eldbus_pending_data_set(p, \"__proxy\", proxy);\n");
517 eina_strbuf_append_printf(c_code, " return p;\n"); 517 eina_strbuf_append_printf(c_code, " return p;\n");