- add a license
[platform/upstream/libsolv.git] / src / solvable.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  * solvable.h
10  * 
11  * A solvable represents an object with name-epoch:version-release.arch and dependencies
12  */
13
14 #ifndef SOLVABLE_H
15 #define SOLVABLE_H
16
17 #include "pooltypes.h"
18 #include "repo.h"
19
20 typedef struct _Solvable {
21   Id name;
22   Id arch;
23   Id evr;                       /* epoch:version-release */
24   Id vendor;
25
26   Repo *repo;           /* repo we belong to */
27
28   /* dependencies are offsets into idarray of repo */
29   Offset provides;                      /* terminated with Id 0 */
30   Offset obsoletes;
31   Offset conflicts;
32
33   Offset requires;
34   Offset recommends;
35   Offset suggests;
36
37   Offset supplements;
38   Offset enhances;
39
40   Offset freshens;
41 } Solvable;
42
43 #endif /* SOLVABLE_H */