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:
@@ -1033,6 +1033,7 @@ mm_firmware_update_settings_get_variant
|
|||||||
mm_firmware_update_settings_new
|
mm_firmware_update_settings_new
|
||||||
mm_firmware_update_settings_new_from_variant
|
mm_firmware_update_settings_new_from_variant
|
||||||
mm_firmware_update_settings_set_fastboot_at
|
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_device_ids
|
||||||
mm_firmware_update_settings_set_version
|
mm_firmware_update_settings_set_version
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
|
@@ -70,6 +70,18 @@ mm_firmware_update_settings_get_method (MMFirmwareUpdateSettings *self)
|
|||||||
return self->priv->method;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -87,10 +87,12 @@ MMFirmwareUpdateSettings *mm_firmware_update_settings_new_from_variant (GVariant
|
|||||||
GVariant *mm_firmware_update_settings_get_variant (MMFirmwareUpdateSettings *self);
|
GVariant *mm_firmware_update_settings_get_variant (MMFirmwareUpdateSettings *self);
|
||||||
|
|
||||||
/* Generic */
|
/* Generic */
|
||||||
void mm_firmware_update_settings_set_device_ids (MMFirmwareUpdateSettings *self,
|
void mm_firmware_update_settings_set_device_ids (MMFirmwareUpdateSettings *self,
|
||||||
const gchar **device_ids);
|
const gchar **device_ids);
|
||||||
void mm_firmware_update_settings_set_version (MMFirmwareUpdateSettings *self,
|
void mm_firmware_update_settings_set_version (MMFirmwareUpdateSettings *self,
|
||||||
const gchar *version);
|
const gchar *version);
|
||||||
|
void mm_firmware_update_settings_set_method (MMFirmwareUpdateSettings *self,
|
||||||
|
MMModemFirmwareUpdateMethod method);
|
||||||
|
|
||||||
/* Fastboot specific */
|
/* Fastboot specific */
|
||||||
void mm_firmware_update_settings_set_fastboot_at (MMFirmwareUpdateSettings *self,
|
void mm_firmware_update_settings_set_fastboot_at (MMFirmwareUpdateSettings *self,
|
||||||
|
Reference in New Issue
Block a user