Files
fourdst/src-pybind/config/bindings.cpp
Emily Boudreaux 6ff4c88aa7 feat(reflection): Bring in new libconfig
This version of fourdst (v0.9.14) brings in the version libconfig which
includes reflection based config filed (v2.0.2).

This is a breaking change as any code which used versions of libconfig <
v2.0.0 will no longer function when linked against this version of
fourdst
2025-12-06 11:04:55 -05:00

18 lines
593 B
C++

#include "bindings.h"
#include <pybind11/pybind11.h>
#include "fourdst/config/config.h"
void register_config_enums(const pybind11::module_& m) {
using namespace fourdst::config;
pybind11::enum_<ConfigState>(m, "ConfigState")
.value("DEFAULT", ConfigState::DEFAULT)
.value("LOADED_FROM_FILE", ConfigState::LOADED_FROM_FILE)
.export_values();
pybind11::enum_<RootNameLoadPolicy>(m, "RootNameLoadPolicy")
.value("FROM_FILE", RootNameLoadPolicy::FROM_FILE)
.value("KEEP_CURRENT", RootNameLoadPolicy::KEEP_CURRENT)
.export_values();
}