/
pooltypes.h
62 lines (48 loc) · 1.21 KB
/
pooltypes.h
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
57
58
59
60
61
62
/*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
/*
* pooltypes.h
*
*/
#ifndef LIBSOLV_POOLTYPES_H
#define LIBSOLV_POOLTYPES_H
#ifdef __cplusplus
extern "C" {
#endif
/* format version number for .solv files */
#define SOLV_VERSION_0 0
#define SOLV_VERSION_1 1
#define SOLV_VERSION_2 2
#define SOLV_VERSION_3 3
#define SOLV_VERSION_4 4
#define SOLV_VERSION_5 5
#define SOLV_VERSION_6 6
#define SOLV_VERSION_7 7
#define SOLV_VERSION_8 8
#define SOLV_VERSION_9 9
#define SOLV_FLAG_PREFIX_POOL 4
#define SOLV_FLAG_SIZE_BYTES 8
#define SOLV_FLAG_USERDATA 16
#define SOLV_FLAG_IDARRAYBLOCK 32
struct s_Stringpool;
typedef struct s_Stringpool Stringpool;
struct s_Pool;
typedef struct s_Pool Pool;
struct s_Repo;
typedef struct s_Repo Repo;
struct s_Repodata;
typedef struct s_Repodata Repodata;
struct s_Solvable;
typedef struct s_Solvable Solvable;
/* identifier for string values */
typedef int Id; /* must be signed!, since negative Id is used in solver rules to denote negation */
/* offset value, e.g. used to 'point' into the stringspace */
typedef unsigned int Offset;
#ifdef __cplusplus
}
#endif
#endif /* LIBSOLV_POOLTYPES_H */