trivial: Add fu_device_add_string() for future use

This commit is contained in:
Richard Hughes 2021-10-14 15:40:50 +01:00
parent 918006f8d5
commit dbf92be359
3 changed files with 14 additions and 1 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;