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)
|
# MBIM support (enabled by default)
|
||||||
enable_mbim = get_option('mbim')
|
enable_mbim = get_option('mbim')
|
||||||
if enable_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
|
endif
|
||||||
config_h.set('WITH_MBIM', enable_mbim)
|
config_h.set('WITH_MBIM', enable_mbim)
|
||||||
|
|
||||||
|
@@ -5117,17 +5117,20 @@ sms_notification (MMBroadbandModemMbim *self,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MBIM_CID_SMS_MESSAGE_STORE_STATUS: {
|
case MBIM_CID_SMS_MESSAGE_STORE_STATUS: {
|
||||||
MbimSmsStatusFlag flag;
|
MbimSmsStatusFlag flags;
|
||||||
guint32 index;
|
guint32 index;
|
||||||
|
|
||||||
if (self->priv->setup_flags & PROCESS_NOTIFICATION_FLAG_SMS_READ &&
|
if (self->priv->setup_flags & PROCESS_NOTIFICATION_FLAG_SMS_READ &&
|
||||||
mbim_message_sms_message_store_status_notification_parse (
|
mbim_message_sms_message_store_status_notification_parse (
|
||||||
notification,
|
notification,
|
||||||
&flag,
|
&flags,
|
||||||
&index,
|
&index,
|
||||||
NULL)) {
|
NULL)) {
|
||||||
mm_obj_dbg (self, "received SMS store status update: '%s'", mbim_sms_status_flag_get_string (flag));
|
g_autofree gchar *flags_str = NULL;
|
||||||
if (flag & MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
|
|
||||||
|
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);
|
sms_notification_read_stored_sms (self, index);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user