/* vim: set sw=4 sts=4 et foldmethod=syntax : */

/*
 * Copyright (c) 2007 Piotr Jaroszyński <peper@gentoo.org>
 *
 * This file is part of the Paludis package manager. Paludis is free software;
 * you can redistribute it and/or modify it under the terms of the GNU General
 * Public License version 2, as published by the Free Software Foundation.
 *
 * Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA  02111-1307  USA
 */

#include <paludis_python.hh>

#include <paludis/mask_reasons.hh>

namespace p = paludis;
namespace pp = paludis::python;
namespace bp = boost::python;

void expose_mask_reasons()
{
    bp::enum_<p::MaskReason>
        mr("MaskReason");
    mr.value("KEYWORD", p::mr_keyword);
    mr.value("USER_MASK", p::mr_user_mask);
    mr.value("PROFILE_MASK", p::mr_profile_mask);
    mr.value("REPOSITORY_MASK", p::mr_repository_mask);
    mr.value("EAPI", p::mr_eapi);
    mr.value("BY_ASSOCIATION", p::mr_by_association);
    mr.value("CHOST", p::mr_chost);
    mr.value("BREAKS_PORTAGE", p::mr_breaks_portage);
    mr.value("INTERACTIVE", p::mr_interactive);
    mr.value("LICENSE", p::mr_license);
    mr.value("LAST", p::last_mr);

    pp::class_options<p::MaskReasons>
        mrs("MaskReasons", "MaskReason",
                "A collection of reasons for why a package is masked."
           );
}
