createrepo_c library
0.1.17
C library for metadata manipulation
Hlavní stránka
Moduly
Třídy
Soubory
Seznam souborů
Vše
Třídy
Funkce
Proměnné
Definice typů
Výčty
Hodnoty výčtu
Skupiny
Stránky
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
24
extern
"C"
{
25
#endif
26
27
#include "package.h"
28
59
#define CR_XML_COMMON_NS "http://linux.duke.edu/metadata/common"
60
61
#define CR_XML_FILELISTS_NS "http://linux.duke.edu/metadata/filelists"
62
63
#define CR_XML_OTHER_NS "http://linux.duke.edu/metadata/other"
64
65
#define CR_XML_RPM_NS "http://linux.duke.edu/metadata/rpm"
66
67
70
struct
cr_XmlStruct
{
71
char
*
primary
;
72
char
*
filelists
;
73
char
*
other
;
74
};
75
78
void
cr_xml_dump_init
();
79
82
void
cr_xml_dump_cleanup
();
83
88
char
*
cr_xml_dump_primary
(
cr_Package
*package);
89
94
char
*
cr_xml_dump_filelists
(
cr_Package
*package);
95
100
char
*
cr_xml_dump_other
(
cr_Package
*package);
101
106
struct
cr_XmlStruct
cr_xml_dump
(
cr_Package
*package);
107
113
void
cr_latin1_to_utf8
(
const
unsigned
char
*in,
unsigned
char
*out);
114
117
#ifdef __cplusplus
118
}
119
#endif
120
121
#endif
/* __C_CREATEREPOLIB_XML_DUMP_H__ */
src
xml_dump.h
Generováno ne 7. dub 2013 10.41:01 pro projekt createrepo_c library programem
1.8.3.1