From: jkjo92 Date: Thu, 6 Oct 2016 07:32:16 +0000 (+0900) Subject: applied policy for deprecated APIs X-Git-Tag: submit/tizen/20161012.044659^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17d17629cbc71415bbed1b6fbc6e54b880dee639;p=platform%2Fcore%2Fapi%2Flibaccount-service.git applied policy for deprecated APIs Change-Id: I5a6bd7efbe2cff7658d0c5c0fcfe886fd75dc7b9 Signed-off-by: jkjo92 --- diff --git a/include/mobile/account.h b/include/mobile/account.h index 935bb19..72c85fe 100644 --- a/include/mobile/account.h +++ b/include/mobile/account.h @@ -187,7 +187,7 @@ typedef bool (*account_event_cb)(const char *event_type, int account_id, void *u * @retval #ACCOUNT_ERROR_DB_NOT_OPENED DB is not connected * @retval #ACCOUNT_ERROR_PERMISSION_DENIED DB Access fail by permission */ -int account_connect(void); +int account_connect(void) TIZEN_DEPRECATED_API; /** @@ -202,7 +202,7 @@ int account_connect(void); * @retval #ACCOUNT_ERROR_DB_NOT_OPENED DB is not connected * @retval #ACCOUNT_ERROR_PERMISSION_DENIED DB Access fail by permission */ -int account_connect_readonly(void); +int account_connect_readonly(void) TIZEN_DEPRECATED_API; /** @@ -217,7 +217,7 @@ int account_connect_readonly(void); * @retval #ACCOUNT_ERROR_PERMISSION_DENIED DB Access fail by permission * @retval #ACCOUNT_ERROR_DATABASE_BUSY SQLite busy handler exprired */ -int account_disconnect(void); +int account_disconnect(void) TIZEN_DEPRECATED_API; /** * @brief Creates a handle to the account. diff --git a/packaging/libaccount-service.spec b/packaging/libaccount-service.spec index 11b1a94..ddaa521 100644 --- a/packaging/libaccount-service.spec +++ b/packaging/libaccount-service.spec @@ -1,7 +1,7 @@ Name: libaccount-service Summary: Account DB library -Version: 0.4.7 +Version: 0.4.8 Release: 1 Group: Social & Content/API License: Apache-2.0 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 82554d7..b0f42d1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -38,7 +38,7 @@ ELSE ("${ARCH}" STREQUAL "arm") MESSAGE("[i386] Compile") ENDIF ("${ARCH}" STREQUAL "arm") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror -Wno-error=deprecated-declarations") SET(CMAKE_LDFLAGS "-Wl,-zdefs") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") diff --git a/src/account.c b/src/account.c index 33050a9..9bdee93 100644 --- a/src/account.c +++ b/src/account.c @@ -210,16 +210,19 @@ static int _account_get_error_code(bool is_success, GError *error) #ifdef TIZEN_PROFILE_MOBILE ACCOUNT_API int account_connect(void) { + _INFO("DEPRECATION WARNING: account_connect() is deprecated and will be removed from next release."); return ACCOUNT_ERROR_NONE; } ACCOUNT_API int account_connect_readonly(void) { + _INFO("DEPRECATION WARNING: account_connect_readonly() is deprecated and will be removed from next release."); return ACCOUNT_ERROR_NONE; } ACCOUNT_API int account_disconnect(void) { + _INFO("DEPRECATION WARNING: account_disconnect() is deprecated and will be removed from next release."); return ACCOUNT_ERROR_NONE; } #endif