forked from enlightenment/efl
eina: add an error for when a feature is not implemented.
This commit is contained in:
parent
dc13197895
commit
3e73c10055
|
@ -97,6 +97,7 @@ static int _eina_log_dom = -1;
|
|||
|
||||
EAPI Eina_Bool _eina_threads_activated = EINA_FALSE;
|
||||
EAPI Eina_Error EINA_ERROR_NOT_MAIN_LOOP = 0;
|
||||
EAPI Eina_Error EINA_ERROR_NOT_IMPLEMENTED = 0;
|
||||
EAPI unsigned int eina_seed = 0;
|
||||
|
||||
#ifdef EFL_HAVE_THREADS
|
||||
|
@ -301,6 +302,7 @@ eina_init(void)
|
|||
eina_cpu_count_internal();
|
||||
|
||||
EINA_ERROR_NOT_MAIN_LOOP = eina_error_msg_static_register("Not in main loop.");
|
||||
EINA_ERROR_NOT_IMPLEMENTED = eina_error_msg_static_register("Functionallity not implemented.");
|
||||
|
||||
eina_log_timing(_eina_log_dom, EINA_LOG_STATE_STOP, EINA_LOG_STATE_INIT);
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <Efl_Config.h>
|
||||
|
||||
#include "eina_types.h"
|
||||
#include "eina_error.h"
|
||||
|
||||
/**
|
||||
* @addtogroup Eina_Main_Group Main
|
||||
|
@ -68,6 +69,8 @@ typedef struct _Eina_Version
|
|||
|
||||
EAPI extern Eina_Version *eina_version;
|
||||
|
||||
EAPI extern Eina_Error EINA_ERROR_NOT_IMPLEMENTED;
|
||||
|
||||
/**
|
||||
* @brief Initializes the Eina library.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue