Librepo library 1.22.1
C library for downloading linux repository metadata and packages
Loading...
Searching...
No Matches
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, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef __LR_REPOMD_H__
21#define __LR_REPOMD_H__
22
23#include <glib.h>
24
25#include <librepo/xmlparser.h>
26#include <librepo/types.h>
27
28G_BEGIN_DECLS
29
34
36typedef struct {
37 char *cpeid;
38 char *tag;
40
42typedef struct {
43 char *type;
46 char *checksum;
52 gint64 timestamp;
53 gint64 size;
54 gint64 size_open;
55 gint64 size_header;
57
58 GStringChunk *chunk;
60
62typedef struct {
63 char *revision;
64 char *repoid;
66 GSList *repo_tags;
67 GSList *content_tags;
68 GSList *distro_tags;
69 GSList *records;
70
71 GStringChunk *chunk;
75
81
85void
87
96gboolean
98 int fd,
99 LrXmlParserWarningCb warningcb,
100 void *warningcb_data,
101 GError **err);
102
110 const char *type);
111
118gint64
120
122
123G_END_DECLS
124
125#endif
gint64 lr_yum_repomd_get_highest_timestamp(LrYumRepoMd *repomd, GError **err)
gboolean lr_yum_repomd_parse_file(LrYumRepoMd *repomd, int fd, LrXmlParserWarningCb warningcb, void *warningcb_data, GError **err)
void lr_yum_repomd_free(LrYumRepoMd *repomd)
LrYumRepoMdRecord * lr_yum_repomd_get_record(LrYumRepoMd *repomd, const char *type)
LrYumRepoMd * lr_yum_repomd_init(void)
int(* LrXmlParserWarningCb)(LrXmlParserWarningType type, char *msg, void *cbdata, GError **err)
Definition xmlparser.h:56
char * tag
Definition repomd.h:38
char * cpeid
Definition repomd.h:37
GSList * records
Definition repomd.h:69
GStringChunk * chunk
Definition repomd.h:71
char * repoid_type
Definition repomd.h:65
GSList * content_tags
Definition repomd.h:67
GSList * distro_tags
Definition repomd.h:68
char * revision
Definition repomd.h:63
char * repoid
Definition repomd.h:64
GSList * repo_tags
Definition repomd.h:66
char * checksum_type
Definition repomd.h:47
char * header_checksum
Definition repomd.h:50
gint64 size_open
Definition repomd.h:54
gint64 size_header
Definition repomd.h:55
char * checksum
Definition repomd.h:46
GStringChunk * chunk
Definition repomd.h:58
char * checksum_open
Definition repomd.h:48
char * location_href
Definition repomd.h:44
char * checksum_open_type
Definition repomd.h:49
gint64 timestamp
Definition repomd.h:52
char * header_checksum_type
Definition repomd.h:51
char * location_base
Definition repomd.h:45