aboutsummaryrefslogtreecommitdiff
path: root/python/dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/dep_spec.cc')
-rw-r--r--python/dep_spec.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/dep_spec.cc b/python/dep_spec.cc
index a631f58f2..a4273074a 100644
--- a/python/dep_spec.cc
+++ b/python/dep_spec.cc
@@ -686,6 +686,16 @@ struct AllowedTypes<PlainTextSpecTree>
};
template<>
+struct AllowedTypes<RequiredUseSpecTree>
+{
+ AllowedTypes(const AllDepSpec &) {};
+ AllowedTypes(const AnyDepSpec &) {};
+ AllowedTypes(const ExactlyOneDepSpec &) {};
+ AllowedTypes(const ConditionalDepSpec &) {};
+ AllowedTypes(const PlainTextDepSpec &) {};
+};
+
+template<>
struct AllowedTypes<DependencySpecTree>
{
AllowedTypes(const AllDepSpec &) {};
@@ -1089,6 +1099,7 @@ void expose_dep_spec()
RegisterSpecTreeToPython<DependencySpecTree>();
RegisterSpecTreeToPython<ProvideSpecTree>();
RegisterSpecTreeToPython<PlainTextSpecTree>();
+ RegisterSpecTreeToPython<RequiredUseSpecTree>();
RegisterSpecTreeToPython<FetchableURISpecTree>();
RegisterSpecTreeToPython<SimpleURISpecTree>();
RegisterSpecTreeToPython<LicenseSpecTree>();
@@ -1097,6 +1108,7 @@ void expose_dep_spec()
RegisterSpecTreeSharedPtrFromPython<DependencySpecTree>();
RegisterSpecTreeSharedPtrFromPython<ProvideSpecTree>();
RegisterSpecTreeSharedPtrFromPython<PlainTextSpecTree>();
+ RegisterSpecTreeSharedPtrFromPython<RequiredUseSpecTree>();
RegisterSpecTreeSharedPtrFromPython<FetchableURISpecTree>();
RegisterSpecTreeSharedPtrFromPython<SimpleURISpecTree>();
RegisterSpecTreeSharedPtrFromPython<LicenseSpecTree>();