summaryrefslogtreecommitdiff
path: root/src/config/ConfigValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/ConfigValue.cpp')
-rw-r--r--src/config/ConfigValue.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config/ConfigValue.cpp b/src/config/ConfigValue.cpp
new file mode 100644
index 00000000..9f6cc319
--- /dev/null
+++ b/src/config/ConfigValue.cpp
@@ -0,0 +1,15 @@
+#include "ConfigValue.hpp"
+#include "ConfigManager.hpp"
+#include "../macros.hpp"
+
+void local__configValuePopulate(void* const** p, const std::string& val) {
+ const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val);
+
+ *p = PVHYPRLANG->getDataStaticPtr();
+}
+
+std::type_index local__configValueTypeIdx(const std::string& val) {
+ const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val);
+ const auto ANY = PVHYPRLANG->getValue();
+ return std::type_index(ANY.type());
+} \ No newline at end of file