aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/dep_spec.cc12
-rw-r--r--python/nice_names.nn1
2 files changed, 13 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>();
diff --git a/python/nice_names.nn b/python/nice_names.nn
index 5ef30e670..8473eedcc 100644
--- a/python/nice_names.nn
+++ b/python/nice_names.nn
@@ -43,6 +43,7 @@ make_nn_NiceNames() {
name "SimpleURISpecTree"
name "ProvideSpecTree"
name "PlainTextSpecTree"
+ name "RequiredUseSpecTree"
name "DependencySpecTree"
name "SetSpecTree"