stefan pushed a commit to branch efl-1.12.

http://git.enlightenment.org/core/efl.git/commit/?id=6cc3bf559cb11ffc098f8116cafe321995a83a09

commit 6cc3bf559cb11ffc098f8116cafe321995a83a09
Author: Stefan Schmidt <[email protected]>
Date:   Fri Nov 14 12:33:08 2014 +0100

    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
---
 src/bin/eldbus/source_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
    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");

-- 


Reply via email to