Librepo library
1.12.1
C library for downloading linux repository metadata and packages
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
char
*
header_checksum
;
52
char
*
header_checksum_type
;
53
gint64
timestamp
;
54
gint64
size
;
55
gint64
size_open
;
56
gint64
size_header
;
57
int
db_version
;
59
GStringChunk *
chunk
;
60
}
LrYumRepoMdRecord
;
61
63
typedef
struct
{
64
char
*
revision
;
65
char
*
repoid
;
66
char
*
repoid_type
;
67
GSList *
repo_tags
;
68
GSList *
content_tags
;
69
GSList *
distro_tags
;
70
GSList *
records
;
72
GStringChunk *
chunk
;
75
}
LrYumRepoMd
;
76
80
LrYumRepoMd
*
81
lr_yum_repomd_init
(
void
);
82
86
void
87
lr_yum_repomd_free
(
LrYumRepoMd
*repomd);
88
97
gboolean
98
lr_yum_repomd_parse_file
(
LrYumRepoMd
*repomd,
99
int
fd,
100
LrXmlParserWarningCb
warningcb,
101
void
*warningcb_data,
102
GError **err);
103
109
LrYumRepoMdRecord
*
110
lr_yum_repomd_get_record
(
LrYumRepoMd
*repomd,
111
const
char
*type);
112
119
gint64
120
lr_yum_repomd_get_highest_timestamp
(
LrYumRepoMd
*repomd, GError **err);
121
124
G_END_DECLS
125
126
#endif
LrYumDistroTag::tag
char * tag
Definition:
repomd.h:39
LrYumRepoMdRecord::chunk
GStringChunk * chunk
Definition:
repomd.h:59
LrYumRepoMdRecord::type
char * type
Definition:
repomd.h:44
LrYumRepoMdRecord::checksum
char * checksum
Definition:
repomd.h:47
LrYumRepoMdRecord::db_version
int db_version
Definition:
repomd.h:57
LrYumRepoMd::records
GSList * records
Definition:
repomd.h:70
LrYumDistroTag::cpeid
char * cpeid
Definition:
repomd.h:38
LrYumRepoMdRecord::location_base
char * location_base
Definition:
repomd.h:46
LrYumRepoMdRecord::checksum_type
char * checksum_type
Definition:
repomd.h:48
LrYumRepoMdRecord::header_checksum_type
char * header_checksum_type
Definition:
repomd.h:52
LrYumRepoMdRecord::timestamp
gint64 timestamp
Definition:
repomd.h:53
lr_yum_repomd_parse_file
gboolean lr_yum_repomd_parse_file(LrYumRepoMd *repomd, int fd, LrXmlParserWarningCb warningcb, void *warningcb_data, GError **err)
LrYumRepoMdRecord
Definition:
repomd.h:43
lr_yum_repomd_init
LrYumRepoMd * lr_yum_repomd_init(void)
lr_yum_repomd_get_record
LrYumRepoMdRecord * lr_yum_repomd_get_record(LrYumRepoMd *repomd, const char *type)
LrYumRepoMd::repoid_type
char * repoid_type
Definition:
repomd.h:66
LrYumRepoMd::distro_tags
GSList * distro_tags
Definition:
repomd.h:69
LrYumRepoMd
Definition:
repomd.h:63
LrYumRepoMdRecord::size_header
gint64 size_header
Definition:
repomd.h:56
LrYumRepoMdRecord::size_open
gint64 size_open
Definition:
repomd.h:55
LrYumDistroTag
Definition:
repomd.h:37
LrXmlParserWarningCb
int(* LrXmlParserWarningCb)(LrXmlParserWarningType type, char *msg, void *cbdata, GError **err)
Definition:
xmlparser.h:57
LrYumRepoMd::repo_tags
GSList * repo_tags
Definition:
repomd.h:67
LrYumRepoMdRecord::checksum_open_type
char * checksum_open_type
Definition:
repomd.h:50
LrYumRepoMdRecord::location_href
char * location_href
Definition:
repomd.h:45
LrYumRepoMdRecord::checksum_open
char * checksum_open
Definition:
repomd.h:49
LrYumRepoMd::chunk
GStringChunk * chunk
Definition:
repomd.h:72
LrYumRepoMdRecord::size
gint64 size
Definition:
repomd.h:54
LrYumRepoMdRecord::header_checksum
char * header_checksum
Definition:
repomd.h:51
LrYumRepoMd::revision
char * revision
Definition:
repomd.h:64
LrYumRepoMd::repoid
char * repoid
Definition:
repomd.h:65
lr_yum_repomd_get_highest_timestamp
gint64 lr_yum_repomd_get_highest_timestamp(LrYumRepoMd *repomd, GError **err)
lr_yum_repomd_free
void lr_yum_repomd_free(LrYumRepoMd *repomd)
LrYumRepoMd::content_tags
GSList * content_tags
Definition:
repomd.h:68
librepo
repomd.h
Generated on Fri Oct 16 2020 23:46:56 for Librepo library by
1.8.20