Applied privileges tag plugin
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Wed, 20 Mar 2013 03:40:12 +0000 (12:40 +0900)
committerjunsuk77.oh <junsuk77.oh@samsung.com>
Wed, 20 Mar 2013 03:40:12 +0000 (12:40 +0900)
Change-Id: I3ef68bc1363be586fc6fb810fe7587d78e0b77b3
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
packaging/pkgmgr-info.spec
parser/manifest.xsd.in
parser/pkgmgr_parser.c

index f6c62bf..3ed911d 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       pkgmgr-info
 Summary:    Packager Manager infomation api for package
-Version:    0.0.87
+Version:    0.0.88
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index fee2ad1..b9c5211 100755 (executable)
@@ -18,7 +18,8 @@
           <xs:element ref="packages:shortcut-list"/>
           <xs:element ref="packages:livebox"/>
           <xs:element ref="packages:account"/>
-         <xs:element ref="packages:notifications"/>
+                 <xs:element ref="packages:notifications"/>
+                 <xs:element ref="packages:privileges"/>
           <xs:element ref="packages:font"/>
         </xs:choice>
       </xs:sequence>
   </xs:element>
   <xs:element name="notifications">
   </xs:element>
+  <xs:element name="privileges">
+  </xs:element>
   <xs:element name="font">
     <xs:complexType>
       <xs:sequence>
index a2e5835..8eb80c0 100755 (executable)
@@ -3049,6 +3049,8 @@ static int __start_process(xmlTextReaderPtr reader, manifest_x * mfx)
                        continue;
                } else if (!strcmp(ASCII(node), "notifications")) {
                        continue;
+               } else if (!strcmp(ASCII(node), "privileges")) {
+                       continue;
                } else
                        return -1;
 
@@ -3915,7 +3917,7 @@ API manifest_x *pkgmgr_parser_process_manifest_xml(const char *manifest)
 
 API int pkgmgr_parser_parse_manifest_for_installation(const char *manifest, char *const tagv[])
 {
-       char *temp[] = {"shortcut-list", "livebox", "account", "notifications", NULL};
+       char *temp[] = {"shortcut-list", "livebox", "account", "notifications", "privileges", NULL};
        if (manifest == NULL) {
                DBG("argument supplied is NULL\n");
                return PMINFO_R_EINVAL;
@@ -3978,7 +3980,7 @@ API int pkgmgr_parser_create_desktop_file(manifest_x *mfx)
 
 API int pkgmgr_parser_parse_manifest_for_upgrade(const char *manifest, char *const tagv[])
 {
-       char *temp[] = {"shortcut-list", "livebox", "account", "notifications", NULL};
+       char *temp[] = {"shortcut-list", "livebox", "account", "notifications", "privileges", NULL};
        if (manifest == NULL) {
                DBG("argument supplied is NULL\n");
                return PMINFO_R_EINVAL;
@@ -4018,7 +4020,7 @@ API int pkgmgr_parser_parse_manifest_for_upgrade(const char *manifest, char *con
 
 API int pkgmgr_parser_parse_manifest_for_uninstallation(const char *manifest, char *const tagv[])
 {
-       char *temp[] = {"shortcut-list", "livebox", "account", "notifications", NULL};
+       char *temp[] = {"shortcut-list", "livebox", "account", "notifications", "privileges", NULL};
        if (manifest == NULL) {
                DBG("argument supplied is NULL\n");
                return PMINFO_R_EINVAL;