broadband-modem-mbim: print MbimSmsStatusFlag as flags string
This requires bumping libmbim to 1.29.2, which is the version including the enum->flags change.
This commit is contained in:
@@ -245,7 +245,7 @@ config_h.set('WITH_AT_COMMAND_VIA_DBUS', enable_at_command_via_dbus)
|
||||
# MBIM support (enabled by default)
|
||||
enable_mbim = get_option('mbim')
|
||||
if enable_mbim
|
||||
mbim_glib_dep = dependency('mbim-glib', version: '>= 1.28.0')
|
||||
mbim_glib_dep = dependency('mbim-glib', version: '>= 1.29.2')
|
||||
endif
|
||||
config_h.set('WITH_MBIM', enable_mbim)
|
||||
|
||||
|
@@ -5117,17 +5117,20 @@ sms_notification (MMBroadbandModemMbim *self,
|
||||
break;
|
||||
|
||||
case MBIM_CID_SMS_MESSAGE_STORE_STATUS: {
|
||||
MbimSmsStatusFlag flag;
|
||||
guint32 index;
|
||||
MbimSmsStatusFlag flags;
|
||||
guint32 index;
|
||||
|
||||
if (self->priv->setup_flags & PROCESS_NOTIFICATION_FLAG_SMS_READ &&
|
||||
mbim_message_sms_message_store_status_notification_parse (
|
||||
notification,
|
||||
&flag,
|
||||
&flags,
|
||||
&index,
|
||||
NULL)) {
|
||||
mm_obj_dbg (self, "received SMS store status update: '%s'", mbim_sms_status_flag_get_string (flag));
|
||||
if (flag & MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
|
||||
g_autofree gchar *flags_str = NULL;
|
||||
|
||||
flags_str = mbim_sms_status_flag_build_string_from_mask (flags);
|
||||
mm_obj_dbg (self, "received SMS store status update: '%s'", flags_str);
|
||||
if (flags & MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
|
||||
sms_notification_read_stored_sms (self, index);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user