createrepo_c library
0.3.0
C library for metadata manipulation
Main Page
Modules
Data Structures
Files
File List
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
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
{
37
CR_PACKAGE_FROM_HEADER
= (1<<1),
38
CR_PACKAGE_FROM_XML
= (1<<2),
39
/* Some values are reserved (for sqlite, solv, etc..) */
40
CR_PACKAGE_LOADED_PRI
= (1<<10),
41
CR_PACKAGE_LOADED_FIL
= (1<<11),
42
CR_PACKAGE_LOADED_OTH
= (1<<12),
43
}
cr_PackageLoadingFlags
;
44
47
typedef
struct
{
48
char
*
name
;
49
char
*flags;
51
char
*
epoch
;
52
char
*
version
;
53
char
*
release
;
54
gboolean
pre
;
55
}
cr_Dependency
;
56
59
typedef
struct
{
60
char
*
type
;
61
char
*
path
;
62
char
*
name
;
63
}
cr_PackageFile
;
64
67
typedef
struct
{
68
char
*
author
;
69
gint64
date
;
70
char
*
changelog
;
71
}
cr_ChangelogEntry
;
72
75
typedef
struct
{
76
gint64
pkgKey
;
77
char
*
pkgId
;
78
char
*
name
;
79
char
*
arch
;
80
char
*
version
;
81
char
*
epoch
;
82
char
*
release
;
83
char
*
summary
;
84
char
*
description
;
85
char
*
url
;
86
gint64
time_file
;
87
gint64
time_build
;
88
char
*
rpm_license
;
89
char
*
rpm_vendor
;
90
char
*rpm_group;
92
char
*rpm_buildhost;
94
char
*
rpm_sourcerpm
;
95
gint64
rpm_header_start
;
96
gint64
rpm_header_end
;
97
char
*
rpm_packager
;
98
gint64
size_package
;
99
gint64
size_installed
;
100
gint64 size_archive;
102
char
*
location_href
;
103
char
*
location_base
;
104
char
*checksum_type;
107
GSList *
requires
;
108
GSList *
provides
;
109
GSList *
conflicts
;
110
GSList *
obsoletes
;
112
GSList *files;
114
GSList *changelogs;
117
GStringChunk *chunk;
120
cr_PackageLoadingFlags
loadingflags;
122
}
cr_Package
;
123
127
cr_Dependency
*
cr_dependency_new
(
void
);
128
132
cr_PackageFile
*
cr_package_file_new
(
void
);
133
137
cr_ChangelogEntry
*
cr_changelog_entry_new
(
void
);
138
142
cr_Package
*
cr_package_new
(
void
);
143
147
cr_Package
*
cr_package_new_without_chunk
(
void
);
148
152
void
cr_package_free
(
cr_Package
*package);
153
158
gchar *
cr_package_nvra
(
cr_Package
*package);
159
164
gchar *
cr_package_nevra
(
cr_Package
*package);
165
170
cr_Package
*
cr_package_copy
(
cr_Package
*package);
171
174
#ifdef __cplusplus
175
}
176
#endif
177
178
#endif
/* __C_CREATEREPOLIB_PACKAGE_H__ */
src
package.h
Generated on Tue May 6 2014 14:44:44 for createrepo_c library by
1.8.3.1