aboutsummaryrefslogtreecommitdiff
path: root/paludis/match_package.hh
blob: c244a42f71e281ed96b399da9f90fa385da9263e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* vim: set sw=4 sts=4 et foldmethod=syntax : */

#ifndef PALUDIS_GUARD_PALUDIS_MATCH_PACKAGE_HH
#define PALUDIS_GUARD_PALUDIS_MATCH_PACKAGE_HH 1

/** \file
 * Declare the match_package function.
 *
 * Do not merge this file into dep_atom. It will cause all sorts of horrible
 * circular dependency issues. Avoid including this file in headers if at all
 * possible.
 *
 * \ingroup grpmatchpackage
 */

#include <paludis/dep_atom.hh>
#include <paludis/environment.hh>
#include <paludis/util/attributes.hh>

namespace paludis
{
    /**
     * Return whether the specified atom matches the specified target.
     *
     * \ingroup grpmatchpackage
     */
    bool match_package(
            const Environment & env,
            const PackageDepAtom & atom,
            const PackageDatabaseEntry & target);
}

#endif