satsolver  0.17.2
pooltypes.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7 
8 /*
9  * pooltypes.h
10  *
11  */
12 
13 #ifndef SATSOLVER_POOLTYPES_H
14 #define SATSOLVER_POOLTYPES_H
15 
16 /* format version number for .solv files */
17 #define SOLV_VERSION_0 0
18 #define SOLV_VERSION_1 1
19 #define SOLV_VERSION_2 2
20 #define SOLV_VERSION_3 3
21 #define SOLV_VERSION_4 4
22 #define SOLV_VERSION_5 5
23 #define SOLV_VERSION_6 6
24 #define SOLV_VERSION_7 7
25 #define SOLV_VERSION_8 8
26 
27 /* The format of .solv files might change incompatibly, and that is described
28  by the above version number. But sometimes we also extend the emitted
29  attributes (e.g. by adding a new one for solvables, for instance patch
30  category). Consumers need to know if the .solv file they have needs to
31  be regenerated by newer converters or not (or better, if regenerating them
32  would give a different .solv file). We use this serial number for that.
33  We increase it every time we add or remove attributes (or change the
34  interpretation of them). Tools installed by the user will have their
35  version compiled in, so they can detect mismatches between .solv files
36  they see and themself. */
37 #define SOLV_CONTENT_VERSION 1
38 
39 #define SOLV_FLAG_PREFIX_POOL 4
40 
41 struct _Stringpool;
42 typedef struct _Stringpool Stringpool;
43 
44 struct _Pool;
45 typedef struct _Pool Pool;
46 
47 // identifier for string values
48 typedef int Id; /* must be signed!, since negative Id is used in solver rules to denote negation */
49 
50 // offset value, e.g. used to 'point' into the stringspace
51 typedef unsigned int Offset;
52 
53 #endif /* SATSOLVER_POOLTYPES_H */