#include "Elementary.h"
#include "private.h"
-int _elm_log_dom = -1;
+int _elm_ext_log_dom = -1;
static int init_count = 0;
static Eina_Bool
elm_mod_init(void)
{
- _elm_log_dom = eina_log_domain_register("elm-externals", EINA_COLOR_LIGHTBLUE);
+ _elm_ext_log_dom = eina_log_domain_register("elm-externals", EINA_COLOR_LIGHTBLUE);
edje_external_type_array_register(elm_external_types);
return EINA_TRUE;
}
elm_mod_shutdown(void)
{
edje_external_type_array_unregister(elm_external_types);
- if (_elm_log_dom >= 0) eina_log_domain_unregister(_elm_log_dom);
- _elm_log_dom = -1;
+ if (_elm_ext_log_dom >= 0) eina_log_domain_unregister(_elm_log_dom);
+ _elm_ext_log_dom = -1;
}
EINA_MODULE_INIT(elm_mod_init);
#include "Elementary.h"
#include "elm_priv.h"
+#undef CRITICAL
+#undef ERR
+#undef WRN
+#undef INF
+#undef DBG
+
+#define CRITICAL(...) EINA_LOG_DOM_CRIT(_elm_ext_log_dom, __VA_ARGS__)
+#define ERR(...) EINA_LOG_DOM_ERR (_elm_ext_log_dom, __VA_ARGS__)
+#define WRN(...) EINA_LOG_DOM_WARN(_elm_ext_log_dom, __VA_ARGS__)
+#define INF(...) EINA_LOG_DOM_INFO(_elm_ext_log_dom, __VA_ARGS__)
+#define DBG(...) EINA_LOG_DOM_DBG (_elm_ext_log_dom, __VA_ARGS__)
+
typedef struct {
const char *style;
Eina_Bool disabled:1;
Eina_Bool disabled_exists:1;
} Elm_Params;
+extern int _elm_ext_log_dom;
+
void external_elm_init(void);
void external_signal(void *data, Evas_Object *obj, const char *signal, const char *source);
void external_signals_proxy(Evas_Object *obj, Evas_Object *edje, const char *part_name);