2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
13 #ifndef SATSOLVER_POOLID_H
14 #define SATSOLVER_POOLID_H
16 #include "pooltypes.h"
19 //-----------------------------------------------
22 typedef struct _Reldep {
25 int flags; // operation/relation, see REL_x below
28 extern Id str2id(Pool *pool, const char *, int);
29 extern Id strn2id(Pool *pool, const char *, unsigned int, int);
30 extern Id rel2id(Pool *pool, Id, Id, int, int);
31 extern const char *id2str(Pool *pool, Id);
32 extern const char *dep2str(Pool *pool, Id);
33 extern const char *id2rel(Pool *pool, Id);
34 extern const char *id2evr(Pool *pool, Id);
36 extern void pool_shrink_strings(Pool *pool);
37 extern void pool_shrink_rels(Pool *pool);
38 extern void pool_freeidhashes(Pool *pool);
40 #endif /* SATSOLVER_POOLID_H */