File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -379,6 +379,16 @@ namespace
379379 }
380380} // anonymous namespace
381381
382+ static irods::error setup (irods::default_re_ctx&, const std::string& _instance_name)
383+ {
384+ return SUCCESS ();
385+ } // setup
386+
387+ static irods::error teardown (irods::default_re_ctx&, const std::string& _instance_name)
388+ {
389+ return SUCCESS ();
390+ } // teardown
391+
382392static irods::error start (irods::default_re_ctx&, const std::string& _instance_name)
383393{
384394 python_state::ts_main = nullptr ;
@@ -993,6 +1003,13 @@ extern "C" irods::pluggable_rule_engine<irods::default_re_ctx>* plugin_factory(c
9931003{
9941004 irods::pluggable_rule_engine<irods::default_re_ctx>* re =
9951005 new irods::pluggable_rule_engine<irods::default_re_ctx>(_inst_name, _context);
1006+
1007+ re->add_operation <irods::default_re_ctx&, const std::string&>(
1008+ " setup" , std::function<irods::error (irods::default_re_ctx&, const std::string&)>(setup));
1009+
1010+ re->add_operation <irods::default_re_ctx&, const std::string&>(
1011+ " teardown" , std::function<irods::error (irods::default_re_ctx&, const std::string&)>(teardown));
1012+
9961013 re->add_operation <irods::default_re_ctx&, const std::string&>(
9971014 " start" , std::function<irods::error (irods::default_re_ctx&, const std::string&)>(start));
9981015
You can’t perform that action at this time.
0 commit comments