1 #ifndef __PKGMGRINFO_RESOURCE_H_
2 #define __PKGMGRINFO_RESOURCE_H_
7 #define RSC_GROUP_TYPE_IMAGE "image"
8 #define RSC_GROUP_TYPE_LAYOUT "layout"
9 #define RSC_GROUP_TYPE_SOUND "sound"
10 #define RSC_GROUP_TYPE_BIN "bin"
12 #define RSC_NODE_ATTR_SCREEN_DPI "screen-dpi"
13 #define RSC_NODE_ATTR_SCREEN_DPI_RANGE "screen-dpi-range"
14 #define RSC_NODE_ATTR_SCREEN_WIDTH_RANGE "screen-width-range"
15 #define RSC_NODE_ATTR_SCREEN_LARGE "screen-large"
16 #define RSC_NODE_ATTR_SCREEN_BPP "screen-bpp"
17 #define RSC_NODE_ATTR_PLATFORM_VER "platform-version"
18 #define RSC_NODE_ATTR_LANGUAGE "language"
41 * @fn int pkgmgrinfo_resource_close(resource_data_t data)
42 * @brief This API frees given data and its own variables
44 * @par This API is for capi-appfw-application.
45 * @par Sync (or) Async : Synchronous API
47 * @param[in] data structure of resource_data_t
48 * @return 0 on succeed and -1 on failure, -2 on invalid parameter
50 int pkgmgrinfo_resource_close(resource_data_t *data);
53 * @fn int pkgmgrinfo_resource_open(const char *package, resource_data_t **data)
54 * @brief This API will get resource data of specific package from db
56 * @par This API is for capi-appfw-application.
57 * @par Sync (or) Async : Synchronous API
59 * @param[in] package packageID
60 * @param[out]data resource_data type structure. it will filled with resource data
61 * @return 0 on succeed and -1 on failure, -2 on invalid parameter
63 int pkgmgrinfo_resource_open(const char *package, resource_data_t **data);