Librepo library  1.7.13
C library for downloading linux repository metadata and packages
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules
yum.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_YUMREPO_H__
22 #define __LR_YUMREPO_H__
23 
24 #include <glib.h>
25 
26 #include "rcodes.h"
27 #include "result.h"
28 
29 G_BEGIN_DECLS
30 
37 typedef struct {
38  char *type;
39  char *path;
41 
43 typedef struct {
44  GSList *paths;
45  char *repomd;
46  char *url;
47  char *destdir;
48  char *signature;
51  char *mirrorlist;
52  char *metalink;
53 } LrYumRepo;
54 
58 LrYumRepo *
60 
64 void
66 
72 const char *
73 lr_yum_repo_path(LrYumRepo *repo, const char *type);
74 
77 G_END_DECLS
78 
79 #endif
char * url
Definition: yum.h:46
GSList * paths
Definition: yum.h:44
char * type
Definition: yum.h:38
void lr_yum_repo_free(LrYumRepo *repo)
LrYumRepo * lr_yum_repo_init()
char * metalink
Definition: yum.h:52
char * path
Definition: yum.h:39
char * signature
Definition: yum.h:48
char * mirrorlist
Definition: yum.h:51
char * destdir
Definition: yum.h:47
const char * lr_yum_repo_path(LrYumRepo *repo, const char *type)
Definition: yum.h:43
char * repomd
Definition: yum.h:45