summaryrefslogtreecommitdiff
path: root/src/lib/spy/spy_main.c
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-18 14:06:22 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-18 14:06:22 +0100
commit2c55710a9d04323fc698f49047432b3e231d2ca7 (patch)
tree61710dbb13b44834c4eb71d18a7c0a284709d2d5 /src/lib/spy/spy_main.c
parent7a94df818b590d0918b978aae5a60b911fa79ce0 (diff)
Add librules and fix other libs.
Diffstat (limited to '')
-rw-r--r--src/lib/spy/spy_main.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/spy/spy_main.c b/src/lib/spy/spy_main.c
index 3bb4282..139afed 100644
--- a/src/lib/spy/spy_main.c
+++ b/src/lib/spy/spy_main.c
@@ -35,6 +35,20 @@ spy_free(Spy *spy)
35} 35}
36 36
37Spy_File * 37Spy_File *
38spy_file_get(Spy *spy, const char *file)
39{
40 Spy_File *sf;
41
42 EINA_INLIST_FOREACH(spy->files, sf)
43 {
44 if (!strcmp(sf->name, file))
45 return sf;
46 }
47
48 return NULL;
49}
50
51Spy_File *
38spy_file_new(Spy *spy, const char *file) 52spy_file_new(Spy *spy, const char *file)
39{ 53{
40 Spy_File *sf; 54 Spy_File *sf;
@@ -119,8 +133,6 @@ spy_init(void)
119 133
120 return _spy_init_count; 134 return _spy_init_count;
121 135
122shutdown_ecore:
123 ecore_shutdown();
124unregister_log_domain: 136unregister_log_domain:
125 eina_log_domain_unregister(_spy_log_dom_global); 137 eina_log_domain_unregister(_spy_log_dom_global);
126 _spy_log_dom_global = -1; 138 _spy_log_dom_global = -1;