src: watch ofono service for new modem

If system is using ofono, use ofono dbus service to figure out the
modem's USB id.
This commit is contained in:
Bhushan Shah
2021-03-15 12:29:47 +05:30
parent dcb1a9a050
commit 060dc9ae32
8 changed files with 458 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
#include <gpiod.h>
#include <gudev/gudev.h>
#include <libmm-glib.h>
#include <libgdbofono/gdbo-manager.h>
#include "toml.h"
@@ -51,7 +52,10 @@ struct EG25Manager {
guint mm_watch;
MMManager *mm_manager;
MMModem *mm_modem;
guint ofono_watch;
GDBOManager *ofono_manager;
GDBusConnection *ofono_connection;
GDBusProxy *suspend_proxy;
int suspend_delay_fd;