applied policy for deprecated APIs 94/91194/3 accepted/tizen/3.0/common/20161114.105220 accepted/tizen/3.0/ivi/20161028.123102 accepted/tizen/3.0/mobile/20161028.122409 accepted/tizen/3.0/wearable/20161028.122900 accepted/tizen/common/20161012.154451 accepted/tizen/ivi/20161012.065857 accepted/tizen/mobile/20161012.065831 accepted/tizen/wearable/20161012.065839 submit/tizen/20161012.044659 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
authorjkjo92 <jkjo92@samsung.com>
Thu, 6 Oct 2016 07:32:16 +0000 (16:32 +0900)
committerjkjo92 <jkjo92@samsung.com>
Fri, 7 Oct 2016 10:02:57 +0000 (19:02 +0900)
Change-Id: I5a6bd7efbe2cff7658d0c5c0fcfe886fd75dc7b9
Signed-off-by: jkjo92 <jkjo92@samsung.com>
include/mobile/account.h
packaging/libaccount-service.spec
src/CMakeLists.txt
src/account.c

index 935bb19..72c85fe 100644 (file)
@@ -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.
index 11b1a94..ddaa521 100644 (file)
@@ -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
index 82554d7..b0f42d1 100644 (file)
@@ -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}\"")
index 33050a9..9bdee93 100644 (file)
@@ -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