createrepo_c library 1.2.1 C library for metadata manipulation

parsepkg.h
1 /* createrepo_c - Library of routines for manipulation with repodata
2 * Copyright (C) 2012 Tomas Mlcoch
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 * USA.
18 */
19
20 #ifndef __C_CREATEREPOLIB_PARSEPKG_H__
21 #define __C_CREATEREPOLIB_PARSEPKG_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include <glib.h>
28 #include "checksum.h"
29 #include "parsehdr.h"
30 #include "package.h"
31 #include "xml_dump.h"
32
42 void cr_package_parser_init();
43
46 void cr_package_parser_cleanup();
47
58 cr_Package *
59 cr_package_from_rpm_base(const char *filename,
60 int changelog_limit,
61 cr_HeaderReadingFlags flags,
62 GError **err);
63
76 cr_Package *cr_package_from_rpm(const char *filename,
77 cr_ChecksumType checksum_type,
78 const char *location_href,
79 const char *location_base,
80 int changelog_limit,
81 struct stat *stat_buf,
82 cr_HeaderReadingFlags flags,
83 GError **err);
84
97 struct cr_XmlStruct cr_xml_from_rpm(const char *filename,
98 cr_ChecksumType checksum_type,
99 const char *location_href,
100 const char *location_base,
101 int changelog_limit,
102 struct stat *stat_buf,
103 GError **err);
104
117 struct cr_XmlStruct cr_xml_from_rpm_ext(const char *filename,
118 cr_ChecksumType checksum_type,
119 const char *location_href,
120 const char *location_base,
121 int changelog_limit,
122 struct stat *stat_buf,
123 GError **err);
124
127 #ifdef __cplusplus
128 }
129 #endif
130
131 #endif /* __C_CREATEREPOLIB_PARSEPKG_H__ */
cr_package_parser_init
void cr_package_parser_init()
cr_xml_from_rpm
struct cr_XmlStruct cr_xml_from_rpm(const char *filename, cr_ChecksumType checksum_type, const char *location_href, const char *location_base, int changelog_limit, struct stat *stat_buf, GError **err)
cr_ChecksumType
cr_ChecksumType
Definition: checksum.h:43
cr_package_from_rpm
cr_Package * cr_package_from_rpm(const char *filename, cr_ChecksumType checksum_type, const char *location_href, const char *location_base, int changelog_limit, struct stat *stat_buf, cr_HeaderReadingFlags flags, GError **err)
cr_HeaderReadingFlags
cr_HeaderReadingFlags
Definition: parsehdr.h:38
cr_package_from_rpm_base
cr_Package * cr_package_from_rpm_base(const char *filename, int changelog_limit, cr_HeaderReadingFlags flags, GError **err)
cr_package_parser_cleanup
void cr_package_parser_cleanup()
cr_xml_from_rpm_ext
struct cr_XmlStruct cr_xml_from_rpm_ext(const char *filename, cr_ChecksumType checksum_type, const char *location_href, const char *location_base, int changelog_limit, struct stat *stat_buf, GError **err)
cr_Package
Definition: package.h:84
cr_XmlStruct
Definition: xml_dump.h:81