* @exception #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
* @exception #EFL_UTIL_ERROR_OUT_OF_MEMORY Memory allocation failure
* @exception #EFL_UTIL_ERROR_SCREENSHOT_INIT_FAIL Initialization failure
+ * @exception #EFL_UTIL_ERROR_PERMISSION_DENIED No permission for screenshot
* @see efl_util_screenshot_deinitialize()
*/
API efl_util_screenshot_h efl_util_screenshot_initialize(int width, int height);
* @exception #EFL_UTIL_ERROR_NONE Successful
* @exception #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
* @exception #EFL_UTIL_ERROR_SCREENSHOT_EXECUTION_FAIL Execution failure
+ * @exception #EFL_UTIL_ERROR_PERMISSION_DENIED No permission for screenshot
* @see efl_util_screenshot_initialize()
* @see efl_util_screenshot_deinitialize()
*/
* @return @c 0 on success, otherwise a negative error value
* @retval #EFL_UTIL_ERROR_NONE Successful
* @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EFL_UTIL_ERROR_PERMISSION_DENIED No permission for screenshot
* @see efl_util_screenshot_initialize()
*/
API int efl_util_screenshot_deinitialize(efl_util_screenshot_h screenshot);
* @return @c 0 on success, otherwise a negative error value
* @retval #EFL_UTIL_ERROR_NONE Successful
* @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EFL_UTIL_ERROR_PERMISSION_DENIED No permission for screenshot
* @see efl_util_screenshot_get_auto_rotation()
*/
API int efl_util_screenshot_set_auto_rotation(efl_util_screenshot_h screenshot, int set);
* @return @c 0 on success, otherwise a negative error value
* @retval #EFL_UTIL_ERROR_NONE Successful
* @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EFL_UTIL_ERROR_PERMISSION_DENIED No permission for screenshot
* @see efl_util_screenshot_set_auto_rotation()
*/
API int efl_util_screenshot_get_auto_rotation(efl_util_screenshot_h screenshot, int *set);
_screenshot_mutex_unlock();
efl_util_screenshot_deinitialize(screenshot);
}
- set_last_result(EFL_UTIL_ERROR_SCREENSHOT_INIT_FAIL);
+ if (_eflutil.wl.shot.noti == 0)
+ set_last_result(EFL_UTIL_ERROR_PERMISSION_DENIED);
+ else
+ set_last_result(EFL_UTIL_ERROR_SCREENSHOT_INIT_FAIL);
return NULL;
/* LCOV_EXCL_STOP */
}