diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2009-12-21 17:32:19 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2009-12-21 17:32:19 +0000 |
commit | d8e18953501c8bed701d66d0acdd4153b1122206 (patch) | |
tree | c75a2f4ce26f4861de6ce956866f8973f2d3a1f0 /legacy/ecore/src/lib/ecore_file/ecore_file.c | |
parent | 2410d1f00a95ee235dc7dbf185e89dcd11c9060c (diff) |
* ecore: Use eina_log.
Patch from Mathieu Taillefumier.
SVN revision: 44637
Diffstat (limited to '')
-rw-r--r-- | legacy/ecore/src/lib/ecore_file/ecore_file.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c index 318d6fff19..b04b35ee6f 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #include "ecore_file_private.h" | 27 | #include "ecore_file_private.h" |
28 | 28 | ||
29 | 29 | int _ecore_file_log_dom = -1; | |
30 | static int _ecore_file_init_count = 0; | 30 | static int _ecore_file_init_count = 0; |
31 | 31 | ||
32 | /* externally accessible functions */ | 32 | /* externally accessible functions */ |
@@ -41,7 +41,12 @@ ecore_file_init() | |||
41 | { | 41 | { |
42 | if (++_ecore_file_init_count != 1) | 42 | if (++_ecore_file_init_count != 1) |
43 | return _ecore_file_init_count; | 43 | return _ecore_file_init_count; |
44 | 44 | _ecore_file_log_dom = eina_log_domain_register("EcoreFile", ECORE_DEFAULT_LOG_COLOR); | |
45 | if(_ecore_file_log_dom < 0) | ||
46 | { | ||
47 | EINA_LOG_ERR("Impossible to create a log domain for the ecore file module."); | ||
48 | return --_ecore_file_init_count; | ||
49 | } | ||
45 | ecore_file_path_init(); | 50 | ecore_file_path_init(); |
46 | ecore_file_monitor_init(); | 51 | ecore_file_monitor_init(); |
47 | ecore_file_download_init(); | 52 | ecore_file_download_init(); |
@@ -81,7 +86,8 @@ ecore_file_shutdown() | |||
81 | ecore_file_download_shutdown(); | 86 | ecore_file_download_shutdown(); |
82 | ecore_file_monitor_shutdown(); | 87 | ecore_file_monitor_shutdown(); |
83 | ecore_file_path_shutdown(); | 88 | ecore_file_path_shutdown(); |
84 | 89 | eina_log_domain_unregister(_ecore_file_log_dom); | |
90 | _ecore_file_log_dom = -1; | ||
85 | return _ecore_file_init_count; | 91 | return _ecore_file_init_count; |
86 | } | 92 | } |
87 | 93 | ||