SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF("${ARCH}" STREQUAL "arm")
typedef void (*efl_util_notification_window_level_error_cb)(Evas_Object *window, int error_code, void *user_data);
/**
- * @deprecated Deprecated since 3.0.
+ * @deprecated Deprecated since 3.0. Use the return value of efl_util_set_notification_window_level() instead.
* @brief Registers a callback function to be invoked when an error which set the notification level occurs.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks An application can check error by the return value of efl_util_set_notification_window_level since 3.0.
* @see efl_util_unset_notification_window_level_error_cb()
* @see efl_util_notification_window_level_error_cb()
*/
-API int efl_util_set_notification_window_level_error_cb(Evas_Object *window, efl_util_notification_window_level_error_cb callback, void *user_data);
+API int efl_util_set_notification_window_level_error_cb(Evas_Object *window, efl_util_notification_window_level_error_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
- * @deprecated Deprecated since 3.0.
+ * @deprecated Deprecated since 3.0. Use the return value of efl_util_set_notification_window_level() instead.
* @brief Unregisters the callback function.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks An application can check error by the return value of efl_util_set_notification_window_level since 3.0.
* @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
* @see efl_util_set_notification_window_level_error_cb()
*/
-API int efl_util_unset_notification_window_level_error_cb(Evas_Object *window);
+API int efl_util_unset_notification_window_level_error_cb(Evas_Object *window) TIZEN_DEPRECATED_API;
/**
* @brief Sets the alpha window's visual state to opaque state
typedef void (*efl_util_window_screen_mode_error_cb)(Evas_Object *window, int error_code, void *user_data);
/**
- * @deprecated Deprecated since 3.0.
+ * @deprecated Deprecated since 3.0. Use the return value of efl_util_set_window_screen_mode() instead.
* @brief Registers a callback function to be invoked when an error which set the screen mode.
* @since_tizen 2.4
* @remarks An application can check error by the return value of efl_util_set_window_screen_mode since 3.0.
* @see efl_util_unset_window_screen_mode_error_cb()
* @see efl_util_window_screen_mode_error_cb()
*/
-API int efl_util_set_window_screen_mode_error_cb(Evas_Object *window, efl_util_window_screen_mode_error_cb callback, void *user_data);
+API int efl_util_set_window_screen_mode_error_cb(Evas_Object *window, efl_util_window_screen_mode_error_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
- * @deprecated Deprecated since 3.0.
+ * @deprecated Deprecated since 3.0. Use the return value of efl_util_set_window_screen_mode() instead.
* @brief Unregisters the callback function.
* @since_tizen 2.4
* @remarks An application can check error by the return value of efl_util_set_window_screen_mode since 3.0.
* @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
* @see efl_util_set_window_screen_mode_error_cb()
*/
-API int efl_util_unset_window_screen_mode_error_cb(Evas_Object *window);
+API int efl_util_unset_window_screen_mode_error_cb(Evas_Object *window) TIZEN_DEPRECATED_API;
$TZ_CFG_KEEP_END$
/**
#include <tizen-extension-client-protocol.h>
#include <screenshooter-client-protocol.h>
+#include <dlog.h>
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "TIZEN_N_EFL_UTIL"
+
+
/* callback handler index */
#define CBH_NOTI_LEV 0
#define CBH_SCR_MODE 1
(level <= EFL_UTIL_NOTIFICATION_LEVEL_TOP),
EFL_UTIL_ERROR_INVALID_PARAMETER);
+ if (level == EFL_UTIL_NOTIFICATION_LEVEL_1)
+ {
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: EFL_UTIL_NOTIFICATION_LEVEL_1 is deprecated and will be removed from next release. Use EFL_UTIL_NOTIFICATION_LEVEL_DEFAULT instead.");
+ }
+ else if (level == EFL_UTIL_NOTIFICATION_LEVEL_2)
+ {
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: EFL_UTIL_NOTIFICATION_LEVEL_2 is deprecated and will be removed from next release. Use EFL_UTIL_NOTIFICATION_LEVEL_MEDIUM instead.");
+ }
+ else if (level == EFL_UTIL_NOTIFICATION_LEVEL_3)
+ {
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: EFL_UTIL_NOTIFICATION_LEVEL_3 is deprecated and will be removed from next release. Use EFL_UTIL_NOTIFICATION_LEVEL_TOP instead.");
+ }
+
Elm_Win_Type type;
Ecore_Wl_Window *wlwin;
struct wl_surface *surface;
efl_util_notification_window_level_error_cb callback,
void *user_data)
{
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: efl_util_set_notification_window_level_error_cb() is deprecated and will be removed from next release. Use the return value of efl_util_set_notification_window_level() instead.");
+
Eina_Bool ret = EINA_FALSE;
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EFL_UTIL_ERROR_INVALID_PARAMETER);
API int
efl_util_unset_notification_window_level_error_cb(Evas_Object *window)
{
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: efl_util_unset_notification_window_level_error_cb() is deprecated and will be removed from next release. Use the return value of efl_util_set_notification_window_level() instead.");
+
Eina_Bool ret = EINA_FALSE;
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EFL_UTIL_ERROR_INVALID_PARAMETER);
efl_util_window_screen_mode_error_cb callback,
void *user_data)
{
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: efl_util_set_window_screen_mode_error_cb() is deprecated and will be removed from next release. Use the return value of efl_util_set_window_screen_mode() instead.");
+
Eina_Bool ret = EINA_FALSE;
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EFL_UTIL_ERROR_INVALID_PARAMETER);
API int
efl_util_unset_window_screen_mode_error_cb(Evas_Object *window)
{
+ dlog_print(DLOG_WARN, LOG_TAG,
+ "DEPRECATION WARNING: efl_util_unset_window_screen_mode_error_cb() is deprecated and will be removed from next release. Use the return value of efl_util_set_window_screen_mode() instead.");
+
Eina_Bool ret = EINA_FALSE;
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EFL_UTIL_ERROR_INVALID_PARAMETER);