Revise parser, insert db
[platform/core/appfw/pkgmgr-info.git] / parser / pkgmgr_parser.h
index c1cf572..2d7e082 100644 (file)
@@ -59,6 +59,14 @@ extern "C" {
 #define PKGMGR_PARSER_EMPTY_STR                ""
 #define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
 
+/**
+ * @brief API return values
+ */
+enum {
+       PM_PARSER_R_EINVAL = -2,                /**< Invalid argument */
+       PM_PARSER_R_ERROR = -1,         /**< General error */
+       PM_PARSER_R_OK = 0                      /**< General success */
+};
 
 /**
  * @brief List definitions.
@@ -302,11 +310,9 @@ typedef struct appsvc_x {
 } appsvc_x;
 
 typedef struct appcontrol_x {
-       const char *text;
-       struct operation_x *operation;
-       struct uri_x *uri;
-       struct mime_x *mime;
-       struct subapp_x *subapp;
+       const char *operation;
+       const char *uri;
+       const char *mime;
        struct appcontrol_x *prev;
        struct appcontrol_x *next;
 } appcontrol_x;
@@ -479,7 +485,7 @@ typedef struct manifest_x {
        const char *root_path;          /**< package root path*/
        const char *csc_path;           /**< package csc path*/
        const char *nodisplay_setting;          /**< package no display setting menu*/
-       const char *main_package;               /**< main package id for sub-package(ug)*/
+       const char *api_version;                /**< minimum version of API package using*/
        struct icon_x *icon;            /**< package icon*/
        struct label_x *label;          /**< package label*/
        struct author_x *author;                /**< package author*/