libmm-glib,firmware-update-settings: setter for method

Allow to set the firmware update method even after
initialization of the MMFirmwareUpdateSettings object.
This commit is contained in:
Dylan Van Assche
2022-02-06 18:44:12 +01:00
parent 967d748f04
commit bdf4d898f6
3 changed files with 19 additions and 4 deletions

View File

@@ -1033,6 +1033,7 @@ mm_firmware_update_settings_get_variant
mm_firmware_update_settings_new
mm_firmware_update_settings_new_from_variant
mm_firmware_update_settings_set_fastboot_at
mm_firmware_update_settings_set_method
mm_firmware_update_settings_set_device_ids
mm_firmware_update_settings_set_version
<SUBSECTION Standard>

View File

@@ -70,6 +70,18 @@ mm_firmware_update_settings_get_method (MMFirmwareUpdateSettings *self)
return self->priv->method;
}
/**
* mm_firmware_update_settings_set_method: (skip)
*/
void
mm_firmware_update_settings_set_method (MMFirmwareUpdateSettings *self,
MMModemFirmwareUpdateMethod method)
{
g_return_if_fail (MM_IS_FIRMWARE_UPDATE_SETTINGS (self));
self->priv->method = method;
}
/*****************************************************************************/
/**

View File

@@ -87,10 +87,12 @@ MMFirmwareUpdateSettings *mm_firmware_update_settings_new_from_variant (GVariant
GVariant *mm_firmware_update_settings_get_variant (MMFirmwareUpdateSettings *self);
/* Generic */
void mm_firmware_update_settings_set_device_ids (MMFirmwareUpdateSettings *self,
const gchar **device_ids);
void mm_firmware_update_settings_set_version (MMFirmwareUpdateSettings *self,
const gchar *version);
void mm_firmware_update_settings_set_device_ids (MMFirmwareUpdateSettings *self,
const gchar **device_ids);
void mm_firmware_update_settings_set_version (MMFirmwareUpdateSettings *self,
const gchar *version);
void mm_firmware_update_settings_set_method (MMFirmwareUpdateSettings *self,
MMModemFirmwareUpdateMethod method);
/* Fastboot specific */
void mm_firmware_update_settings_set_fastboot_at (MMFirmwareUpdateSettings *self,