eina: use a global variable to hold the same string accross other library.

This commit is contained in:
Cedric BAIL 2013-03-29 11:44:48 +09:00
parent 332e215b41
commit ad406d7353
2 changed files with 8 additions and 2 deletions

View File

@ -101,6 +101,9 @@ struct _Eina_Log_Timing
Eina_Log_State state;
};
EAPI const char *_eina_log_state_init = "init";
EAPI const char *_eina_log_state_shutdown = "shutdown";
/*
* List of levels for domains set by the user before the domains are registered,
* updates the domain levels on the first log and clears itself.

View File

@ -941,8 +941,11 @@ EAPI void eina_log_print_cb_journald(const Eina_Log_Domain *d,
EAPI void eina_log_console_color_set(FILE *fp,
const char *color) EINA_ARG_NONNULL(1, 2);
#define EINA_LOG_STATE_INIT "init"
#define EINA_LOG_STATE_SHUTDOWN "shutdown"
extern EAPI const char *_eina_log_state_init;
extern EAPI const char *_eina_log_state_shutdown;
#define EINA_LOG_STATE_INIT _eina_log_state_init
#define EINA_LOG_STATE_SHUTDOWN _eina_log_state_shutdown
/**
* @brief Start or stop the timing of a phase.