00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __C_CREATEREPOLIB_XML_DUMP_H__
00021 #define __C_CREATEREPOLIB_XML_DUMP_H__
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00027 #include "package.h"
00028 #include "repomd.h"
00029
00064 #define CR_XML_COMMON_NS "http://linux.duke.edu/metadata/common"
00065
00066 #define CR_XML_FILELISTS_NS "http://linux.duke.edu/metadata/filelists"
00067
00068 #define CR_XML_OTHER_NS "http://linux.duke.edu/metadata/other"
00069
00070 #define CR_XML_REPOMD_NS "http://linux.duke.edu/metadata/repo"
00071
00072 #define CR_XML_RPM_NS "http://linux.duke.edu/metadata/rpm"
00073
00074
00077 struct cr_XmlStruct {
00078 char *primary;
00079 char *filelists;
00080 char *other;
00081 };
00082
00085 void cr_xml_dump_init();
00086
00089 void cr_xml_dump_cleanup();
00090
00096 char *cr_xml_dump_primary(cr_Package *package, GError **err);
00097
00103 char *cr_xml_dump_filelists(cr_Package *package, GError **err);
00104
00110 char *cr_xml_dump_other(cr_Package *package, GError **err);
00111
00117 struct cr_XmlStruct cr_xml_dump(cr_Package *package, GError **err);
00118
00124 char *cr_xml_dump_repomd(cr_Repomd *repomd, GError **err);
00125
00133 void cr_latin1_to_utf8(const unsigned char *in, unsigned char *out);
00134
00137 #ifdef __cplusplus
00138 }
00139 #endif
00140
00141 #endif