#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)
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;
}
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);
}
_modules_name = NULL;
}
-
- eina_log_domain_unregister(_edje_modules_log_dom);
- _edje_modules_log_dom = -1;
}
EAPI const Eina_List *