fix trivial installable requires handling [bnc#795267]
[platform/upstream/libsolv.git] / src / selection.h
1 /*
2  * Copyright (c) 2012, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 /*
9  * selection.h
10  * 
11  */
12
13 #ifndef LIBSOLV_SELECTION_H
14 #define LIBSOLV_SELECTION_H
15
16 #include "pool.h"
17
18 #define SELECTION_NAME                  (1 << 0)
19 #define SELECTION_PROVIDES              (1 << 1)
20 #define SELECTION_FILELIST              (1 << 2)
21 #define SELECTION_CANON                 (1 << 3)
22 #define SELECTION_DOTARCH               (1 << 4)
23 #define SELECTION_REL                   (1 << 5)
24
25 #define SELECTION_INSTALLED_ONLY        (1 << 8)
26 #define SELECTION_GLOB                  (1 << 9)
27 #define SELECTION_FLAT                  (1 << 10)
28 #define SELECTION_NOCASE                (1 << 11)
29 #define SELECTION_SOURCE_ONLY           (1 << 12)
30 #define SELECTION_WITH_SOURCE           (1 << 13)
31
32 extern int  selection_make(Pool *pool, Queue *selection, const char *name, int flags);
33 extern void selection_filter(Pool *pool, Queue *sel1, Queue *sel2);
34 extern void selection_add(Pool *pool, Queue *sel1, Queue *sel2);
35 extern void selection_solvables(Pool *pool, Queue *selection, Queue *pkgs);
36
37 #endif