createrepo_c library  0.7.5
C library for metadata manipulation
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
package.h
1 /* createrepo_c - Library of routines for manipulation with repodata
2  * Copyright (C) 2012 Tomas Mlcoch
3  * Copyright (C) 2007 James Bowes
4  * Copyright (C) 2006 Seth Vidal
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19  * USA.
20  */
21 
22 #ifndef __C_CREATEREPOLIB_PACKAGE_H__
23 #define __C_CREATEREPOLIB_PACKAGE_H__
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #include <glib.h>
30 
36 typedef enum {
39  /* Some values are reserved (for sqlite, solv, etc..) */
44 
47 typedef struct {
48  char *name;
49  char *flags;
51  char *epoch;
52  char *version;
53  char *release;
54  gboolean pre;
56 
59 typedef struct {
60  char *type;
61  char *path;
62  char *name;
64 
67 typedef struct {
68  char *author;
69  gint64 date;
70  char *changelog;
72 
75 typedef struct {
76  void *data;
77  gsize size;
79 
82 typedef struct {
83  gint64 pkgKey;
84  char *pkgId;
85  char *name;
86  char *arch;
87  char *version;
88  char *epoch;
89  char *release;
90  char *summary;
91  char *description;
92  char *url;
93  gint64 time_file;
94  gint64 time_build;
95  char *rpm_license;
96  char *rpm_vendor;
97  char *rpm_group;
99  char *rpm_buildhost;
103  gint64 rpm_header_end;
104  char *rpm_packager;
105  gint64 size_package;
106  gint64 size_installed;
107  gint64 size_archive;
114  GSList *requires;
115  GSList *provides;
116  GSList *conflicts;
117  GSList *obsoletes;
118  GSList *suggests;
119  GSList *enhances;
120  GSList *recommends;
121  GSList *supplements;
123  GSList *files;
125  GSList *changelogs;
128  char *hdrid;
129  cr_BinaryData *siggpg;
130  cr_BinaryData *sigpgp;
131 
132  GStringChunk *chunk;
137 } cr_Package;
138 
143 
148 
153 
158 
163 
168 
172 void cr_package_free(cr_Package *package);
173 
178 gchar *cr_package_nvra(cr_Package *package);
179 
184 gchar *cr_package_nevra(cr_Package *package);
185 
191 
194 #ifdef __cplusplus
195 }
196 #endif
197 
198 #endif /* __C_CREATEREPOLIB_PACKAGE_H__ */
char * version
Definition: package.h:52
char * release
Definition: package.h:89
cr_Package * cr_package_copy(cr_Package *package)
char * url
Definition: package.h:92
cr_PackageLoadingFlags loadingflags
Definition: package.h:135
GSList * recommends
Definition: package.h:120
GStringChunk * chunk
Definition: package.h:132
cr_PackageLoadingFlags
Definition: package.h:36
cr_Package * cr_package_new_without_chunk(void)
char * name
Definition: package.h:48
char * name
Definition: package.h:85
void cr_package_free(cr_Package *package)
Definition: package.h:67
char * location_base
Definition: package.h:110
char * rpm_buildhost
Definition: package.h:99
gint64 time_build
Definition: package.h:94
GSList * enhances
Definition: package.h:119
char * description
Definition: package.h:91
char * author
Definition: package.h:68
GSList * requires
Definition: package.h:114
gint64 time_file
Definition: package.h:93
gint64 pkgKey
Definition: package.h:83
GSList * suggests
Definition: package.h:118
gint64 date
Definition: package.h:69
char * epoch
Definition: package.h:88
char * type
Definition: package.h:60
char * rpm_group
Definition: package.h:97
char * summary
Definition: package.h:90
char * location_href
Definition: package.h:109
cr_ChangelogEntry * cr_changelog_entry_new(void)
gint64 size_archive
Definition: package.h:107
cr_BinaryData * cr_binary_data_new(void)
gchar * cr_package_nevra(cr_Package *package)
GSList * conflicts
Definition: package.h:116
gint64 rpm_header_end
Definition: package.h:103
char * checksum_type
Definition: package.h:111
GSList * files
Definition: package.h:123
gboolean pre
Definition: package.h:54
cr_Package * cr_package_new(void)
char * rpm_sourcerpm
Definition: package.h:101
gchar * cr_package_nvra(cr_Package *package)
char * arch
Definition: package.h:86
char * changelog
Definition: package.h:70
cr_Dependency * cr_dependency_new(void)
char * rpm_vendor
Definition: package.h:96
char * pkgId
Definition: package.h:84
GSList * supplements
Definition: package.h:121
char * release
Definition: package.h:53
char * path
Definition: package.h:61
cr_PackageFile * cr_package_file_new(void)
GSList * provides
Definition: package.h:115
char * flags
Definition: package.h:49
gint64 rpm_header_start
Definition: package.h:102
char * version
Definition: package.h:87
GSList * obsoletes
Definition: package.h:117
char * rpm_packager
Definition: package.h:104
GSList * changelogs
Definition: package.h:125
char * epoch
Definition: package.h:51
char * name
Definition: package.h:62
char * rpm_license
Definition: package.h:95
gint64 size_package
Definition: package.h:105
gint64 size_installed
Definition: package.h:106