mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 02:40:34 +00:00
trivial: Add fu_security_attrs_append_internal() for future code
This commit is contained in:
parent
e9319699b4
commit
196dbec5ae
@ -32,3 +32,5 @@ GVariant *
|
||||
fu_security_attrs_to_variant(FuSecurityAttrs *self);
|
||||
GPtrArray *
|
||||
fu_security_attrs_get_all(FuSecurityAttrs *self);
|
||||
void
|
||||
fu_security_attrs_append_internal(FuSecurityAttrs *self, FwupdSecurityAttr *attr);
|
||||
|
@ -54,6 +54,23 @@ fu_security_attrs_init(FuSecurityAttrs *self)
|
||||
self->attrs = g_ptr_array_new_with_free_func((GDestroyNotify)g_object_unref);
|
||||
}
|
||||
|
||||
/**
|
||||
* fu_security_attrs_append_internal:
|
||||
* @self: a #FuSecurityAttrs
|
||||
* @attr: a #FwupdSecurityAttr
|
||||
*
|
||||
* Adds a #FwupdSecurityAttr to the array with no sanity checks.
|
||||
*
|
||||
* Since: 1.7.1
|
||||
**/
|
||||
void
|
||||
fu_security_attrs_append_internal(FuSecurityAttrs *self, FwupdSecurityAttr *attr)
|
||||
{
|
||||
g_return_if_fail(FU_IS_SECURITY_ATTRS(self));
|
||||
g_return_if_fail(FWUPD_IS_SECURITY_ATTR(attr));
|
||||
g_ptr_array_add(self->attrs, g_object_ref(attr));
|
||||
}
|
||||
|
||||
/**
|
||||
* fu_security_attrs_append:
|
||||
* @self: a #FuSecurityAttrs
|
||||
@ -88,7 +105,7 @@ fu_security_attrs_append(FuSecurityAttrs *self, FwupdSecurityAttr *attr)
|
||||
fwupd_security_attr_get_url(attr));
|
||||
fwupd_security_attr_set_url(attr, url);
|
||||
}
|
||||
g_ptr_array_add(self->attrs, g_object_ref(attr));
|
||||
fu_security_attrs_append_internal(self, attr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -940,6 +940,7 @@ LIBFWUPDPLUGIN_1.7.1 {
|
||||
fu_device_add_string;
|
||||
fu_device_get_internal_flags;
|
||||
fu_device_set_internal_flags;
|
||||
fu_security_attrs_append_internal;
|
||||
fu_udev_device_new_with_context;
|
||||
fu_usb_device_new_with_context;
|
||||
local: *;
|
||||
|
Loading…
Reference in New Issue
Block a user