summaryrefslogtreecommitdiff
path: root/src/bin/eldbus
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2013-09-11 10:29:36 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2013-09-19 15:47:22 -0300
commit5a8d3125b5f7d6b959e19691b56007c7d195b299 (patch)
tree75ca21de6b2015937dce408034a0880ff9fc2654 /src/bin/eldbus
parent2266bf89048ed4e75ec6cf0a0c3edcf4687f2556 (diff)
eldbus codegen: Initialize signal events with 0
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 0586d0a..f86c62c 100644
--- a/src/bin/eldbus/source_client.c
+++ b/src/bin/eldbus/source_client.c
@@ -313,7 +313,7 @@ source_client_signal_generate(const DBus_Signal *sig, Eina_Strbuf *c_code, Eina_
313 Eina_Strbuf *string_free = eina_strbuf_new(); 313 Eina_Strbuf *string_free = eina_strbuf_new();
314 314
315 eina_strbuf_append_printf(c_init_function, " eldbus_proxy_signal_handler_add(proxy, \"%s\", %s, proxy);\n", sig->name, sig->cb_name); 315 eina_strbuf_append_printf(c_init_function, " eldbus_proxy_signal_handler_add(proxy, \"%s\", %s, proxy);\n", sig->name, sig->cb_name);
316 eina_strbuf_append_printf(c_header, "int %s;\n", sig->signal_event); 316 eina_strbuf_append_printf(c_header, "int %s = 0;\n", sig->signal_event);
317 eina_strbuf_append_printf(h, "extern int %s;\n", sig->signal_event); 317 eina_strbuf_append_printf(h, "extern int %s;\n", sig->signal_event);
318 eina_strbuf_append_printf(c_init_function, " if (!%s)\n", sig->signal_event); 318 eina_strbuf_append_printf(c_init_function, " if (!%s)\n", sig->signal_event);
319 eina_strbuf_append_printf(c_init_function, " %s = ecore_event_type_new();\n", sig->signal_event); 319 eina_strbuf_append_printf(c_init_function, " %s = ecore_event_type_new();\n", sig->signal_event);