replace the _NEW API with old one
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 8 Jul 2014 07:54:33 +0000 (16:54 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 8 Jul 2014 07:54:33 +0000 (16:54 +0900)
Change-Id: I43861c72430561af5212af2b23e2756d7a197a9c

include/livebox.h
src/livebox.c

index 86555df..216558e 100644 (file)
@@ -406,24 +406,6 @@ extern int livebox_client_resumed(void);
 extern struct livebox *livebox_add(const char *pkgname, const char *content, const char *cluster, const char *category, double period, int type, ret_cb_t cb, void *data);
 
 /**
- * @brief Deletes a livebox (deprecated).
- * @remarks If you call this with an uninitialized handle, the return callback will be called synchronously.
- *    So before returning from this function, the return callback will be called first.
- * @param[in] handler Handler of a livebox instance
- * @param[in] cb Return callback
- * @param[in] data User data for return callback
- * @privlevel platform
- * @privilege %http://developer.samsung.com/privilege/core/dynamicbox.viewer
- * @return int
- * @retval #LB_STATUS_ERROR_INVALID Invalid argument
- * @retval #LB_STATUS_ERROR_BUSY Already in process
- * @retval #LB_STATUS_ERROR_FAULT Failed to create a request packet
- * @retval #LB_STATUS_SUCCESS Successfully sent, return callack will be called
- * @see ret_cb_t
- */
-extern int livebox_del(struct livebox *handler, ret_cb_t cb, void *data);
-
-/**
  * @brief Deletes a livebox (will replace livebox_del).
  * @remarks If you call this with an uninitialized handle, the return callback will be called synchronously.
  *    So before returning from this function, the return callback will be called first.
@@ -440,7 +422,7 @@ extern int livebox_del(struct livebox *handler, ret_cb_t cb, void *data);
  * @retval #LB_STATUS_SUCCESS Successfully sent, return callack will be called
  * @see ret_cb_t
  */
-extern int livebox_del_NEW(struct livebox *handler, int type, ret_cb_t cb, void *data);
+extern int livebox_del(struct livebox *handler, int type, ret_cb_t cb, void *data);
 
 /**
  * @brief Sets a livebox events callback.
index 2f93550..b1526b6 100644 (file)
@@ -1729,7 +1729,7 @@ static void job_del_cb(struct livebox *handle, int type, void *data)
        }
 }
 
-EAPI int livebox_del_NEW(struct livebox *handler, int type, ret_cb_t cb, void *data)
+EAPI int livebox_del(struct livebox *handler, int type, ret_cb_t cb, void *data)
 {
        struct cb_info *cbinfo;
 
@@ -1760,11 +1760,6 @@ EAPI int livebox_del_NEW(struct livebox *handler, int type, ret_cb_t cb, void *d
        return LB_STATUS_SUCCESS;
 }
 
-EAPI int livebox_del(struct livebox *handler, ret_cb_t cb, void *data)
-{
-       return livebox_del_NEW(handler, LB_DELETE_PERMANENTLY, cb, data);
-}
-
 EAPI int livebox_set_fault_handler(int (*cb)(enum livebox_fault_type, const char *, const char *, const char *, void *), void *data)
 {
        struct fault_info *info;