summaryrefslogtreecommitdiff
path: root/src/lib/elput/Elput.h
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-01 09:12:36 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-13 14:16:17 -0400
commit1ce6cd438244d644a63e6d1ab1dde88633bba34e (patch)
tree699b444d7f4e88a102964fe88ec48922ff08aa11 /src/lib/elput/Elput.h
parented3a1f39587187c8acf305fd793f92218995c486 (diff)
elput: Add API functions to open and close an input device
This adds new API functions which can be called to open or close an input device and take control (or release control) of said device Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/Elput.h')
-rw-r--r--src/lib/elput/Elput.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index e098b138e8..44a861ce29 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -102,6 +102,31 @@ EAPI Elput_Manager *elput_manager_connect(const char *seat, unsigned int tty, Ei
102 */ 102 */
103EAPI void elput_manager_disconnect(Elput_Manager *manager); 103EAPI void elput_manager_disconnect(Elput_Manager *manager);
104 104
105/**
106 * Request input manager to open a file
107 *
108 * @param manager
109 * @param path
110 * @param flags
111 *
112 * @return Filedescriptor of opened file or -1 on failure
113 *
114 * @ingroup Elput_Manager_Group
115 * @since 1.18
116 */
117EAPI int elput_manager_open(Elput_Manager *manager, const char *path, int flags);
118
119/**
120 * Request input manager to close a file
121 *
122 * @param manager
123 * @param fd
124 *
125 * @ingroup Elput_Manager_Group
126 * @since 1.18
127 */
128EAPI void elput_manager_close(Elput_Manager *manager, int fd);
129
105# endif 130# endif
106 131
107# undef EAPI 132# undef EAPI