diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-28 21:52:39 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-28 21:54:24 +0100 |
commit | 17dca109ddbb724b21c3d2f9ef223bde4e5dffbc (patch) | |
tree | 4a5c90687d15a9dbd8040ca159a7b4edb9ad1941 /src/mm-broadband-modem-qmi.c | |
parent | 18aa526f8cb26a30038b972c4e7cf8a2c549e86c (diff) |
broadband-modem-qmi: avoid the deprecated QmiMessageDmsGetStoredImageInfoInput type
Diffstat (limited to 'src/mm-broadband-modem-qmi.c')
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index 1bc7cf0e..ce5a64cf 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -11048,21 +11048,20 @@ get_next_image_info (GTask *task) /* Now, load additional optional information for the PRI image */ if (!ctx->skip_image_info) { - QmiMessageDmsGetStoredImageInfoInputImage image_id; - QmiMessageDmsGetStoredImageInfoInput *input; + g_autoptr(QmiMessageDmsGetStoredImageInfoInput) input = NULL; - image_id.type = QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI; - image_id.unique_id = ctx->current_pair->pri_unique_id; - image_id.build_id = ctx->current_pair->build_id; input = qmi_message_dms_get_stored_image_info_input_new (); - qmi_message_dms_get_stored_image_info_input_set_image (input, &image_id, NULL); + qmi_message_dms_get_stored_image_info_input_set_image_details (input, + QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI, + ctx->current_pair->pri_unique_id, + ctx->current_pair->build_id, + NULL); qmi_client_dms_get_stored_image_info (ctx->client, input, 10, NULL, (GAsyncReadyCallback)get_pri_image_info_ready, task); - qmi_message_dms_get_stored_image_info_input_unref (input); return; } |