summaryrefslogtreecommitdiff
path: root/src/bin/efl
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2017-06-02 12:13:31 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2017-06-05 08:55:38 +0300
commit758bb0557c45353a8afffebb69d93f969e1ea4b6 (patch)
tree2d6e501bb541318d75487996cbdd9ee314ae807e /src/bin/efl
parentab01f3f696d8fe40d319c2d0e9867634d7c87d7b (diff)
Support opcodes registration for Windows
A standard static array with symbols whose addresses are only known at runtime is not supported in Windows.
Diffstat (limited to 'src/bin/efl')
-rw-r--r--src/bin/efl/efl_debug.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/bin/efl/efl_debug.c b/src/bin/efl/efl_debug.c
index be96b04d8d..1ebe8c8564 100644
--- a/src/bin/efl/efl_debug.c
+++ b/src/bin/efl/efl_debug.c
@@ -225,19 +225,18 @@ _args_handle(void *data EINA_UNUSED, Eina_Bool flag)
225 } 225 }
226} 226}
227 227
228static const Eina_Debug_Opcode ops[] = 228EINA_DEBUG_OPCODES_ARRAY_DEFINE(ops,
229{ 229 {"Daemon/Client/register_observer", &_cl_stat_reg_opcode, NULL},
230 {"Daemon/Client/register_observer", &_cl_stat_reg_opcode, NULL}, 230 {"Daemon/Client/added", NULL, &_clients_info_added_cb},
231 {"Daemon/Client/added", NULL, &_clients_info_added_cb}, 231 {"Daemon/Client/deleted", NULL, &_clients_info_deleted_cb},
232 {"Daemon/Client/deleted", NULL, &_clients_info_deleted_cb}, 232 {"Daemon/Client/cid_from_pid", &_cid_from_pid_opcode, &_cid_get_cb},
233 {"Daemon/Client/cid_from_pid", &_cid_from_pid_opcode, &_cid_get_cb}, 233 {"Profiler/on", &_prof_on_opcode, NULL},
234 {"Profiler/on", &_prof_on_opcode, NULL}, 234 {"Profiler/off", &_prof_off_opcode, NULL},
235 {"Profiler/off", &_prof_off_opcode, NULL}, 235 {"CPU/Freq/on", &_cpufreq_on_opcode, NULL},
236 {"CPU/Freq/on", &_cpufreq_on_opcode, NULL}, 236 {"CPU/Freq/off", &_cpufreq_off_opcode, NULL},
237 {"CPU/Freq/off", &_cpufreq_off_opcode, NULL}, 237 {"EvLog/get", &_evlog_get_opcode, _evlog_get_cb},
238 {"EvLog/get", &_evlog_get_opcode, _evlog_get_cb}, 238 {NULL, NULL, NULL}
239 {NULL, NULL, NULL} 239);
240};
241 240
242int 241int
243main(int argc EINA_UNUSED, char **argv EINA_UNUSED) 242main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
@@ -254,7 +253,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
254 fprintf(stderr, "ERROR: Cannot connect to debug daemon.\n"); 253 fprintf(stderr, "ERROR: Cannot connect to debug daemon.\n");
255 return -1; 254 return -1;
256 } 255 }
257 eina_debug_opcodes_register(_session, ops, _args_handle, NULL); 256 eina_debug_opcodes_register(_session, ops(), _args_handle, NULL);
258 257
259 ecore_main_loop_begin(); 258 ecore_main_loop_begin();
260 259