createrepo_c library  0.3.0
C library for metadata manipulation
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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 "package.h"
30 
41 
45 
57 cr_Package *cr_package_from_rpm(const char *filename,
58  cr_ChecksumType checksum_type,
59  const char *location_href,
60  const char *location_base,
61  int changelog_limit,
62  struct stat *stat_buf,
63  GError **err);
64 
77 struct cr_XmlStruct cr_xml_from_rpm(const char *filename,
78  cr_ChecksumType checksum_type,
79  const char *location_href,
80  const char *location_base,
81  int changelog_limit,
82  struct stat *stat_buf,
83  GError **err);
84 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* __C_CREATEREPOLIB_PARSEPKG_H__ */