efl_util: change version of tizen_policy from 1 to 7.
[platform/core/api/efl-util.git] / include / efl_util_screenshot_extension.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __TIZEN_UI_EFL_UTIL_SCREENSHOT_EXTENSION_H__
18 #define __TIZEN_UI_EFL_UTIL_SCREENSHOT_EXTENSION_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #ifdef __GNUC__
25 # if __GNUC__ >= 4
26 #  ifndef API
27 #   define API __attribute__ ((visibility("default")))
28 #  endif
29 # endif
30 #endif
31
32 /**
33  * @file efl_util_screenshot_extension.h
34  */
35
36 /**
37  * @addtogroup CAPI_EFL_UTIL_MODULE
38  * @{
39  */
40
41 /**
42  * @platform
43  * @brief Set auto rotation value for screenshot.
44  * @since_tizen $TZ_CFG_VER_40$
45  * @privlevel platform
46  * @privilege %http://tizen.org/privilege/screenshot
47  * @param[in]  screenshot  efl_util_screenshot_h handle
48  * @param[in]  set  auto rotation value (1:use auto rotation, 0:don't use auto rotation)
49  * @return @c 0 on success, otherwise a negative error value
50  * @retval #EFL_UTIL_ERROR_NONE Successful
51  * @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
52  * @see efl_util_screenshot_get_auto_rotation()
53  */
54 API int efl_util_screenshot_set_auto_rotation(efl_util_screenshot_h screenshot, int set);
55
56 /**
57  * @platform
58  * @brief Get current auto rotation value of screenshot.
59  * @since_tizen $TZ_CFG_VER_40$
60  * @privlevel platform
61  * @privilege %http://tizen.org/privilege/screenshot
62  * @param[in]  screenshot  efl_util_screenshot_h handle
63  * @param[out]  set  The current auto rotation value of screenshot
64  * @return @c 0 on success, otherwise a negative error value
65  * @retval #EFL_UTIL_ERROR_NONE Successful
66  * @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
67  * @see efl_util_screenshot_set_auto_rotation()
68  */
69 API int efl_util_screenshot_get_auto_rotation(efl_util_screenshot_h screenshot, int *set);
70
71 /**
72  * @}
73  */
74
75 #ifdef __cplusplus
76 }
77 #endif
78 #endif /* __TIZEN_UI_EFL_UTIL_SCREENSHOT_EXTENSION_H__ */