mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 18:20:30 +00:00
trivial: Remove the deprecated fu_plugin_set_secure_config_value()
This commit is contained in:
parent
3dbf5fa8a4
commit
2a5f7766a4
@ -2502,36 +2502,6 @@ fu_plugin_set_config_value_internal(FuPlugin *self,
|
|||||||
error);
|
error);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* fu_plugin_set_secure_config_value:
|
|
||||||
* @self: a #FuPlugin
|
|
||||||
* @key: a settings key
|
|
||||||
* @value: (nullable): a settings value
|
|
||||||
* @error: (nullable): optional return location for an error
|
|
||||||
*
|
|
||||||
* Sets a plugin config file value and updates file so that non-privileged users
|
|
||||||
* cannot read it.
|
|
||||||
*
|
|
||||||
* This function is deprecated, and you should use `FWUPD_PLUGIN_FLAG_SECURE_CONFIG` and
|
|
||||||
* fu_plugin_set_config_value() instead.
|
|
||||||
*
|
|
||||||
* Returns: %TRUE for success
|
|
||||||
*
|
|
||||||
* Since: 1.7.4
|
|
||||||
**/
|
|
||||||
gboolean
|
|
||||||
fu_plugin_set_secure_config_value(FuPlugin *self,
|
|
||||||
const gchar *key,
|
|
||||||
const gchar *value,
|
|
||||||
GError **error)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail(FU_IS_PLUGIN(self), FALSE);
|
|
||||||
g_return_val_if_fail(key != NULL, FALSE);
|
|
||||||
g_return_val_if_fail(error == NULL || *error == NULL, FALSE);
|
|
||||||
fu_plugin_add_flag(self, FWUPD_PLUGIN_FLAG_SECURE_CONFIG);
|
|
||||||
return fu_plugin_set_config_value(self, key, value, error);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fu_plugin_set_config_value:
|
* fu_plugin_set_config_value:
|
||||||
* @self: a #FuPlugin
|
* @self: a #FuPlugin
|
||||||
|
@ -455,12 +455,6 @@ void
|
|||||||
fu_plugin_add_report_metadata(FuPlugin *self, const gchar *key, const gchar *value);
|
fu_plugin_add_report_metadata(FuPlugin *self, const gchar *key, const gchar *value);
|
||||||
gchar *
|
gchar *
|
||||||
fu_plugin_get_config_value(FuPlugin *self, const gchar *key);
|
fu_plugin_get_config_value(FuPlugin *self, const gchar *key);
|
||||||
G_DEPRECATED_FOR(fu_plugin_set_config_value)
|
|
||||||
gboolean
|
|
||||||
fu_plugin_set_secure_config_value(FuPlugin *self,
|
|
||||||
const gchar *key,
|
|
||||||
const gchar *value,
|
|
||||||
GError **error);
|
|
||||||
gboolean
|
gboolean
|
||||||
fu_plugin_get_config_value_boolean(FuPlugin *self, const gchar *key);
|
fu_plugin_get_config_value_boolean(FuPlugin *self, const gchar *key);
|
||||||
gboolean
|
gboolean
|
||||||
|
@ -848,7 +848,6 @@ LIBFWUPDPLUGIN_1.7.4 {
|
|||||||
fu_firmware_add_patch;
|
fu_firmware_add_patch;
|
||||||
fu_firmware_get_bytes_with_patches;
|
fu_firmware_get_bytes_with_patches;
|
||||||
fu_lid_state_to_string;
|
fu_lid_state_to_string;
|
||||||
fu_plugin_set_secure_config_value;
|
|
||||||
fu_usb_device_add_interface;
|
fu_usb_device_add_interface;
|
||||||
fu_usb_device_set_configuration;
|
fu_usb_device_set_configuration;
|
||||||
local: *;
|
local: *;
|
||||||
|
Loading…
Reference in New Issue
Block a user