Revert "Add new APIs for register, unregister and get pkg update info"
[platform/core/api/package-manager.git] / include / package_info.h
index 9fd6a3b..84a5f5d 100644 (file)
@@ -40,11 +40,6 @@ extern "C" {
  */
 typedef struct package_info_s *package_info_h;
 
-/**
- * @brief The package update information handle.
- * @since_tizen 4.0
- */
-typedef struct package_update_info_s *package_update_info_h;
 
 /**
  * @brief Enumeration for storage type.
@@ -83,27 +78,6 @@ typedef enum {
        PACKAGE_INFO_DISTRIBUTOR2_SIGNER_CERT = 8,       /**< Distributor2 Signer Certificate*/
 } package_cert_type_e;
 
-/**
- * @brief Enumeration for package update info type.
- * @since_tizen 4.0
- */
-typedef enum {
-       PACKAGE_UPDATEINFO_TYPE_NONE = 0,   /**< None type */
-       PACKAGE_UPDATEINFO_TYPE_FORCE,      /**< Force type */
-       PACKAGE_UPDATEINFO_TYPE_OPTIONAL    /**< Optional type */
-} package_update_info_type_e;
-
-/**
- * @brief Called for each update information of all packages.
- * @since_tizen 4.0
- * @param[in] package_updateinfo   The application update information handle
- * @param[in] user_data            The user data passed from the foreach function
- * @return @c true to continue with the next iteration of the loop,
- *         otherwise @c false to break out of the loop
- * @pre package_info_updateinfo_foreach_updateinfo() will invoke this callback.
- * @see package_info_updateinfo_foreach_updateinfo()
- */
-typedef bool (*package_info_updateinfo_cb) (package_update_info_h package_updateinfo, void *user_data);
 
 /**
  * @brief Called to get the application ID once for each installed package.
@@ -476,91 +450,6 @@ int package_info_foreach_cert_info(package_info_h package_info, package_info_cer
  */
 int package_info_foreach_privilege_info(package_info_h package_info, package_info_privilege_info_cb callback, void *user_data);
 
-/**
- * @brief Gets the package update information for the given package.
- * @since_tizen 4.0
- * @remarks You must release @a package_updateinfo using package_info_updateinfo_destroy().
- * @param[in] pkgid                The ID of the package
- * @param[out] package_updateinfo  The package update information for the given package ID
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PACKAGE_MANAGER_ERROR_NONE              Successful
- * @retval #PACKAGE_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PACKAGE_MANAGER_ERROR_NO_SUCH_PACKAGE   The package is not installed
- * @retval #PACKAGE_MANAGER_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #PACKAGE_MANAGER_ERROR_IO_ERROR          Database error occurred
- * @see package_info_updateinfo_destroy()
- */
-int package_info_updateinfo_create(const char *pkgid, package_update_info_h *package_updateinfo);
-
-/**
- * @brief Gets the package name.
- * @since_tizen 4.0
- * @remarks You must release @a package using free().
- * @param[in]  package_updateinfo The package update information
- * @param[out] package            The package name
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PACKAGE_MANAGER_ERROR_NONE              Successful
- * @retval #PACKAGE_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PACKAGE_MANAGER_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #PACKAGE_MANAGER_ERROR_IO_ERROR          Internal I/O error occured
- */
-int package_info_updateinfo_get_pkgid(package_update_info_h package_updateinfo, char **package);
-
-/**
- * @brief Gets the update version of package.
- * @since_tizen 4.0
- * @remarks You must release @a version using free().
- * @param[in]  package_updateinfo The package update information
- * @param[out] version            The package update version
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PACKAGE_MANAGER_ERROR_NONE              Successful
- * @retval #PACKAGE_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PACKAGE_MANAGER_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #PACKAGE_MANAGER_ERROR_IO_ERROR          Internal I/O error occured
- */
-int package_info_updateinfo_get_version(package_update_info_h package_updateinfo, char **version);
-
-/**
- * @brief Gets the update type of package.
- * @since_tizen 4.0
- * @param[in]  package_updateinfo The package update information
- * @param[out] type               The package update type
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PACKAGE_MANAGER_ERROR_NONE              Successful
- * @retval #PACKAGE_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PACKAGE_MANAGER_ERROR_IO_ERROR          Internal I/O error occured
- */
-int package_info_updateinfo_get_type(package_update_info_h package_updateinfo, package_update_info_type_e *type);
-
-/**
- * @brief Destroys the package update information handle and releases all its resources.
- * @since_tizen 4.0
- * @param[in] package_updateinfo The package update information handle
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PACKAGE_MANAGER_ERROR_NONE              Successful
- * @retval #PACKAGE_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @see package_info_updateinfo_create()
- */
-int package_info_updateinfo_destroy(package_update_info_h package_updateinfo);
-
-/**
- * @brief Retrieve update information of all packages and invoke callback for each of it.
- * @since_tizen 4.0
- * @param[in] callback     The iteration callback function
- * @param[in] user_data    The user data to be passed to the callback function
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PACKAGE_MANAGER_ERROR_NONE              Successful
- * @retval #PACKAGE_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PACKAGE_MANAGER_ERROR_IO_ERROR          I/O error
- */
-int package_info_updateinfo_foreach_updateinfo(package_info_updateinfo_cb callback, void *user_data);
-
 
 /**
 * @}