2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
8 #include "ecore_imf_private.h"
12 EAPI int ECORE_IMF_EVENT_PREEDIT_START = 0;
13 EAPI int ECORE_IMF_EVENT_PREEDIT_END = 0;
14 EAPI int ECORE_IMF_EVENT_PREEDIT_CHANGED = 0;
15 EAPI int ECORE_IMF_EVENT_COMMIT = 0;
16 EAPI int ECORE_IMF_EVENT_DELETE_SURROUNDING = 0;
18 static int init_count = 0;
21 * @defgroup Ecore_IMF_Lib_Group Ecore Input Method Library Functions
23 * Utility functions that set up and shut down the Ecore Input Method
28 * Initialises the Ecore_IMF library.
29 * @return Number of times the library has been initialised without being
31 * @ingroup Ecore_IMF_Lib_Group
36 if (++init_count != 1) return init_count;
39 ecore_imf_module_init();
41 ECORE_IMF_EVENT_PREEDIT_START = ecore_event_type_new();
42 ECORE_IMF_EVENT_PREEDIT_END = ecore_event_type_new();
43 ECORE_IMF_EVENT_PREEDIT_CHANGED = ecore_event_type_new();
44 ECORE_IMF_EVENT_COMMIT = ecore_event_type_new();
45 ECORE_IMF_EVENT_DELETE_SURROUNDING = ecore_event_type_new();
51 * Shuts down the Ecore_IMF library.
52 * @return Number of times the library has been initialised without being
54 * @ingroup Ecore_IMF_Lib_Group
57 ecore_imf_shutdown(void)
59 if (--init_count != 0) return init_count;
62 ecore_imf_module_shutdown();