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 #include "xml_dump.h"
00032
00042 void cr_package_parser_init();
00043
00046 void cr_package_parser_cleanup();
00047
00058 cr_Package *
00059 cr_package_from_rpm_base(const char *filename,
00060 int changelog_limit,
00061 cr_HeaderReadingFlags flags,
00062 GError **err);
00063
00076 cr_Package *cr_package_from_rpm(const char *filename,
00077 cr_ChecksumType checksum_type,
00078 const char *location_href,
00079 const char *location_base,
00080 int changelog_limit,
00081 struct stat *stat_buf,
00082 cr_HeaderReadingFlags flags,
00083 GError **err);
00084
00097 struct cr_XmlStruct cr_xml_from_rpm(const char *filename,
00098 cr_ChecksumType checksum_type,
00099 const char *location_href,
00100 const char *location_base,
00101 int changelog_limit,
00102 struct stat *stat_buf,
00103 GError **err);
00104
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110
00111 #endif