diff options
author | Denis Kenzior <denkenz@gmail.com> | 2024-03-04 14:33:31 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-03-04 14:34:51 -0600 |
commit | 5f669d82f73c93839e695639873db1d275a6c674 (patch) | |
tree | 0373fd0e79840b66de0506442edba8519f7a356e | |
parent | 9eb530b941105a4326319d0c59c508c4ce7803a6 (diff) | |
download | ofono-5f669d82f73c93839e695639873db1d275a6c674.tar.gz |
qmimodem: Remove glib use from util.[ch]
glib use is retained by sim and sim-legacy drivers since these drivers
utilize sim related utilities that have not yet been ported to ell.
Also, sim driver uses a single glib timeout source
-rw-r--r-- | drivers/qmimodem/sim-legacy.c | 2 | ||||
-rw-r--r-- | drivers/qmimodem/sim.c | 2 | ||||
-rw-r--r-- | drivers/qmimodem/util.h | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/drivers/qmimodem/sim-legacy.c b/drivers/qmimodem/sim-legacy.c index e9ed0a9ec..fd05f219e 100644 --- a/drivers/qmimodem/sim-legacy.c +++ b/drivers/qmimodem/sim-legacy.c @@ -30,6 +30,8 @@ #include <ofono/modem.h> #include <ofono/sim.h> +#include <glib.h> + #include "qmi.h" #include "dms.h" #include "util.h" diff --git a/drivers/qmimodem/sim.c b/drivers/qmimodem/sim.c index 110af6686..8605e03c6 100644 --- a/drivers/qmimodem/sim.c +++ b/drivers/qmimodem/sim.c @@ -29,6 +29,8 @@ #include <ofono/modem.h> #include <ofono/sim.h> +#include <glib.h> + #include "qmi.h" #include "dms.h" #include "uim.h" diff --git a/drivers/qmimodem/util.h b/drivers/qmimodem/util.h index 68bc93837..8c0c3c3c7 100644 --- a/drivers/qmimodem/util.h +++ b/drivers/qmimodem/util.h @@ -19,7 +19,6 @@ * */ -#include <glib.h> #include <ell/ell.h> struct cb_data { @@ -48,7 +47,7 @@ static inline struct cb_data *cb_data_ref(struct cb_data *cbd) return cbd; } -static inline void cb_data_unref(gpointer user_data) +static inline void cb_data_unref(void *user_data) { struct cb_data *cbd = user_data; |