createrepo_c library
1.2.3
C library for metadata manipulation
Loading...
Searching...
No Matches
parsehdr.h
1
/* createrepo_c - Library of routines for manipulation with repodata
2
* Copyright (C) 2012 Tomas Mlcoch
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
* USA.
18
*/
19
20
#ifndef __C_CREATEREPOLIB_PARSEHDR_H__
21
#define __C_CREATEREPOLIB_PARSEHDR_H__
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#include <glib.h>
28
#include <rpm/rpmtypes.h>
29
#include "package.h"
30
35
38
typedef
enum
{
39
CR_HDRR_NONE = (1 << 0),
40
CR_HDRR_LOADHDRID
= (1 << 1),
41
CR_HDRR_LOADSIGNATURES
= (1 << 2),
42
CR_HDRR_NOFILEDIGESTS
= (1 << 3),
43
CR_HDRR_ALL
= CR_HDRR_NONE |
44
CR_HDRR_LOADHDRID
|
45
CR_HDRR_LOADSIGNATURES
|
46
CR_HDRR_NOFILEDIGESTS
,
47
}
cr_HeaderReadingFlags
;
48
57
cr_Package
*
cr_package_from_header
(Header hdr,
58
int
changelog_limit,
59
cr_HeaderReadingFlags
flags,
60
GError **err);
61
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
/* __C_CREATEREPOLIB_PARSEHDR_H__ */
cr_HeaderReadingFlags
cr_HeaderReadingFlags
Definition
parsehdr.h:38
cr_package_from_header
cr_Package * cr_package_from_header(Header hdr, int changelog_limit, cr_HeaderReadingFlags flags, GError **err)
CR_HDRR_LOADHDRID
@ CR_HDRR_LOADHDRID
Definition
parsehdr.h:40
CR_HDRR_NOFILEDIGESTS
@ CR_HDRR_NOFILEDIGESTS
Definition
parsehdr.h:42
CR_HDRR_ALL
@ CR_HDRR_ALL
Definition
parsehdr.h:43
CR_HDRR_LOADSIGNATURES
@ CR_HDRR_LOADSIGNATURES
Definition
parsehdr.h:41
cr_Package
Definition
package.h:84
src
parsehdr.h
Generated by
1.16.1