summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJengHyun Kang <jhyuni.kang@samsung.com>2018-07-16 17:09:00 +0900
committerJengHyun Kang <jhyuni.kang@samsung.com>2018-07-19 12:10:34 +0900
commit788720dde31116cf4bf55f38aa9cd3521c18a264 (patch)
treeb4818591137d8ae3329d727b6b08c66fb6d5d7f2 /include
parent6c137dec33a17b3843ece9b47c4982599f22d776 (diff)
downloadefl-util-788720dde31116cf4bf55f38aa9cd3521c18a264.tar.gz
efl-util-788720dde31116cf4bf55f38aa9cd3521c18a264.tar.bz2
efl-util-788720dde31116cf4bf55f38aa9cd3521c18a264.zip
input_generator: add a new initialize API work synchronouslysubmit/tizen/20180726.064359accepted/tizen/unified/20180727.063708
Change-Id: I96636390549cbd3dce008b97b2e8f3f8082f6e3c
Diffstat (limited to 'include')
-rw-r--r--include/efl_util.h.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/efl_util.h.in b/include/efl_util.h.in
index e8c82d9..6b72fb7 100644
--- a/include/efl_util.h.in
+++ b/include/efl_util.h.in
@@ -303,6 +303,31 @@ API efl_util_inputgen_h efl_util_input_initialize_generator_with_name(unsigned i
/**
* @platform
+ * @brief Initializes the system, checks if input generated functions are supported and then open events generator devices synchronously.
+ * @since_tizen 5.0
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/inputgenerator
+ * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
+ * @remarks @a dev_type is changed into the unsigned int to perform bitwise operations.
+ * @remarks If the @a name is NULL, it will be set to "Input Generator"
+ * @remarks The returned object should be released with efl_util_input_deinitialize_generator().
+ * @param[in] dev_type The device type to generate events, values of #efl_util_input_device_type_e combined with bitwise 'or'\n
+ * Example: #EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN | #EFL_UTIL_INPUT_DEVTYPE_KEYBOARD
+ * @param[in] name The device name (maximum 31 characters, can be NULL)
+ * @return #efl_util_inputgen_h on success, otherwise @c NULL
+ * @retval #efl_util_inputgen_h The input generator handle
+ * @exception #EFL_UTIL_ERROR_NONE Successful
+ * @exception #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @exception #EFL_UTIL_ERROR_NO_SUCH_DEVICE No such device or address
+ * @exception #EFL_UTIL_ERROR_INVALID_OPERATION Function not implemented
+ * @exception #EFL_UTIL_ERROR_OUT_OF_MEMORY Memory allocation failure
+ * @exception #EFL_UTIL_ERROR_PERMISSION_DENIED Has no permission to initialize input generator
+ * @see efl_util_input_deinitialize_generator()
+ */
+API efl_util_inputgen_h efl_util_input_initialize_generator_with_sync(unsigned int dev_type, const char *name);
+
+/**
+ * @platform
* @brief Deinitializes system and close opened devices.
* @since_tizen $TZ_CFG_VER_24_OR_30$
* @privlevel platform