createrepo_c library 0.20.1
C library for metadata manipulation
Loading...
Searching...
No Matches
xml_dump.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_XML_DUMP_H__
21#define __C_CREATEREPOLIB_XML_DUMP_H__
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <glib.h>
28#include "deltarpms.h"
29#include "package.h"
30#include "repomd.h"
31#include "updateinfo.h"
32
66#define CR_XML_COMMON_NS "http://linux.duke.edu/metadata/common"
68#define CR_XML_FILELISTS_NS "http://linux.duke.edu/metadata/filelists"
70#define CR_XML_OTHER_NS "http://linux.duke.edu/metadata/other"
72#define CR_XML_REPOMD_NS "http://linux.duke.edu/metadata/repo"
74#define CR_XML_RPM_NS "http://linux.duke.edu/metadata/rpm"
75
76
80 char *primary;
81 char *filelists;
82 char *other;
83};
84
88
92
98char *cr_xml_dump_primary(cr_Package *package, GError **err);
99
105char *cr_xml_dump_filelists(cr_Package *package, GError **err);
106
112char *cr_xml_dump_other(cr_Package *package, GError **err);
113
119struct cr_XmlStruct cr_xml_dump(cr_Package *package, GError **err);
120
126char *cr_xml_dump_repomd(cr_Repomd *repomd, GError **err);
127
133char *cr_xml_dump_updateinfo(cr_UpdateInfo *updateinfo, GError **err);
134
141
147char *cr_xml_dump_deltapackage(cr_DeltaPackage *dpkg, GError **err);
148
158void cr_latin1_to_utf8(const unsigned char *in,
159 unsigned char *out) __attribute__ ((hot));
160
168gboolean cr_hascontrollchars(const unsigned char *str);
169
176gchar *cr_prepend_protocol(const gchar *url);
177
185
193
196#ifdef __cplusplus
197}
198#endif
199
200#endif /* __C_CREATEREPOLIB_XML_DUMP_H__ */
char * cr_xml_dump_updateinfo(cr_UpdateInfo *updateinfo, GError **err)
gchar * cr_prepend_protocol(const gchar *url)
gboolean cr_GSList_of_cr_Dependency_contains_forbidden_control_chars(GSList *deps)
gboolean cr_Package_contains_forbidden_control_chars(cr_Package *pkg)
void cr_xml_dump_cleanup()
char * cr_xml_dump_other(cr_Package *package, GError **err)
char * cr_xml_dump_repomd(cr_Repomd *repomd, GError **err)
void cr_latin1_to_utf8(const unsigned char *in, unsigned char *out) __attribute__((hot))
void cr_xml_dump_init()
char * cr_xml_dump_primary(cr_Package *package, GError **err)
gboolean cr_hascontrollchars(const unsigned char *str)
char * cr_xml_dump_deltapackage(cr_DeltaPackage *dpkg, GError **err)
char * cr_xml_dump_updaterecord(cr_UpdateRecord *rec, GError **err)
char * cr_xml_dump_filelists(cr_Package *package, GError **err)
struct cr_XmlStruct cr_xml_dump(cr_Package *package, GError **err)
char * primary
Definition: xml_dump.h:80
char * filelists
Definition: xml_dump.h:81
char * other
Definition: xml_dump.h:82