aboutsummaryrefslogtreecommitdiffstats
path: root/include/HandlerManager.h
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-05-08 21:20:01 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-05-08 21:20:01 -0300
commitdbad4b699e35442920baa60c13f76e95904fe317 (patch)
tree70e35b6879349a750ea5be0b02790bb8d32d00b1 /include/HandlerManager.h
parent602af97c269bdc211cc7aeb34e436152053395cc (diff)
downloadRNT-dbad4b699e35442920baa60c13f76e95904fe317.tar.gz
RNT-dbad4b699e35442920baa60c13f76e95904fe317.zip
restructure project and add readme
Diffstat (limited to 'include/HandlerManager.h')
-rw-r--r--include/HandlerManager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/HandlerManager.h b/include/HandlerManager.h
new file mode 100644
index 0000000..d126680
--- /dev/null
+++ b/include/HandlerManager.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "Api.h"
+#include "ObjectManager.h"
+
+#include <string>
+#include <vector>
+
+namespace nt
+{
+ class NT_API HandlerManager
+ {
+ public:
+ // This is supposed to represent an authorized access to a certain object in the registry
+ // This increases the handle count in the object manager
+ // We should consider adding on the object manager a vector of all the handles that refer to an object
+ struct handle {
+ ObjectManager::registry* object = nullptr;
+ void* connection_context = nullptr;
+ };
+ void DeallocateHandle(struct handle* handle);
+ struct handle Open(std::vector<std::string> object_path, void* connection_context);
+ bool Close(struct handle* handle);
+ };
+}