diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-23 00:01:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-26 23:10:21 +0100 |
commit | 43c43e026e8f3e765f66221b3a0afbf6648f97e8 (patch) | |
tree | 555488d1f969ed7f45ad8e99a38670bbf5c1cf93 | |
parent | 9028db7ced11b79abaa4b4a1c0060c498f841e8f (diff) | |
download | libqmi-43c43e026e8f3e765f66221b3a0afbf6648f97e8.tar.gz |
qmicli,dms: port to use the new APIs without QmiMessageDmsGetStoredImageInfoInputImage
-rw-r--r-- | src/qmicli/qmicli-dms.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qmicli/qmicli-dms.c b/src/qmicli/qmicli-dms.c index 616c7502..4dc17594 100644 --- a/src/qmicli/qmicli-dms.c +++ b/src/qmicli/qmicli-dms.c @@ -2919,7 +2919,6 @@ get_image_info (ListImagesContext *operation_ctx) GArray *array; QmiMessageDmsListStoredImagesOutputListImage *image; QmiMessageDmsListStoredImagesOutputListImageSublistSublistElement *subimage; - QmiMessageDmsGetStoredImageInfoInputImage image_id; g_autoptr(QmiMessageDmsGetStoredImageInfoInput) input = NULL; qmi_message_dms_list_stored_images_output_get_list ( @@ -2961,11 +2960,12 @@ get_image_info (ListImagesContext *operation_ctx) operation_ctx->j); /* Query image info */ - image_id.type = image->type; - image_id.unique_id = subimage->unique_id; - image_id.build_id = subimage->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, + image->type, + subimage->unique_id, + subimage->build_id, + NULL); qmi_client_dms_get_stored_image_info (ctx->client, input, 10, |