manager: parse config file

The need to use libusb to check for the modem state on startup now 
depends on a config option, instead of the device type. The USB PID and 
VID are moved to config as well.
This commit is contained in:
Arnaud Ferraris
2021-02-20 15:33:52 +01:00
parent d9256251fd
commit 433982e4f7
2 changed files with 21 additions and 5 deletions

View File

@@ -31,6 +31,9 @@ struct EG25Manager {
GMainLoop *loop;
guint reset_timer;
gboolean manage_gnss;
gboolean use_libusb;
guint usb_vid;
guint usb_pid;
int at_fd;
guint at_source;
@@ -38,7 +41,6 @@ struct EG25Manager {
enum EG25State modem_state;
gchar *modem_usb_id;
gboolean braveheart;
guint mm_watch;
MMManager *mm_manager;