forked from enlightenment/efl
eina: use a global variable to hold the same string accross other library.
This commit is contained in:
parent
332e215b41
commit
ad406d7353
|
@ -101,6 +101,9 @@ struct _Eina_Log_Timing
|
||||||
Eina_Log_State state;
|
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,
|
* 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.
|
* updates the domain levels on the first log and clears itself.
|
||||||
|
|
|
@ -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,
|
EAPI void eina_log_console_color_set(FILE *fp,
|
||||||
const char *color) EINA_ARG_NONNULL(1, 2);
|
const char *color) EINA_ARG_NONNULL(1, 2);
|
||||||
|
|
||||||
#define EINA_LOG_STATE_INIT "init"
|
extern EAPI const char *_eina_log_state_init;
|
||||||
#define EINA_LOG_STATE_SHUTDOWN "shutdown"
|
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.
|
* @brief Start or stop the timing of a phase.
|
||||||
|
|
Loading…
Reference in New Issue