summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-06 14:40:35 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-06 14:40:35 +0200
commitda0f8b8cf271ab6aeb0e226636eecd740892888f (patch)
tree52acf7fc198a4866fcd60ed0e9382c2f68e8992d
parentf8a7001395061ce9aa2cf90ec725df20f125f402 (diff)
Catch Evas init & shutdown instead of Elementary
-rw-r--r--src/lib/cov_preload.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/cov_preload.c b/src/lib/cov_preload.c
index 5910940..10cba64 100644
--- a/src/lib/cov_preload.c
+++ b/src/lib/cov_preload.c
@@ -8,34 +8,34 @@
8 8
9#include "stats_common.h" 9#include "stats_common.h"
10 10
11static int _elm_init_count = 0; 11static int _init_count = 0;
12 12
13Stat_Infos infos; 13Stat_Infos infos;
14 14
15EAPI int 15EAPI int
16elm_init(int argc, char **argv) 16evas_init(void)
17{ 17{
18 _elm_init_count++; 18 _init_count++;
19 if (_elm_init_count > 1) return _elm_init_count; 19 if (_init_count > 1) return _init_count;
20 int (*_elm_init)(int, char **) = dlsym(RTLD_NEXT, __func__); 20 int (*foo)() = dlsym(RTLD_NEXT, __func__);
21 infos.l = NULL; 21 infos.l = NULL;
22 eina_init(); 22 eina_init();
23 eet_init(); 23 eet_init();
24 _elm_init(argc, argv); 24 foo();
25 return _elm_init_count; 25 return _init_count;
26} 26}
27 27
28EAPI int 28EAPI int
29elm_shutdown() 29evas_shutdown()
30{ 30{
31 Stat_Info *info; 31 Stat_Info *info;
32 int (*_elm_shutdown)() = dlsym(RTLD_NEXT, __func__); 32 int (*foo)() = dlsym(RTLD_NEXT, __func__);
33 _elm_init_count--; 33 _init_count--;
34 if (_elm_init_count > 1) return _elm_init_count; 34 if (_init_count > 1) return _init_count;
35 35
36 int ret = _elm_shutdown(); 36 int ret = foo();
37 37
38 stats_save(&infos, "espion_stats.eet"); 38 stats_save(&infos, "espion_stats.eet", STATS_EET_FORMAT);
39 39
40 EINA_LIST_FREE(infos.l, info) 40 EINA_LIST_FREE(infos.l, info)
41 { 41 {