summaryrefslogtreecommitdiff
path: root/src/lib/elput/Elput.h
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-03-31 12:34:32 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-13 14:16:17 -0400
commited3a1f39587187c8acf305fd793f92218995c486 (patch)
treeaf2655dafed5e019d6e5085a50e9f1fbc51532aa /src/lib/elput/Elput.h
parent08482e1ca4feaff2c631a125b58fda7e57084b97 (diff)
elput: Add input manager interface and APIs to connect & disconnect
This commit adds the start of the Elput Manager & Interface code. This will be used as an inteface to various backend methods of session & device control (ie: systemd, direct interface, etc). This will provide various abstractions for working with libinput when opening/closing input devices. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/Elput.h')
-rw-r--r--src/lib/elput/Elput.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index 7c88e4bed6..e098b138e8 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -25,6 +25,9 @@
25 25
26# ifdef EFL_BETA_API_SUPPORT 26# ifdef EFL_BETA_API_SUPPORT
27 27
28/* opaque structure to represent an input manager */
29typedef struct _Elput_Manager Elput_Manager;
30
28/** 31/**
29 * @file 32 * @file
30 * @brief Ecore functions for dealing with libinput 33 * @brief Ecore functions for dealing with libinput
@@ -35,6 +38,7 @@
35 * Elput provides a wrapper and functions for using libinput 38 * Elput provides a wrapper and functions for using libinput
36 * 39 *
37 * @li @ref Elput_Init_Group 40 * @li @ref Elput_Init_Group
41 * @li @ref Elput_Manager_Group
38 * 42 *
39 */ 43 */
40 44
@@ -66,6 +70,38 @@ EAPI int elput_init(void);
66 */ 70 */
67EAPI int elput_shutdown(void); 71EAPI int elput_shutdown(void);
68 72
73/**
74 * @defgroup Elput_Manager_Group
75 *
76 * Functions that deal with connecting, disconnecting, opening, closing
77 * of input devices.
78 *
79 */
80
81/**
82 * Create an input manager on the specified seat
83 *
84 * @param seat
85 * @param tty
86 * @param sync
87 *
88 * @return A Elput_Manager on success, NULL on failure
89 *
90 * @ingroup Elput_Manager_Group
91 * @since 1.18
92 */
93EAPI Elput_Manager *elput_manager_connect(const char *seat, unsigned int tty, Eina_Bool sync);
94
95/**
96 * Disconnect an input manager
97 *
98 * @param manager
99 *
100 * @ingroup Elput_Manager_Group
101 * @since 1.18
102 */
103EAPI void elput_manager_disconnect(Elput_Manager *manager);
104
69# endif 105# endif
70 106
71# undef EAPI 107# undef EAPI