Tizen 2.1 base
[framework/uifw/ecore.git] / src / lib / ecore_txt / Ecore_Txt.h
1 /*
2  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3  */
4
5 #ifndef _ECORE_TXT_H
6 #define _ECORE_TXT_H
7
8 #ifdef EAPI
9 # undef EAPI
10 #endif
11
12 #ifdef _WIN32
13 # ifdef EFL_ECORE_TXT_BUILD
14 #  ifdef DLL_EXPORT
15 #   define EAPI __declspec(dllexport)
16 #  else
17 #   define EAPI
18 #  endif /* ! DLL_EXPORT */
19 # else
20 #  define EAPI __declspec(dllimport)
21 # endif /* ! EFL_ECORE_TXT_BUILD */
22 #else
23 # ifdef __GNUC__
24 #  if __GNUC__ >= 4
25 #   define EAPI __attribute__ ((visibility("default")))
26 #  else
27 #   define EAPI
28 #  endif
29 # else
30 #  define EAPI
31 # endif
32 #endif /* ! _WIN32 */
33
34 /**
35  * @file Ecore_Txt.h
36  * @brief Provides a text encoding conversion function.
37  */
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 EAPI char *ecore_txt_convert(const char *enc_from, const char *enc_to, const char *text);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif