Namespace

GUsb – 1.0

GUsb is a GLib wrapper for libusb1

Version0.4.8
AuthorsGUsb Development Team
LicenseLGPL-2.1-or-later
Websitehttps://github.com/hughsie/libgusb
Sourcehttps://github.com/hughsie/libgusb

Build

C headersgusb.h
pkg-config filesgusb

Dependencies

GObject The base type system library
Browse documentation
Gio A modern, easy-to-use VFS API
Browse documentation
Json API for efficient parsing and writing of JSON (JavaScript Object Notation) streams
Browse documentation

Additional documentation

Structs

Enumerations

ContextError
DeviceClassCode

The USB device class.

DeviceDirection

The message direction.

DeviceError

The error code.

DeviceLangid

The USB language ID.

DeviceRecipient

The message recipient.

DeviceRequestType

The message request type.

Bitfields

ContextFlags

The flags to use for the context.

DeviceClaimInterfaceFlags

Flags for the g_usb_device_claim_interface and g_usb_device_release_interface methods flags parameters.

Error Domains

SourceError

The error code.

Functions

strerror

Converts the error code into a string.

version_string

Gets the GUsb installed runtime version.

Function Macros

CHECK_VERSION

Check whether a gusb version equal to or greater than major.minor.micro.

Constants

MAJOR_VERSION

The compile-time major version.

MICRO_VERSION

The compile-time micro version.

MINOR_VERSION

The compile-time minor version.