summaryrefslogtreecommitdiffstats
path: root/src/device-bridge.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2019-01-05 22:06:45 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2019-01-05 22:06:45 +0100
commitdaa68c4b2de9814b8331e7b9079d5fc49bee35c1 (patch)
tree4f82de8a19abf7b6a0c9e6f511ac23995d9d5851 /src/device-bridge.c
parent9e059f898ae1b0528cdde553fd51c661901e283a (diff)
downloadneco-daa68c4b2de9814b8331e7b9079d5fc49bee35c1.tar
neco-daa68c4b2de9814b8331e7b9079d5fc49bee35c1.zip
Add first parts of interface config handling
Diffstat (limited to 'src/device-bridge.c')
-rw-r--r--src/device-bridge.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/device-bridge.c b/src/device-bridge.c
new file mode 100644
index 0000000..f973dbf
--- /dev/null
+++ b/src/device-bridge.c
@@ -0,0 +1,15 @@
+#include "device.h"
+
+static device_t * bridge_process_config(const char *name, const ini_file_t *config) {
+ printf("Bridge: %s\n", name);
+ return NULL;
+}
+
+device_type_t device_type_bridge = {
+ .process_config = bridge_process_config,
+};
+
+__attribute__((constructor))
+static void bridge_constructor(void) {
+ register_device_type("bridge", &device_type_bridge);
+}