Method

FwupdPluginIOChannelwrite_bytes

Declaration [src]

gboolean
fu_io_channel_write_bytes (
  FuIOChannel* self,
  GBytes* bytes,
  guint timeout_ms,
  FuIOChannelFlags flags,
  GError** error
)

Description [src]

Writes bytes to the TTY, that will fail if exceeding timeout_ms.

Available since:1.2.2

Parameters

bytes GBytes*
 

Buffer to write.

 The data is owned by the caller of the function.
timeout_ms guint
 

Timeout in ms.

flags FuIOChannelFlags
 

Channel flags, e.g. FU_IO_CHANNEL_FLAG_SINGLE_SHOT.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if all the bytes was written.