elput: Initial checkin of elput library
[platform/upstream/efl.git] / src / lib / elput / Elput.h
1 #ifndef _ELPUT_H
2 # define _ELPUT_H
3
4 # ifdef EAPI
5 #  undef EAPI
6 # endif
7
8 # ifdef _MSC_VER
9 #  ifdef BUILDING_DLL
10 #   define EAPI __declspec(dllexport)
11 #  else // ifdef BUILDING_DLL
12 #   define EAPI __declspec(dllimport)
13 #  endif // ifdef BUILDING_DLL
14 # else // ifdef _MSC_VER
15 #  ifdef __GNUC__
16 #   if __GNUC__ >= 4
17 #    define EAPI __attribute__ ((visibility("default")))
18 #   else // if __GNUC__ >= 4
19 #    define EAPI
20 #   endif // if __GNUC__ >= 4
21 #  else // ifdef __GNUC__
22 #   define EAPI
23 #  endif // ifdef __GNUC__
24 # endif // ifdef _MSC_VER
25
26 # ifdef EFL_BETA_API_SUPPORT
27
28 /**
29  * @file
30  * @brief Ecore functions for dealing with libinput
31  *
32  * @defgroup Elput_Group Elput - libinput integration
33  * @ingrup Ecore
34  *
35  * Elput provides a wrapper and functions for using libinput
36  *
37  * @li @ref Elput_Init_Group
38  *
39  */
40
41 /**
42  * @defgroup Elput_Init_Group Library Init and Shutdown functions
43  *
44  * Functions that start and shutdown the Elput library
45  */
46
47 /**
48  * Initialize the Elput library
49  *
50  * @return The number of times the library has been initialized without being
51  *         shutdown. 0 is returned if an error occurs.
52  *
53  * @ingroup Elput_Init_Group
54  * @since 1.18
55  */
56 EAPI int elput_init(void);
57
58 /**
59  * Shutdown the Elput library
60  *
61  * @return The number of times the library has been initialized without being
62  *         shutdown. 0 is returned if an error occurs.
63  *
64  * @ingroup Elput_Init_Group
65  * @since 1.18
66  */
67 EAPI int elput_shutdown(void);
68
69 # endif
70
71 # undef EAPI
72 # define EAPI
73
74 #endif