summaryrefslogtreecommitdiff
path: root/src/lib/elput/Elput.h
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-03-24 11:19:31 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-13 14:16:17 -0400
commitf8964fcf2e4681ab77e0cf37c96e9994d25b19fd (patch)
tree4a70ed38cc391e045f5e333ee94fdddf7f4cc851 /src/lib/elput/Elput.h
parentc23a61a49caebca1244fad484cae403bf7a0a0fd (diff)
elput: Initial checkin of elput library
The elput library is an efl abstraction for the libinput library which can be used by various other subsystems (ecore_fb, ecore_drm, etc) to handle interfacing with libinput without having to duplicate the code in each subsystem. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/Elput.h')
-rw-r--r--src/lib/elput/Elput.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
new file mode 100644
index 0000000000..7c88e4bed6
--- /dev/null
+++ b/src/lib/elput/Elput.h
@@ -0,0 +1,74 @@
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 */
56EAPI 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 */
67EAPI int elput_shutdown(void);
68
69# endif
70
71# undef EAPI
72# define EAPI
73
74#endif