From 80bf9d74884693cf74914edafe2a0b5e5ed45ada Mon Sep 17 00:00:00 2001 From: Arne Kappen Date: Wed, 9 Dec 2020 16:01:24 +0100 Subject: 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 --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') 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()) { -- cgit v1.2.1