use SATSOLVER_ prefix in include guards
[platform/upstream/libsolv.git] / src / poolid.h
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  * poolid.h
10  * 
11  */
12
13 #ifndef SATSOLVER_POOLID_H
14 #define SATSOLVER_POOLID_H
15
16 #include "pooltypes.h"
17 #include "hash.h"
18
19 //-----------------------------------------------
20 // Id's with relation
21
22 typedef struct _Reldep {
23   Id name;              // "package"
24   Id evr;               // "0:42-3"
25   int flags;            // operation/relation, see REL_x below
26 } Reldep;
27
28 extern Id str2id(Pool *pool, const char *, int);
29 extern Id rel2id(Pool *pool, Id, Id, int, int);
30 extern const char *id2str(Pool *pool, Id);
31 extern const char *dep2str(Pool *pool, Id);
32 extern const char *id2rel(Pool *pool, Id);
33 extern const char *id2evr(Pool *pool, Id);
34
35 extern void pool_shrink_strings(Pool *pool);
36 extern void pool_shrink_rels(Pool *pool);
37 extern void pool_freeidhashes(Pool *pool);
38
39 #endif /* SATSOLVER_POOLID_H */