X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fselection.h;h=fc2b15d7ea251299cbb815d7813d30aca0be242f;hb=a52836206e91b14de83ffa1f9cce7194066f314f;hp=2966b991e359c504b1a2f9d038013d141c5756ed;hpb=68c7ba0920556da5d97315f8077b8d996236d0ba;p=platform%2Fupstream%2Flibsolv.git diff --git a/src/selection.h b/src/selection.h index 2966b99..fc2b15d 100644 --- a/src/selection.h +++ b/src/selection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Novell Inc. + * Copyright (c) 2012, Novell Inc. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information @@ -7,7 +7,7 @@ /* * selection.h - * + * */ #ifndef LIBSOLV_SELECTION_H @@ -15,18 +15,36 @@ #include "pool.h" +#ifdef __cplusplus +extern "C" { +#endif + #define SELECTION_NAME (1 << 0) #define SELECTION_PROVIDES (1 << 1) #define SELECTION_FILELIST (1 << 2) +#define SELECTION_CANON (1 << 3) +#define SELECTION_DOTARCH (1 << 4) +#define SELECTION_REL (1 << 5) #define SELECTION_INSTALLED_ONLY (1 << 8) #define SELECTION_GLOB (1 << 9) #define SELECTION_FLAT (1 << 10) #define SELECTION_NOCASE (1 << 11) +#define SELECTION_SOURCE_ONLY (1 << 12) +#define SELECTION_WITH_SOURCE (1 << 13) +#define SELECTION_SKIP_KIND (1 << 14) + +extern int selection_make(Pool *pool, Queue *selection, const char *name, int flags); +extern int selection_make_matchdeps(Pool *pool, Queue *selection, const char *name, int flags, int keyname, int marker); -extern int selection_make(Pool *pool, Queue *selection, const char *name, int flags); -extern void selection_limit(Pool *pool, Queue *sel1, Queue *sel2); +extern void selection_filter(Pool *pool, Queue *sel1, Queue *sel2); extern void selection_add(Pool *pool, Queue *sel1, Queue *sel2); extern void selection_solvables(Pool *pool, Queue *selection, Queue *pkgs); +extern const char *pool_selection2str(Pool *pool, Queue *selection, Id flagmask); + +#ifdef __cplusplus +} +#endif + #endif