X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fpkgmgrinfo_type.h;h=870d376345a1396c56cf7704d5c0da8aaead8624;hb=aa88d97f98ae9093f07947ec8397e15e07e1dac3;hp=f4e49a37034b275474bae0d9b4a9c324b2c99bd3;hpb=53659b28bcd4acdd918bd50c79595740fc0042be;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git diff --git a/include/pkgmgrinfo_type.h b/include/pkgmgrinfo_type.h index f4e49a3..870d376 100644 --- a/include/pkgmgrinfo_type.h +++ b/include/pkgmgrinfo_type.h @@ -111,7 +111,8 @@ typedef enum { PMINFO_PKGINFO_GET_DESCRIPTION = 0x0010, PMINFO_PKGINFO_GET_PRIVILEGE = 0x0020, PMINFO_PKGINFO_GET_APPDEFINED_PRIVILEGE = 0x0040, - PMINFO_PKGINFO_GET_ALL = 0x007F + PMINFO_PKGINFO_GET_DEPENDENCY = 0x0080, + PMINFO_PKGINFO_GET_ALL = 0x00FF } pkgmgrinfo_pkginfo_get_option; /** @@ -322,6 +323,43 @@ typedef int (*pkgmgrinfo_pkg_privilege_list_cb) (const char *privilege_name, typedef int (*pkgmgrinfo_pkg_appdefined_privilege_list_cb) (const char *privilege_name, const char *license_path, void *user_data); +/** + * @fn int (*pkgmgrinfo_pkg_dependency_list_cb) (const char *pkgid, const char *type, const char *required_version, void *user_data) + * + * @brief Specifies the dependency info of given package passed to pkgmgrinfo_pkginfo_foreach_dependency() or pkgmgrinfo_pkginfo_foreach_required_by() + * + * @param[in] pkgid the pkgid which has dependency with given package + * @param[in] type type of dependency + * @param[in] required_version required version of dependency + * @param[in] user_data user data passed + * + * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n + * + * @see pkgmgrinfo_pkginfo_foreach_dependency() + * @see pkgmgrinfo_pkginfo_foreach_required_by() + */ +typedef int (*pkgmgrinfo_pkg_dependency_list_cb) (const char *pkgid, + const char *type, const char *required_version, + void *user_data); + +/** + * @fn int (*pkgmgrinfo_plugin_list_cb) (const char *pkgid, const char *appid, const char *plugin_type, const char *plugin_name, void *user_data); + * + * @brief Specifies the type of function passed to pkgmgrinfo_plugininfo_foreach_plugininfo() + * + * @param[in] pkgid the name of the package + * @param[in] appid the name of the application + * @param[in] plugin_type the type of the executed plugin + * @param[in] plugin_name the name of the executed plugin + * @param[in] user_data user data passed to pkgmgrinfo_plugininfo_foreach_plugininfo() + * + * @return 0 if success, negative value(<0) if fail. Callback is not called if return value is negative.\n + * + * @see pkgmgrinfo_plugininfo_foreach_plugininfo() + */ +typedef int (*pkgmgrinfo_plugin_list_cb) (const char *pkgid, const char *appid, + const char *plugin_type, const char *plugin_name, + void *user_data); /** * @fn int (*pkgmgrinfo_app_metadata_list_cb) (const char *metadata_key, const char *metadata_value, void *user_data)