createrepo_c library
C library for metadata manipulation
Hlavní stránka
Moduly
Třídy
Soubory
Seznam souborů
Vše
Třídy
Funkce
Proměnné
Definice typů
Výčty
Hodnoty výčtu
Skupiny
Stránky
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
37
typedef
struct
{
38
char
*
name
;
39
char
*flags;
41
char
*
epoch
;
42
char
*
version
;
43
char
*
release
;
44
gboolean
pre
;
45
}
cr_Dependency
;
46
50
typedef
struct
{
51
char
*
type
;
52
char
*
path
;
53
char
*
name
;
54
}
cr_PackageFile
;
55
59
typedef
struct
{
60
char
*
author
;
61
gint64
date
;
62
char
*
changelog
;
63
}
cr_ChangelogEntry
;
64
68
typedef
struct
{
69
gint64
pkgKey
;
70
char
*
pkgId
;
71
char
*
name
;
72
char
*
arch
;
73
char
*
version
;
74
char
*
epoch
;
75
char
*
release
;
76
char
*
summary
;
77
char
*
description
;
78
char
*
url
;
79
gint64
time_file
;
80
gint64
time_build
;
81
char
*
rpm_license
;
82
char
*
rpm_vendor
;
83
char
*rpm_group;
85
char
*rpm_buildhost;
87
char
*
rpm_sourcerpm
;
88
gint64
rpm_header_start
;
89
gint64
rpm_header_end
;
90
char
*
rpm_packager
;
91
gint64
size_package
;
92
gint64
size_installed
;
93
gint64 size_archive;
95
char
*
location_href
;
96
char
*
location_base
;
97
char
*checksum_type;
100
GSList *
requires
;
101
GSList *
provides
;
102
GSList *
conflicts
;
103
GSList *
obsoletes
;
105
GSList *files;
107
GSList *changelogs;
110
GStringChunk *chunk;
112
}
cr_Package
;
113
114
typedef
void (*cr_PackageFn) (
cr_Package
*pkg, gpointer data);
115
120
cr_Dependency
*
cr_dependency_new
(
void
);
121
126
cr_PackageFile
*
cr_package_file_new
(
void
);
127
132
cr_ChangelogEntry
*
cr_changelog_entry_new
(
void
);
133
138
cr_Package
*
cr_package_new
(
void
);
139
144
cr_Package
*
cr_package_new_without_chunk
(
void
);
145
150
void
cr_package_free
(
cr_Package
*package);
151
157
gchar *
cr_package_nvra
(
cr_Package
*package);
158
159
#ifdef __cplusplus
160
}
161
#endif
162
163
#endif
/* __C_CREATEREPOLIB_PACKAGE_H__ */
src
package.h
Generováno čt 14. úno 2013 05.42:57 pro projekt createrepo_c library programem
1.8.3.1