Skip to content
Snippets Groups Projects
Commit e1ed705c authored by Philipp Spilger's avatar Philipp Spilger
Browse files

feat: Add unset_quiggeldy_env function

Change-Id: I7e76ff48ca075643ad14e2a9f530146d9b7e6a02
parent 8549be5c
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,12 @@ namespace hxcomm::vx {
*/
std::tuple<pid_t, hxcomm::port_t> launch_quiggeldy_locally_from_env() SYMBOL_VISIBLE;
/**
* Unset environment variables of quiggeldy.
*/
void unset_quiggeldy_env() SYMBOL_VISIBLE;
#ifdef WITH_HXCOMM_HOSTARQ
RRWR_GENERATE_UTILITIES(
::hxcomm::vx::QuiggeldyWorker<ARQConnection>, quiggeldy_arq, ::hxcomm::vx::I_HXCommQuiggeldyVX)
......
......@@ -11,6 +11,7 @@ GENPYBIND_MANUAL({
parent.def("terminate", &::hxcomm::terminate);
parent.def(
"launch_quiggeldy_locally_from_env", &::hxcomm::vx::launch_quiggeldy_locally_from_env);
parent.def("unset_quiggeldy_env", &::hxcomm::vx::unset_quiggeldy_env);
})
} // namespace pyhxcomm::vx
......@@ -42,4 +42,12 @@ std::tuple<pid_t, hxcomm::port_t> launch_quiggeldy_locally_from_env()
return std::make_tuple(pid, port);
}
void unset_quiggeldy_env()
{
unsetenv(vision_quiggeldy_enabled_env_name);
unsetenv(vision_quiggeldy_ip_env_name);
unsetenv(vision_quiggeldy_port_env_name);
}
} // namespace hxcomm::vx
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment