summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorArne Kappen <arne.kappen@hhi.fraunhofer.de>2020-12-09 16:01:24 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-03-31 01:19:55 +0100
commit80bf9d74884693cf74914edafe2a0b5e5ed45ada (patch)
tree7a20c555ca6ff463a4e0ad75300b91dcfff597ac /main.c
parentb22f83d752d4d53e120bbbcb089ec2d980cbd957 (diff)
downloadnetifd-80bf9d74884693cf74914edafe2a0b5e5ed45ada.tar.gz
extdev: add support for external device handlers
This allows to integrate external daemons that configure network devices with netifd. At startup, netifd generates device handler stubs from descriptions in /lib/netifd/extdev-config via the mechanism in handler.c. These are then added to the list of device handlers. Device handlers stubs act as relays forwarding calls against the device handler interface to the external daemon. Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index c173cef..804424e 100644
--- a/main.c
+++ b/main.c
@@ -26,6 +26,7 @@
#include "interface.h"
#include "wireless.h"
#include "proto.h"
+#include "extdev.h"
unsigned int debug_mask = 0;
const char *main_path = DEFAULT_MAIN_PATH;
@@ -325,6 +326,7 @@ int main(int argc, char **argv)
}
proto_shell_init();
+ extdev_init();
wireless_init();
if (system_init()) {