summaryrefslogtreecommitdiff
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
parent612633b4e20ec74ea6416ddcf1e29bb8038963e7 (diff)
downloadefl-233317221d844e4818f830590d78017408b9d9fb.tar.gz
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
-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 28a605a888..50c01885db 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
eina_strbuf_append_printf(c_code, " Eldbus_Pending *p;\n");
eina_strbuf_append_printf(c_code, " EINA_SAFETY_ON_NULL_RETURN_VAL(proxy, NULL);\n");
eina_strbuf_append_printf(c_code, " EINA_SAFETY_ON_NULL_RETURN_VAL(value, NULL);\n");
- 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);
+ 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);
eina_strbuf_append_printf(c_code, " eldbus_pending_data_set(p, \"__user_data\", data);\n");
eina_strbuf_append_printf(c_code, " eldbus_pending_data_set(p, \"__proxy\", proxy);\n");
eina_strbuf_append_printf(c_code, " return p;\n");