Method
FwupdPluginIoctladd_mutable_buffer
since: 2.0.2
Declaration [src]
void
fu_ioctl_add_mutable_buffer (
FuIoctl* self,
const gchar* key,
guint8* buf,
gsize bufsz,
FuIoctlFixupFunc fixup_cb
)
Description [src]
Adds a mutable buffer that can be used to fix up the ioctl-defined structure with the buffer and size, and adds a key for the emulation.
Available since: 2.0.2
Parameters
key-
Type:
const gchar*A string, e.g.
Cdb.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. buf-
Type:
guint8*An optional buffer.
The argument can be NULL.The data is owned by the caller of the method. bufsz-
Type:
gsizeSize of
buf. fixup_cb-
Type:
FuIoctlFixupFuncA function to call on the structure.