forked from enlightenment/efl
Patch from Mathieu Taillefumier
I modified some hearder file in ecore to ease the cleanup of the private header files in ecore. Each module has now a private header with its own log color (eina_log related). I also created two private header files for ecore_sdl and ecore_input for this purpose and corrected some typos in the xlib_xcb private header file. SVN revision: 44933
This commit is contained in:
parent
ff86d27663
commit
8007e73077
|
@ -83,7 +83,7 @@ ecore_con_init(void)
|
||||||
if (!ecore_init())
|
if (!ecore_init())
|
||||||
return --_ecore_con_init_count;
|
return --_ecore_con_init_count;
|
||||||
|
|
||||||
_ecore_con_log_dom = eina_log_domain_register("EcoreCon", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_con_log_dom = eina_log_domain_register("EcoreCon", ECORE_CON_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_con_log_dom < 0)
|
if(_ecore_con_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain foe Ecore Con.");
|
EINA_LOG_ERR("Impossible to create a log domain foe Ecore Con.");
|
||||||
|
|
|
@ -23,6 +23,12 @@
|
||||||
#define READBUFSIZ 65536
|
#define READBUFSIZ 65536
|
||||||
|
|
||||||
extern int _ecore_con_log_dom ;
|
extern int _ecore_con_log_dom ;
|
||||||
|
|
||||||
|
#ifdef ECORE_CON_DEFAULT_LOG_COLOR
|
||||||
|
#undef ECORE_LOG_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_CON_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1674,7 +1674,7 @@ ecore_config_init(const char *name)
|
||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
Ecore_Config_Prop *list;
|
Ecore_Config_Prop *list;
|
||||||
_ecore_config_log_dom = eina_log_domain_register("EcoreConfig", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_config_log_dom = eina_log_domain_register("EcoreConfig", ECORE_CONFIG_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_config_log_dom < 0)
|
if(_ecore_config_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore config module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore config module.");
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef _ECORE_CONFIG_PRIVATE_H
|
#ifndef _ECORE_CONFIG_PRIVATE_H
|
||||||
# define _ECORE_CONFIG_PRIVATE_H
|
# define _ECORE_CONFIG_PRIVATE_H
|
||||||
|
#ifdef ECORE_CONFIG_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_CONFIG_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_CONFIG_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
/* eina_log related things */
|
/* eina_log related things */
|
||||||
|
|
||||||
extern int _ecore_config_log_dom;
|
extern int _ecore_config_log_dom;
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* -
|
* -
|
||||||
* */
|
* */
|
||||||
int _ecore_directfb_log_dom = -1;
|
int _ecore_directfb_log_dom = -1;
|
||||||
|
|
||||||
|
|
||||||
static int _ecore_directfb_init_count = 0;
|
static int _ecore_directfb_init_count = 0;
|
||||||
|
|
||||||
static int _window_event_fd = 0;
|
static int _window_event_fd = 0;
|
||||||
|
@ -659,7 +661,7 @@ ecore_directfb_init(const char *name __UNUSED__)
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if (++_ecore_directfb_init_count != 1) return _ecore_directfb_init_count;
|
if (++_ecore_directfb_init_count != 1) return _ecore_directfb_init_count;
|
||||||
_ecore_directfb_log_dom = eina_log_domain_register("EcoreDirectFB", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_directfb_log_dom = eina_log_domain_register("EcoreDirectFB", ECORE_DIRECTFB_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_directfb_log_dom < 0)
|
if(_ecore_directfb_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore directFB module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore directFB module.");
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
|
#ifndef _ECORE_DIRECTFB_PRIVATE_H
|
||||||
|
#define _ECORE_DIRECTFB_PRIVATE_H
|
||||||
/* eina_log related things */
|
/* eina_log related things */
|
||||||
|
|
||||||
extern int _ecore_directfb_log_dom;
|
extern int _ecore_directfb_log_dom;
|
||||||
|
|
||||||
|
#ifdef ECORE_DIRECTFB_DEFAULT_LOG_COLOR
|
||||||
|
#undef ECORE_DIRECTFB_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_DIRECTFB_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
@ -42,3 +49,4 @@ struct keymap
|
||||||
char *name;
|
char *name;
|
||||||
char *string;
|
char *string;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
|
@ -165,7 +165,7 @@ ecore_evas_init(void)
|
||||||
if (!ecore_init())
|
if (!ecore_init())
|
||||||
goto shutdown_evas;
|
goto shutdown_evas;
|
||||||
|
|
||||||
_ecore_evas_log_dom = eina_log_domain_register("Ecore_Evas", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_evas_log_dom = eina_log_domain_register("Ecore_Evas", ECORE_EVAS_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_evas_log_dom < 0)
|
if(_ecore_evas_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for Ecore_Evas.");
|
EINA_LOG_ERR("Impossible to create a log domain for Ecore_Evas.");
|
||||||
|
|
|
@ -101,6 +101,11 @@
|
||||||
|
|
||||||
extern int _ecore_evas_log_dom;
|
extern int _ecore_evas_log_dom;
|
||||||
|
|
||||||
|
#ifdef ECORE_EVAS_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_EVAS_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_EVAS_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -41,7 +41,7 @@ ecore_file_init()
|
||||||
{
|
{
|
||||||
if (++_ecore_file_init_count != 1)
|
if (++_ecore_file_init_count != 1)
|
||||||
return _ecore_file_init_count;
|
return _ecore_file_init_count;
|
||||||
_ecore_file_log_dom = eina_log_domain_register("EcoreFile", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_file_log_dom = eina_log_domain_register("EcoreFile", ECORE_FILE_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_file_log_dom < 0)
|
if(_ecore_file_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the ecore file module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the ecore file module.");
|
||||||
|
|
|
@ -19,6 +19,12 @@
|
||||||
#include "Ecore_File.h"
|
#include "Ecore_File.h"
|
||||||
|
|
||||||
extern int _ecore_file_log_dom;
|
extern int _ecore_file_log_dom;
|
||||||
|
|
||||||
|
#ifdef ECORE_FILE_DEFAULT_LOG_COLOR
|
||||||
|
#undef ECORE_FILE_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_FILE_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -42,7 +42,7 @@ ecore_imf_init(void)
|
||||||
|
|
||||||
if (!ecore_init())
|
if (!ecore_init())
|
||||||
return --_ecore_imf_init_count;
|
return --_ecore_imf_init_count;
|
||||||
_ecore_imf_log_dom = eina_log_domain_register("EcoreIMF", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_imf_log_dom = eina_log_domain_register("EcoreIMF", ECORE_IMF_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_imf_log_dom < 0)
|
if(_ecore_imf_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore IMF module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore IMF module.");
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
|
|
||||||
#define ECORE_MAGIC_CONTEXT 0x56c1b39a
|
#define ECORE_MAGIC_CONTEXT 0x56c1b39a
|
||||||
|
|
||||||
|
#ifdef ECORE_IMF_DEFAULT_LOG_COLOR
|
||||||
|
#undef ECORE_IMF_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_IMF_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
extern int _ecore_imf_log_dom;
|
extern int _ecore_imf_log_dom;
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
|
|
|
@ -10,37 +10,14 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "Ecore.h"
|
#include "Ecore.h"
|
||||||
|
#include "ecore_input_private.h"
|
||||||
#include "ecore_private.h"
|
#include "ecore_private.h"
|
||||||
#include "Ecore_Input.h"
|
#include "Ecore_Input.h"
|
||||||
#include "Evas.h"
|
#include "Evas.h"
|
||||||
|
|
||||||
|
|
||||||
static int _ecore_input_log_dom = -1;
|
int _ecore_input_log_dom = -1;
|
||||||
|
|
||||||
#ifdef ERR
|
|
||||||
# undef ERR
|
|
||||||
#endif
|
|
||||||
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_input_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef DBG
|
|
||||||
# undef DBG
|
|
||||||
#endif
|
|
||||||
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_input_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef INF
|
|
||||||
# undef INF
|
|
||||||
#endif
|
|
||||||
#define INF(...) EINA_LOG_DOM_INFO(_ecore_input_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef WRN
|
|
||||||
# undef WRN
|
|
||||||
#endif
|
|
||||||
#define WRN(...) EINA_LOG_DOM_WARN(_ecore_input_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef CRIT
|
|
||||||
# undef CRIT
|
|
||||||
#endif
|
|
||||||
#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_input_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
typedef struct _Ecore_Input_Window Ecore_Input_Window;
|
typedef struct _Ecore_Input_Window Ecore_Input_Window;
|
||||||
struct _Ecore_Input_Window
|
struct _Ecore_Input_Window
|
||||||
|
@ -71,12 +48,14 @@ ecore_event_init(void)
|
||||||
{
|
{
|
||||||
if (++_ecore_event_init_count != 1)
|
if (++_ecore_event_init_count != 1)
|
||||||
return _ecore_event_init_count;
|
return _ecore_event_init_count;
|
||||||
_ecore_input_log_dom = eina_log_domain_register("EcoreInput", ECORE_DEFAULT_LOG_COLOR);
|
|
||||||
|
_ecore_input_log_dom = eina_log_domain_register("EcoreInput", ECORE_INPUT_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_input_log_dom < 0)
|
if(_ecore_input_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the ecore input module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the ecore input module.");
|
||||||
return --_ecore_event_init_count;
|
return --_ecore_event_init_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
ECORE_EVENT_KEY_DOWN = ecore_event_type_new();
|
ECORE_EVENT_KEY_DOWN = ecore_event_type_new();
|
||||||
ECORE_EVENT_KEY_UP = ecore_event_type_new();
|
ECORE_EVENT_KEY_UP = ecore_event_type_new();
|
||||||
ECORE_EVENT_MOUSE_BUTTON_DOWN = ecore_event_type_new();
|
ECORE_EVENT_MOUSE_BUTTON_DOWN = ecore_event_type_new();
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
#ifndef _ECORE_INPUT_PRIVATE_H
|
||||||
|
#define _ECORE_INPUT_PRIVATE_H
|
||||||
|
|
||||||
|
extern int _ecore_input_log_dom;
|
||||||
|
|
||||||
|
#ifdef ECORE_INPUT_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_INPUT_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define ECORE_INPUT_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
|
#ifdef ERR
|
||||||
|
# undef ERR
|
||||||
|
#endif
|
||||||
|
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_input_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef DBG
|
||||||
|
# undef DBG
|
||||||
|
#endif
|
||||||
|
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_input_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef INF
|
||||||
|
# undef INF
|
||||||
|
#endif
|
||||||
|
#define INF(...) EINA_LOG_DOM_INFO(_ecore_input_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef WRN
|
||||||
|
# undef WRN
|
||||||
|
#endif
|
||||||
|
#define WRN(...) EINA_LOG_DOM_WARN(_ecore_input_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef CRIT
|
||||||
|
# undef CRIT
|
||||||
|
#endif
|
||||||
|
#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_input_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#endif
|
|
@ -267,7 +267,7 @@ ecore_ipc_init(void)
|
||||||
|
|
||||||
if (++_ecore_ipc_init_count != 1)
|
if (++_ecore_ipc_init_count != 1)
|
||||||
return _ecore_ipc_init_count;
|
return _ecore_ipc_init_count;
|
||||||
_ecore_ipc_log_dom = eina_log_domain_register("EcoreIpc", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_ipc_log_dom = eina_log_domain_register("EcoreIpc", ECORE_IPC_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_ipc_log_dom < 0)
|
if(_ecore_ipc_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore IPC module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore IPC module.");
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
|
|
||||||
|
|
||||||
extern int _ecore_ipc_log_dom;
|
extern int _ecore_ipc_log_dom;
|
||||||
|
|
||||||
|
#ifdef ECORE_IPC_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_IPC_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_IPC_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,7 +26,7 @@ ecore_job_init(void)
|
||||||
{
|
{
|
||||||
if (++_ecore_job_init_count != 1)
|
if (++_ecore_job_init_count != 1)
|
||||||
return _ecore_job_init_count;
|
return _ecore_job_init_count;
|
||||||
_ecore_job_log_dom = eina_log_domain_register("EcoreJob", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_job_log_dom = eina_log_domain_register("EcoreJob", ECORE_JOB_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_job_log_dom < 0)
|
if(_ecore_job_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore Job module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore Job module.");
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
#define ECORE_MAGIC_JOB 0x76543210
|
#define ECORE_MAGIC_JOB 0x76543210
|
||||||
|
|
||||||
extern int _ecore_job_log_dom;
|
extern int _ecore_job_log_dom;
|
||||||
|
#ifdef ECORE_JOB_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_JOB_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_JOB_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -12,37 +12,13 @@
|
||||||
#include "Ecore_Sdl.h"
|
#include "Ecore_Sdl.h"
|
||||||
#include "Ecore_Input.h"
|
#include "Ecore_Input.h"
|
||||||
#include "Ecore.h"
|
#include "Ecore.h"
|
||||||
|
#include "ecore_sdl_private.h"
|
||||||
#include "ecore_private.h"
|
#include "ecore_private.h"
|
||||||
#include "Ecore_Sdl_Keys.h"
|
#include "Ecore_Sdl_Keys.h"
|
||||||
|
|
||||||
#include <eina_rbtree.h>
|
#include <eina_rbtree.h>
|
||||||
|
|
||||||
static int _ecore_sdl_log_dom = -1;
|
int _ecore_sdl_log_dom = -1;
|
||||||
|
|
||||||
#ifdef ERR
|
|
||||||
# undef ERR
|
|
||||||
#endif
|
|
||||||
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_sdl_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef DBG
|
|
||||||
# undef DBG
|
|
||||||
#endif
|
|
||||||
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_sdl_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef INF
|
|
||||||
# undef INF
|
|
||||||
#endif
|
|
||||||
#define INF(...) EINA_LOG_DOM_INFO(_ecore_sdl_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef WRN
|
|
||||||
# undef WRN
|
|
||||||
#endif
|
|
||||||
#define WRN(...) EINA_LOG_DOM_WARN(_ecore_sdl_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
#ifdef CRIT
|
|
||||||
# undef CRIT
|
|
||||||
#endif
|
|
||||||
#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_sdl_log_dom, __VA_ARGS__)
|
|
||||||
|
|
||||||
typedef struct _Ecore_SDL_Pressed Ecore_SDL_Pressed;
|
typedef struct _Ecore_SDL_Pressed Ecore_SDL_Pressed;
|
||||||
struct _Ecore_SDL_Pressed
|
struct _Ecore_SDL_Pressed
|
||||||
|
@ -95,7 +71,7 @@ ecore_sdl_init(const char *name __UNUSED__)
|
||||||
{
|
{
|
||||||
if(++_ecore_sdl_init_count != 1)
|
if(++_ecore_sdl_init_count != 1)
|
||||||
return _ecore_sdl_init_count;
|
return _ecore_sdl_init_count;
|
||||||
_ecore_sdl_log_dom = eina_log_domain_register("EcoreSdl", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_sdl_log_dom = eina_log_domain_register("EcoreSdl", ECORE_SDL_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_sdl_log_dom < 0)
|
if(_ecore_sdl_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore SDL module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore SDL module.");
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
#ifndef _ECORE_SDL_PRIVATE_H
|
||||||
|
# define _ECORE_SDL_PRIVATE_H
|
||||||
|
|
||||||
|
extern int _ecore_sdl_log_dom
|
||||||
|
#ifdef EINA_SDL_DEFAULT_LOG_COLOR
|
||||||
|
# undef EINA_SDL_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define EINA_SDL_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
|
#ifdef ERR
|
||||||
|
# undef ERR
|
||||||
|
#endif
|
||||||
|
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_sdl_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef DBG
|
||||||
|
# undef DBG
|
||||||
|
#endif
|
||||||
|
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_sdl_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef INF
|
||||||
|
# undef INF
|
||||||
|
#endif
|
||||||
|
#define INF(...) EINA_LOG_DOM_INFO(_ecore_sdl_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef WRN
|
||||||
|
# undef WRN
|
||||||
|
#endif
|
||||||
|
#define WRN(...) EINA_LOG_DOM_WARN(_ecore_sdl_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef CRIT
|
||||||
|
# undef CRIT
|
||||||
|
#endif
|
||||||
|
#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_sdl_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
#endif
|
|
@ -3,6 +3,11 @@
|
||||||
|
|
||||||
extern int _ecore_txt_log_dom;
|
extern int _ecore_txt_log_dom;
|
||||||
|
|
||||||
|
#ifdef ECORE_TXT_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_TXT_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_TXT_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -89,7 +89,7 @@ ecore_win32_init()
|
||||||
return --_ecore_win32_init_count;
|
return --_ecore_win32_init_count;
|
||||||
|
|
||||||
eina_log_print_cb_set(_ecore_win32_error_print_cb, NULL);
|
eina_log_print_cb_set(_ecore_win32_error_print_cb, NULL);
|
||||||
_ecore_win32_log_dom_global = eina_log_domain_register("ecore_win32", EINA_COLOR_LIGHTBLUE);
|
_ecore_win32_log_dom_global = eina_log_domain_register("ecore_win32", ECORE_WIN32_DEFAULT_LOG_COLOR);
|
||||||
if (_ecore_win32_log_dom_global < 0)
|
if (_ecore_win32_log_dom_global < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Ecore_Win32: Could not register log domain");
|
EINA_LOG_ERR("Ecore_Win32: Could not register log domain");
|
||||||
|
|
|
@ -14,8 +14,23 @@ extern "C" {
|
||||||
/* logging messages macros */
|
/* logging messages macros */
|
||||||
extern int _ecore_win32_log_dom_global;
|
extern int _ecore_win32_log_dom_global;
|
||||||
|
|
||||||
|
#ifdef ECORE_WIN32_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_WIN32_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_WIN32_DEFAULT_LOG_COLOR EINA_COLOR_LIGHTBLUE
|
||||||
|
|
||||||
|
#ifdef ERR
|
||||||
|
# undef ERR
|
||||||
|
#endif
|
||||||
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_win32_log_dom_global , __VA_ARGS__)
|
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_win32_log_dom_global , __VA_ARGS__)
|
||||||
|
#ifdef DBG
|
||||||
|
#undef DBG
|
||||||
|
#endif
|
||||||
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_win32_log_dom_global , __VA_ARGS__)
|
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_win32_log_dom_global , __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifdef INF
|
||||||
|
#undef INF
|
||||||
|
#endif
|
||||||
#define INF(...) EINA_LOG_DOM_INFO(_ecore_win32_log_dom_global , __VA_ARGS__)
|
#define INF(...) EINA_LOG_DOM_INFO(_ecore_win32_log_dom_global , __VA_ARGS__)
|
||||||
|
|
||||||
#define ECORE_WIN32_WINDOW_CLASS "Ecore_Win32_Window_Class"
|
#define ECORE_WIN32_WINDOW_CLASS "Ecore_Win32_Window_Class"
|
||||||
|
|
|
@ -74,7 +74,7 @@ ecore_wince_init()
|
||||||
return --_ecore_wince_init_count;
|
return --_ecore_wince_init_count;
|
||||||
|
|
||||||
eina_log_print_cb_set(_ecore_wince_error_print_cb, NULL);
|
eina_log_print_cb_set(_ecore_wince_error_print_cb, NULL);
|
||||||
_ecore_wince_log_dom_global = eina_log_domain_register("ecore_wince", EINA_COLOR_LIGHTBLUE);
|
_ecore_wince_log_dom_global = eina_log_domain_register("ecore_wince", ECORE_WINCE_DEFAULT_LOG_COLOR);
|
||||||
if (_ecore_wince_log_dom_global < 0)
|
if (_ecore_wince_log_dom_global < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Ecore_WinCE: Could not register log domain");
|
EINA_LOG_ERR("Ecore_WinCE: Could not register log domain");
|
||||||
|
|
|
@ -9,8 +9,22 @@
|
||||||
/* logging messages macros */
|
/* logging messages macros */
|
||||||
extern int _ecore_wince_log_dom_global;
|
extern int _ecore_wince_log_dom_global;
|
||||||
|
|
||||||
|
#ifdef ECORE_WINCE_DEFAULT_LOG_COLOR
|
||||||
|
#undef ECORE_WINCE_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_WINCE_DEFAULT_LOG_COLOR EINA_COLOR_LIGHTBLUE
|
||||||
|
|
||||||
|
#ifdef ERR
|
||||||
|
# undef ERR
|
||||||
|
#endif
|
||||||
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom_global , __VA_ARGS__)
|
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_wince_log_dom_global , __VA_ARGS__)
|
||||||
|
#ifdef DBG
|
||||||
|
# undef DBG
|
||||||
|
#endif
|
||||||
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom_global , __VA_ARGS__)
|
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_wince_log_dom_global , __VA_ARGS__)
|
||||||
|
#ifdef INF
|
||||||
|
# undef INF
|
||||||
|
#endif
|
||||||
#define INF(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom_global , __VA_ARGS__)
|
#define INF(...) EINA_LOG_DOM_INFO(_ecore_wince_log_dom_global , __VA_ARGS__)
|
||||||
|
|
||||||
#define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
|
#define ECORE_WINCE_WINDOW_CLASS L"Ecore_WinCE_Window_Class"
|
||||||
|
|
|
@ -196,7 +196,7 @@ ecore_x_init(const char *name)
|
||||||
|
|
||||||
if (--_ecore_xcb_init_count != 1)
|
if (--_ecore_xcb_init_count != 1)
|
||||||
return _ecore_xcb_init_count;
|
return _ecore_xcb_init_count;
|
||||||
_ecore_x11xcb_log_dom = eina_log_domain_register("EcoreXCB", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_x11xcb_log_dom = eina_log_domain_register("EcoreXCB", ECORE_XLIB_XCB_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_x11xcb_log_dom < 0)
|
if(_ecore_x11xcb_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain the Ecore XCB module.");
|
EINA_LOG_ERR("Impossible to create a log domain the Ecore XCB module.");
|
||||||
|
|
|
@ -61,7 +61,12 @@
|
||||||
/* FIXME: this is for simulation only */
|
/* FIXME: this is for simulation only */
|
||||||
#include "Ecore_Txt.h"
|
#include "Ecore_Txt.h"
|
||||||
|
|
||||||
static int _ecore_x11xcb_log_dom -1;
|
extern int _ecore_x11xcb_log_dom ;
|
||||||
|
|
||||||
|
#ifdef ECORE_XLIB_XCB_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_XLIB_XCB_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_XLIB_XCB_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
|
|
|
@ -170,7 +170,7 @@ ecore_x_init(const char *name)
|
||||||
|
|
||||||
if (++_ecore_x_init_count != 1)
|
if (++_ecore_x_init_count != 1)
|
||||||
return _ecore_x_init_count;
|
return _ecore_x_init_count;
|
||||||
_ecore_xlib_log_dom = eina_log_domain_register("EcoreX11", ECORE_DEFAULT_LOG_COLOR);
|
_ecore_xlib_log_dom = eina_log_domain_register("EcoreX11", ECORE_XLIB_DEFAULT_LOG_COLOR);
|
||||||
if(_ecore_xlib_log_dom < 0)
|
if(_ecore_xlib_log_dom < 0)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore Xlib module.");
|
EINA_LOG_ERR("Impossible to create a log domain for the Ecore Xlib module.");
|
||||||
|
|
|
@ -59,6 +59,10 @@
|
||||||
#include "Ecore_Txt.h"
|
#include "Ecore_Txt.h"
|
||||||
|
|
||||||
extern int _ecore_xlib_log_dom;
|
extern int _ecore_xlib_log_dom;
|
||||||
|
#ifdef ECORE_XLIB_DEFAULT_LOG_COLOR
|
||||||
|
# undef ECORE_XLIB_DEFAULT_LOG_COLOR
|
||||||
|
#endif
|
||||||
|
#define ECORE_XLIB_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
||||||
|
|
||||||
#ifdef ERR
|
#ifdef ERR
|
||||||
# undef ERR
|
# undef ERR
|
||||||
|
|
Loading…
Reference in New Issue