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
00063 #define CR_XML_COMMON_NS "http://linux.duke.edu/metadata/common"
00064
00065 #define CR_XML_FILELISTS_NS "http://linux.duke.edu/metadata/filelists"
00066
00067 #define CR_XML_OTHER_NS "http://linux.duke.edu/metadata/other"
00068
00069 #define CR_XML_REPOMD_NS "http://linux.duke.edu/metadata/repo"
00070
00071 #define CR_XML_RPM_NS "http://linux.duke.edu/metadata/rpm"
00072
00073
00076 struct cr_XmlStruct {
00077 char *primary;
00078 char *filelists;
00079 char *other;
00080 };
00081
00084 void cr_xml_dump_init();
00085
00088 void cr_xml_dump_cleanup();
00089
00095 char *cr_xml_dump_primary(cr_Package *package, GError **err);
00096
00102 char *cr_xml_dump_filelists(cr_Package *package, GError **err);
00103
00109 char *cr_xml_dump_other(cr_Package *package, GError **err);
00110
00116 struct cr_XmlStruct cr_xml_dump(cr_Package *package, GError **err);
00117
00123 char *cr_xml_dump_repomd(cr_Repomd *repomd, GError **err);
00124
00134 void cr_latin1_to_utf8(const unsigned char *in,
00135 unsigned char *out) __attribute__ ((hot));
00136
00144 gboolean hascontrollchars(const unsigned char *str);
00145
00148 #ifdef __cplusplus
00149 }
00150 #endif
00151
00152 #endif