From 83a9de58c2d34aa5acafc9bc5fef04883a37d128 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 16 Sep 2020 12:39:42 -0700 Subject: [PATCH] ofono: convert to module --- src/ofono.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ofono.c b/src/ofono.c index 186dac71..3855edb3 100644 --- a/src/ofono.c +++ b/src/ofono.c @@ -30,11 +30,12 @@ #include #include -#include #include #include "src/dbus.h" #include "src/simauth.h" +#include "src/module.h" +#include "src/iwd.h" /* * This plugin takes care of all the communication with ofono in order to @@ -783,5 +784,5 @@ static void ofono_exit(void) l_dbus_remove_watch(dbus, ofono_watch); } -L_PLUGIN_DEFINE(__iwd_builtin_ofono, ofono, "oFono plugin", "1.0", - L_PLUGIN_PRIORITY_DEFAULT, ofono_init, ofono_exit) +IWD_MODULE(ofono, ofono_init, ofono_exit); +IWD_MODULE_DEPENDS(ofono, simauth);