Add create/destroy in krate-admin-cli
[platform/core/security/krate.git] / lib / krate / package-info-internal.h
1 /*
2  *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Licensed under the Apache License, Version 2.0 (the "License");
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an "AS IS" BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License
15  */
16
17 #ifndef __KRATE_PACKAGE_INFO_INTERNAL_H__
18 #define __KRATE_PACKAGE_INFO_INTERNAL_H__
19
20 #include <glib.h>
21
22 // pkgmgr-info : include/pkgmgrinfo_basic.h
23 typedef struct icon_x {
24                 char *text;
25                 char *lang;
26                 char *section;
27                 char *size;
28                 char *resolution;
29                 char *dpi;
30 } icon_x;
31
32 // pkgmgr-info : include/pkgmgrinfo_basic.h
33 typedef struct description_x {
34                 char *name;
35                 char *text;
36                 char *lang;
37 } description_x;
38
39 // pkgmgr-info : include/pkgmgrinfo_basic.h
40 typedef struct label_x {
41                 char *name;
42                 char *text;
43                 char *lang;
44 } label_x;
45
46 // pkgmgr-info : include/pkgmgrinfo_basic.h
47 typedef struct author_x {
48                 char *email;
49                 char *href;
50                 char *text;
51                 char *lang;
52 } author_x;
53
54 // pkgmgr-info : include/pkgmgrinfo_basic.h
55 typedef struct package_x {
56         char *for_all_users;        /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
57         char *package;    /**< package name, attr*/
58         char *version;    /**< package version, attr*/
59         char *installlocation;    /**< package install location, attr, default: "internal-only"*/
60         char *ns;          /**<name space, attr*/
61         char *removable;            /**< package removable flag, no xml part*/
62         char *preload;    /**< package preload flag, no xml part*/
63         char *readonly;  /**< package readonly flag, no xml part*/
64         char *update;          /**< package update flag, no xml part*/
65         char *appsetting;          /**< package app setting flag, attr, default: "false"*/
66         char *system;      /**< package system flag, no xml part*/
67         char *type;      /**< package type, attr*/
68         char *package_size;      /**< package size for external installation, attr*/
69         char *installed_time;      /**< installed time after finishing of installation, no xml part*/
70         char *installed_storage;            /**< package currently installed storage, no xml part*/
71         char *storeclient_id;      /**< id of store client for installed package, attr*/
72         char *mainapp_id;          /**< app id of main application, no xml part*/
73         char *package_url;        /**< app id of main application, attr*/
74         char *root_path;            /**< package root path, attr*/
75         char *csc_path;  /**< package csc path, attr*/
76         char *nodisplay_setting;            /**< package no display setting menu, attr, default: "false"*/
77         char *support_mode; /**< package support mode, attr*/
78         char *support_disable;    /**< package support disable flag, attr, default: "false"*/
79         char *api_version;        /**< minimum version of API package using, attr, default: patch_version trimmed version from tizen_full_version*/
80         char *tep_name; /*no xml part*/
81         char *zip_mount_file;   /*no xml part*/
82         char *backend_installer;            /**< package backend installer, attr*/
83         char *external_path; /**< external storage path if exists, no xml part*/
84         GList *icon;        /**< package icon, element*/
85         GList *label;      /**< package label, element*/
86         GList *author;    /**< package author, element*/
87         GList *description;      /**< package description, element*/
88         GList *license;  /**< package license, no xml part*/
89         GList *privileges;  /**< package privileges, element*/
90         GList *application;      /**< package's application, element*/
91         GList *compatibility;      /**< package compatibility, element*/
92         GList *deviceprofile;      /**< package device profile, element*/
93 } package_x;
94
95 // pkgmgr-info : src/pkgmgrinfo_private.h
96 typedef struct _pkgmgr_pkginfo_x {
97         uid_t uid;
98         package_x *pkg_info;
99         char *locale;
100 } pkgmgr_pkginfo_x;
101
102 // package-manager : src/package_info.c
103 typedef struct package_info_s {
104         char *package;
105         pkgmgr_pkginfo_x *pkgmgr_pkginfo;
106 } package_info_s;
107
108 #endif //__KRATE_PACKAGE_INFO_INTERNAL_H__