mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 04:47:52 +00:00
trivial: Add fu_device_add_string() for future use
This commit is contained in:
parent
918006f8d5
commit
dbf92be359
@ -3208,7 +3208,17 @@ fu_device_set_battery_threshold(FuDevice *self, guint battery_threshold)
|
||||
fu_device_ensure_battery_inhibit(self);
|
||||
}
|
||||
|
||||
static void
|
||||
/**
|
||||
* fu_device_add_string:
|
||||
* @self: a #FuDevice
|
||||
* @idt: indent level
|
||||
* @str: a string to append to
|
||||
*
|
||||
* Add daemon-specific device metadata to an existing string.
|
||||
*
|
||||
* Since: 1.7.1
|
||||
**/
|
||||
void
|
||||
fu_device_add_string(FuDevice *self, guint idt, GString *str)
|
||||
{
|
||||
GPtrArray *children;
|
||||
|
@ -403,6 +403,8 @@ typedef guint64 FuDeviceInternalFlags;
|
||||
/* accessors */
|
||||
gchar *
|
||||
fu_device_to_string(FuDevice *self);
|
||||
void
|
||||
fu_device_add_string(FuDevice *self, guint idt, GString *str);
|
||||
const gchar *
|
||||
fu_device_get_alternate_id(FuDevice *self);
|
||||
void
|
||||
|
@ -929,5 +929,6 @@ LIBFWUPDPLUGIN_1.7.1 {
|
||||
global:
|
||||
fu_common_check_full_disk_encryption;
|
||||
fu_common_mkdir;
|
||||
fu_device_add_string;
|
||||
local: *;
|
||||
} LIBFWUPDPLUGIN_1.7.0;
|
||||
|
Loading…
Reference in New Issue
Block a user