diff options
Diffstat (limited to 'core/device.cpp')
-rw-r--r-- | core/device.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/device.cpp b/core/device.cpp index 764531414..3d3a476d9 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -416,3 +416,13 @@ extern "C" const char *device_get_nickname(const struct device *dev) { return dev ? dev->nickName.c_str() : NULL; } + +extern "C" struct device_table *alloc_device_table() +{ + return new struct device_table; +} + +extern "C" void free_device_table(struct device_table *devices) +{ + delete devices; +} |