Constructor

FwupdPluginMsgpackItemnew_string

since: 2.0.0

Declaration [src]

FuMsgpackItem*
fu_msgpack_item_new_string (
  const gchar* str
)

Description [src]

Creates a new msgpack item.

Available since: 2.0.0

Parameters

str

Type: const gchar*

String value.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: FuMsgpackItem

A FuMsgpackItem.

The caller of the function takes ownership of the data, and is responsible for freeing it.