@@ -115,12 +115,8 @@ const std::vector<fendpoint> funcs = {
115
115
116
116
// Section
117
117
{ " Section::describe" , nixsection::describe },
118
- { " Section::link" , nixsection::link },
119
- { " Section::parent" , nixsection::parent },
120
118
{ " Section::hasSection" , nixsection::has_section },
121
- { " Section::openSection" , nixsection::open_section },
122
119
{ " Section::listSections" , nixsection::list_sections },
123
- { " Section::sections" , nixsection::sections },
124
120
{ " Section::hasProperty" , nixsection::has_property },
125
121
{ " Section::listProperties" , nixsection::list_properties }
126
122
};
@@ -208,6 +204,12 @@ void mexFunction(int nlhs,
208
204
.reg (" openFeature" , GETBYSTR (nix::Feature, nix::MultiTag, getFeature))
209
205
.reg (" openSource" , GETBYSTR (nix::Source, nix::MultiTag, getSource));
210
206
207
+ classdef<nix::Section>(" Section" , methods)
208
+ .reg (" sections" , &nix::Section::sections)
209
+ .reg (" openSection" , GETBYSTR (nix::Section, nix::Section, getSection))
210
+ .reg (" link" , GETCONTENT (nix::Section, nix::Section, link))
211
+ .reg (" parent" , GETCONTENT (nix::Section, nix::Section, parent));
212
+
211
213
mexAtExit (on_exit);
212
214
});
213
215
0 commit comments