00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __C_CREATEREPOLIB_PARSEPKG_H__
00021 #define __C_CREATEREPOLIB_PARSEPKG_H__
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00027 #include <glib.h>
00028 #include "checksum.h"
00029 #include "parsehdr.h"
00030 #include "package.h"
00031
00041 void cr_package_parser_init();
00042
00045 void cr_package_parser_cleanup();
00046
00057 cr_Package *
00058 cr_package_from_rpm_base(const char *filename,
00059 int changelog_limit,
00060 cr_HeaderReadingFlags flags,
00061 GError **err);
00062
00075 cr_Package *cr_package_from_rpm(const char *filename,
00076 cr_ChecksumType checksum_type,
00077 const char *location_href,
00078 const char *location_base,
00079 int changelog_limit,
00080 struct stat *stat_buf,
00081 cr_HeaderReadingFlags flags,
00082 GError **err);
00083
00096 struct cr_XmlStruct cr_xml_from_rpm(const char *filename,
00097 cr_ChecksumType checksum_type,
00098 const char *location_href,
00099 const char *location_base,
00100 int changelog_limit,
00101 struct stat *stat_buf,
00102 GError **err);
00103
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109
00110 #endif