blob: 0899b4b2602fee385c85f318524a76b37d2bf908 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/* createrepo_c - Library of routines for manipulation with repodata
* Copyright (C) 2013 Tomas Mlcoch
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef __C_CREATEREPOLIB_METADATA_INTERNAL_H__
#define __C_CREATEREPOLIB_METADATA_INTERNAL_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef WITH_LIBMODULEMD
#include <modulemd.h>
#include "load_metadata.h"
/** Return module metadata from a cr_Metadata
* @param md cr_Metadata object.
* @return Pointer to internal ModulemdModuleIndex.
*/
ModulemdModuleIndex *cr_metadata_modulemd(cr_Metadata *md);
/** Load (compressed) module metadata file into moduleindex,
* compression is autodetected.
* @param moduleindex memory adress where to store the
* created pointer to ModulemdModuleIndex
* @param path_to_md path to module metadata
* @return cr_Error code
*/
int
cr_metadata_load_modulemd(ModulemdModuleIndex **moduleindex,
gchar *path_to_md,
GError **err);
#endif /* WITH_LIBMODULEMD */
#ifdef __cplusplus
}
#endif
#endif /* __C_CREATEREPOLIB_METADATA_INTERNAL_H__ */
|