Librepo library
1.7.7
C library for downloading linux repository metadata and packages
Main Page
Modules
Data Structures
Files
File List
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
repomd.h
1
/* librepo - A library providing (libcURL like) API to downloading repository
2
* Copyright (C) 2012 Tomas Mlcoch
3
*
4
* Licensed under the GNU Lesser General Public License Version 2.1
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef LR_REPOMD_H
22
#define LR_REPOMD_H
23
24
#include <glib.h>
25
26
#include "xmlparser.h"
27
#include "types.h"
28
29
G_BEGIN_DECLS
30
37
typedef
struct
{
38
char
*
cpeid
;
39
char
*
tag
;
40
}
LrYumDistroTag
;
41
43
typedef
struct
{
44
char
*
type
;
45
char
*
location_href
;
46
char
*
location_base
;
47
char
*
checksum
;
48
char
*
checksum_type
;
49
char
*
checksum_open
;
50
char
*
checksum_open_type
;
51
gint64
timestamp
;
52
gint64
size
;
53
gint64
size_open
;
54
int
db_version
;
56
GStringChunk *
chunk
;
57
}
LrYumRepoMdRecord
;
58
60
typedef
struct
{
61
char
*
revision
;
62
char
*
repoid
;
63
char
*
repoid_type
;
64
GSList *
repo_tags
;
65
GSList *
content_tags
;
66
GSList *
distro_tags
;
67
GSList *
records
;
69
GStringChunk *
chunk
;
72
}
LrYumRepoMd
;
73
77
LrYumRepoMd
*
78
lr_yum_repomd_init
();
79
83
void
84
lr_yum_repomd_free
(
LrYumRepoMd
*repomd);
85
94
gboolean
95
lr_yum_repomd_parse_file
(
LrYumRepoMd
*repomd,
96
int
fd,
97
LrXmlParserWarningCb
warningcb,
98
void
*warningcb_data,
99
GError **err);
100
106
LrYumRepoMdRecord
*
107
lr_yum_repomd_get_record
(
LrYumRepoMd
*repomd,
108
const
char
*type);
109
115
gint64
116
lr_yum_repomd_get_highest_timestamp
(
LrYumRepoMd
*repomd);
117
120
G_END_DECLS
121
122
#endif
LrYumRepoMdRecord::checksum
char * checksum
Definition:
repomd.h:47
LrYumRepoMd::repoid_type
char * repoid_type
Definition:
repomd.h:63
LrYumRepoMd::distro_tags
GSList * distro_tags
Definition:
repomd.h:66
LrYumRepoMdRecord::chunk
GStringChunk * chunk
Definition:
repomd.h:56
lr_yum_repomd_get_highest_timestamp
gint64 lr_yum_repomd_get_highest_timestamp(LrYumRepoMd *repomd)
LrYumRepoMdRecord::checksum_type
char * checksum_type
Definition:
repomd.h:48
LrYumRepoMdRecord::type
char * type
Definition:
repomd.h:44
LrYumRepoMdRecord::timestamp
gint64 timestamp
Definition:
repomd.h:51
LrYumRepoMd
Definition:
repomd.h:60
LrYumRepoMd::repo_tags
GSList * repo_tags
Definition:
repomd.h:64
LrYumRepoMdRecord::db_version
int db_version
Definition:
repomd.h:54
lr_yum_repomd_parse_file
gboolean lr_yum_repomd_parse_file(LrYumRepoMd *repomd, int fd, LrXmlParserWarningCb warningcb, void *warningcb_data, GError **err)
LrYumRepoMdRecord::location_base
char * location_base
Definition:
repomd.h:46
LrYumRepoMd::revision
char * revision
Definition:
repomd.h:61
LrYumRepoMd::repoid
char * repoid
Definition:
repomd.h:62
LrYumDistroTag::cpeid
char * cpeid
Definition:
repomd.h:38
LrYumRepoMd::chunk
GStringChunk * chunk
Definition:
repomd.h:69
LrYumRepoMdRecord::size_open
gint64 size_open
Definition:
repomd.h:53
lr_yum_repomd_get_record
LrYumRepoMdRecord * lr_yum_repomd_get_record(LrYumRepoMd *repomd, const char *type)
LrXmlParserWarningCb
int(* LrXmlParserWarningCb)(LrXmlParserWarningType type, char *msg, void *cbdata, GError **err)
Definition:
xmlparser.h:57
LrYumRepoMd::content_tags
GSList * content_tags
Definition:
repomd.h:65
lr_yum_repomd_free
void lr_yum_repomd_free(LrYumRepoMd *repomd)
LrYumRepoMd::records
GSList * records
Definition:
repomd.h:67
LrYumDistroTag::tag
char * tag
Definition:
repomd.h:39
lr_yum_repomd_init
LrYumRepoMd * lr_yum_repomd_init()
LrYumRepoMdRecord::location_href
char * location_href
Definition:
repomd.h:45
LrYumRepoMdRecord
Definition:
repomd.h:43
LrYumRepoMdRecord::checksum_open_type
char * checksum_open_type
Definition:
repomd.h:50
LrYumDistroTag
Definition:
repomd.h:37
LrYumRepoMdRecord::size
gint64 size
Definition:
repomd.h:52
LrYumRepoMdRecord::checksum_open
char * checksum_open
Definition:
repomd.h:49
librepo
repomd.h
Generated on Sun Nov 16 2014 21:05:56 for Librepo library by
1.8.8