2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
11 * A solvable represents an object with name-epoch:version-release.arch and dependencies
14 #ifndef SATSOLVER_SOLVABLE_H
15 #define SATSOLVER_SOLVABLE_H
17 #include "pooltypes.h"
23 KIND_PRODUCT = 5, /* strlen("prod:") */
24 KIND_PATCH = 6, /* strlen("patch:") */
25 KIND_SOURCE = 7, /* strlen("source:") */
26 KIND_PATTERN = 8, /* strlen("pattern:") */
27 KIND_NOSOURCE = 9, /* strlen("nosource:") */
31 extern const char *kind_prefix( solvable_kind kind );
33 typedef struct _Solvable {
34 unsigned int kind; /* one of KIND_xxx */
37 Id evr; /* epoch:version-release */
40 struct _Repo *repo; /* repo we belong to */
42 /* dependencies are offsets into idarray of repo */
43 Offset provides; /* terminated with Id 0 */
57 #endif /* SATSOLVER_SOLVABLE_H */