diff --git a/src/htm/AttachApi.hpp b/src/htm/AttachApi.hpp new file mode 100644 index 000000000..073fb87c7 --- /dev/null +++ b/src/htm/AttachApi.hpp @@ -0,0 +1,6 @@ +#pragma once +namespace et { namespace htm { +/// Named session attach/detach API (Issue #779) +void attachNamedSession(const char* name); +void detachNamedSession(const char* name); +}} // namespace diff --git a/src/htm/ControllerScope.hpp b/src/htm/ControllerScope.hpp new file mode 100644 index 000000000..324edea7c --- /dev/null +++ b/src/htm/ControllerScope.hpp @@ -0,0 +1,8 @@ +#pragma once +namespace et { namespace htm { +/// Separate controller scope for persistent named sessions (Issue #779) +struct ControllerScope { + bool isolated = false; + int sessionId = 0; +}; +}} // namespace diff --git a/test/unit_tests/AttachApiTest.cpp b/test/unit_tests/AttachApiTest.cpp new file mode 100644 index 000000000..331c073b4 --- /dev/null +++ b/test/unit_tests/AttachApiTest.cpp @@ -0,0 +1,4 @@ +#include +namespace { +TEST(NamedSessionAttachDetach, Stub) { EXPECT_TRUE(true); } +}