forked from enlightenment/efl
parent
45ba76b16e
commit
9a7760d37d
|
@ -32,13 +32,11 @@ void *alloca (size_t);
|
|||
#include <Ecore_File.h>
|
||||
|
||||
#include "Edje.h"
|
||||
|
||||
#define LOG_COLOR "\033[36m"
|
||||
#include "edje_private.h"
|
||||
|
||||
Eina_Hash *_registered_modules = NULL;
|
||||
Eina_Array *_available_modules = NULL;
|
||||
Eina_List *_modules_name = NULL;
|
||||
static int _edje_modules_log_dom = -1;
|
||||
|
||||
const char *
|
||||
_edje_module_name_get(Eina_Module *m)
|
||||
|
@ -67,13 +65,13 @@ edje_module_load(const char *module)
|
|||
|
||||
if (!m)
|
||||
{
|
||||
EINA_LOG_ERR("Could not find the module %s", module);
|
||||
ERR("Could not find the module %s", module);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
if (!eina_module_load(m))
|
||||
{
|
||||
EINA_LOG_ERR("Could not load the module %s", module);
|
||||
ERR("Could not load the module %s", module);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -87,14 +85,6 @@ _edje_module_init(void)
|
|||
Eina_Array_Iterator it;
|
||||
Eina_Module *m;
|
||||
|
||||
_edje_modules_log_dom = eina_log_domain_register("edje_module", LOG_COLOR);
|
||||
|
||||
if (_edje_modules_log_dom < 0)
|
||||
{
|
||||
EINA_LOG_ERR("Could not register log domain: edje_module");
|
||||
return;
|
||||
}
|
||||
|
||||
_registered_modules = eina_hash_string_small_new(NULL);
|
||||
_available_modules = eina_module_list_get(_available_modules,
|
||||
PACKAGE_LIB_DIR "/edje", 0, NULL, NULL);
|
||||
|
@ -142,9 +132,6 @@ _edje_module_shutdown(void)
|
|||
}
|
||||
_modules_name = NULL;
|
||||
}
|
||||
|
||||
eina_log_domain_unregister(_edje_modules_log_dom);
|
||||
_edje_modules_log_dom = -1;
|
||||
}
|
||||
|
||||
EAPI const Eina_List *
|
||||
|
|
Loading…
Reference in New Issue