Method

GUsbContextload_with_tag

Declaration

gboolean
g_usb_context_load_with_tag (
  GUsbContext* self,
  JsonObject* json_object,
  const gchar* tag,
  GError** error
)

Description

Loads any devices with a specified tag into the context from a JSON object.

Available since:0.4.1

Parameters

json_object JsonObject
 

A JsonObject.

 The data is owned by the caller of the function.
tag const gchar*
 

A string tag, e.g. runtime-reload, or NULL.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success.