createrepo_c library 1.2.1
C library for metadata manipulation
Loading...
Searching...
No Matches
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
26extern "C" {
27#endif
28
29#include <glib.h>
30
35
36typedef enum {
39 /* Some values are reserved (for sqlite, solv, etc..) */
45
48typedef struct {
49 char *name;
50 char *flags;
52 char *epoch;
53 char *version;
54 char *release;
55 gboolean pre;
57
60typedef struct {
61 char *type;
62 char *path;
63 char *name;
64 char *digest;
66
69typedef struct {
70 char *author;
71 gint64 date;
72 char *changelog;
74
77typedef struct {
78 void *data;
79 gsize size;
81
84typedef struct {
85 gint64 pkgKey;
86 char *pkgId;
87 char *name;
88 char *arch;
89 char *version;
90 char *epoch;
91 char *release;
92 char *summary;
94 char *url;
95 gint64 time_file;
96 gint64 time_build;
98 char *rpm_vendor;
99 char *rpm_group;
117
118 GSList *requires;
119 GSList *provides;
120 GSList *conflicts;
121 GSList *obsoletes;
122 GSList *suggests;
123 GSList *enhances;
124 GSList *recommends;
125 GSList *supplements;
126
127 GSList *files;
129 GSList *changelogs;
131
132 char *hdrid;
133 cr_BinaryData *siggpg;
134 cr_BinaryData *sigpgp;
135
136 GStringChunk *chunk;
138
141 gboolean skip_dump;
142} cr_Package;
143
148
153
158
163
168
173
178
184
190
196
198
199#ifdef __cplusplus
200}
201#endif
202
203#endif /* __C_CREATEREPOLIB_PACKAGE_H__ */
cr_PackageLoadingFlags
Definition package.h:36
cr_Package * cr_package_new_without_chunk(void)
gchar * cr_package_nevra(cr_Package *package)
cr_Package * cr_package_copy(cr_Package *package)
cr_Package * cr_package_new(void)
void cr_package_free(cr_Package *package)
cr_ChangelogEntry * cr_changelog_entry_new(void)
cr_Dependency * cr_dependency_new(void)
gchar * cr_package_nvra(cr_Package *package)
cr_PackageFile * cr_package_file_new(void)
cr_BinaryData * cr_binary_data_new(void)
@ CR_PACKAGE_LOADED_PRI
Definition package.h:40
@ CR_PACKAGE_LOADED_OTH
Definition package.h:42
@ CR_PACKAGE_LOADED_FIL
Definition package.h:41
@ CR_PACKAGE_SINGLE_CHUNK
Definition package.h:43
@ CR_PACKAGE_FROM_XML
Definition package.h:38
@ CR_PACKAGE_FROM_HEADER
Definition package.h:37
Definition package.h:69
char * author
Definition package.h:70
gint64 date
Definition package.h:71
char * changelog
Definition package.h:72
gboolean pre
Definition package.h:55
char * flags
Definition package.h:50
char * version
Definition package.h:53
char * name
Definition package.h:49
char * epoch
Definition package.h:52
char * release
Definition package.h:54
char * type
Definition package.h:61
char * path
Definition package.h:62
char * name
Definition package.h:63
char * digest
Definition package.h:64
char * checksum_type
Definition package.h:113
GSList * enhances
Definition package.h:123
char * rpm_packager
Definition package.h:106
char * summary
Definition package.h:92
GSList *GSList * provides
Definition package.h:119
char * rpm_group
Definition package.h:99
char * version
Definition package.h:89
gint64 size_archive
Definition package.h:109
char * name
Definition package.h:87
GSList * files
Definition package.h:127
GStringChunk * chunk
Definition package.h:136
gboolean skip_dump
Definition package.h:141
char * rpm_vendor
Definition package.h:98
char * location_href
Definition package.h:111
char * description
Definition package.h:93
GSList * conflicts
Definition package.h:120
char * rpm_license
Definition package.h:97
gint64 time_build
Definition package.h:96
gint64 rpm_header_end
Definition package.h:105
GSList * changelogs
Definition package.h:129
char * rpm_sourcerpm
Definition package.h:103
char * rpm_buildhost
Definition package.h:101
char * url
Definition package.h:94
GSList * suggests
Definition package.h:122
char * arch
Definition package.h:88
gint64 size_installed
Definition package.h:108
char * pkgId
Definition package.h:86
cr_PackageLoadingFlags loadingflags
Definition package.h:139
gint64 pkgKey
Definition package.h:85
char * files_checksum_type
Definition package.h:115
gint64 rpm_header_start
Definition package.h:104
gint64 size_package
Definition package.h:107
char * epoch
Definition package.h:90
GSList * obsoletes
Definition package.h:121
char * location_base
Definition package.h:112
GSList * recommends
Definition package.h:124
char * release
Definition package.h:91
gint64 time_file
Definition package.h:95
GSList * supplements
Definition package.h:125