summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-16 09:27:11 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-06-16 09:27:11 +0300
commit2aaac63a3da9fffb8c141546cb10d351296baf2e (patch)
tree67687aec53cb7ec5dcccf3d517e68ec2acd3c30c
parent744be176df3b58d1295c544e1b687229e5709fcb (diff)
First catch test
-rw-r--r--README2
-rw-r--r--src/lib/edje_sniffer.c23
2 files changed, 25 insertions, 0 deletions
diff --git a/README b/README
index c50ca08..048d434 100644
--- a/README
+++ b/README
@@ -2,3 +2,5 @@ Aim:
2 Sniffer for Edje transactions 2 Sniffer for Edje transactions
3 Output as a dot file 3 Output as a dot file
4 4
5Hack:
6 Need to EAPI the function _edje_message_queue_process in edje_private.h
diff --git a/src/lib/edje_sniffer.c b/src/lib/edje_sniffer.c
index e8faac3..4eb170b 100644
--- a/src/lib/edje_sniffer.c
+++ b/src/lib/edje_sniffer.c
@@ -3,3 +3,26 @@
3 3
4#include <Edje.h> 4#include <Edje.h>
5 5
6#ifdef EAPI
7#undef EAPI
8#endif
9#define EAPI __attribute__ ((visibility("default")))
10
11EAPI void
12_edje_message_queue_process(void)
13{
14 static void (*_edje_foo)(void) = NULL;
15 if (!_edje_foo) _edje_foo = dlsym(RTLD_NEXT, __func__);
16 static unsigned int timeslot = 0;
17 printf("Start timeslot %d\n", timeslot);
18 _edje_foo();
19 printf("Finish timeslot %d\n", timeslot++);
20}
21
22EAPI int
23elm_init(int argc, char **argv)
24{
25 printf("Elm_Init\n");
26 int (*_elm_init)(int, char **) = dlsym(RTLD_NEXT, __func__);
27 return _elm_init(argc, argv);
28}