aboutsummaryrefslogtreecommitdiff
path: root/src/mm-broadband-modem.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-05-23 00:38:09 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-05-24 12:52:52 +0000
commit3da3623e11f90e45951118119da6f842053fd133 (patch)
tree0aa70687ba9ee225208cb6677b33e983e4aa49de /src/mm-broadband-modem.h
parent1f10b3ff7f2e9cf8a72859fc7340bc60bb189c2e (diff)
broadband-modem: check if skeleton exists when creating device id
The logic that creates the device identifier uses some fields that are exposed in DBus (e.g. model, manufacturer...). We should not attempt to load any of that info if the DBus skeleton for the Modem interface is no longer available, as e.g. the device may have gone away already. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/374
Diffstat (limited to 'src/mm-broadband-modem.h')
-rw-r--r--src/mm-broadband-modem.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mm-broadband-modem.h b/src/mm-broadband-modem.h
index 1f5acac3..2ba05799 100644
--- a/src/mm-broadband-modem.h
+++ b/src/mm-broadband-modem.h
@@ -104,9 +104,10 @@ MMModemCharset mm_broadband_modem_get_current_charset (MMBroadbandModem *self);
/* Create a unique device identifier string using the ATI and ATI1 replies and some
* additional internal info */
-gchar *mm_broadband_modem_create_device_identifier (MMBroadbandModem *self,
- const gchar *ati,
- const gchar *ati1);
+gchar *mm_broadband_modem_create_device_identifier (MMBroadbandModem *self,
+ const gchar *ati,
+ const gchar *ati1,
+ GError **error);
/* Locking/unlocking SMS storages */
void mm_broadband_modem_lock_sms_storages (MMBroadbandModem *self,