gusb-source

gusb-source — GSource integration for libusb

Functions

Types and Values

Description

This object can be used to integrate libusb into the GLib main loop.

Functions

g_usb_source_error_quark ()

GQuark
g_usb_source_error_quark (void);

Returns

Our personal error quark.

Since 0.1.0


g_usb_source_set_callback ()

void
g_usb_source_set_callback (GUsbSource *source,
                           GSourceFunc func,
                           gpointer data,
                           GDestroyNotify notify);

Set a callback to be called when the source is dispatched.

Parameters

source

a GUsbSource

 

func

a function to call

 

data

data to pass to func

 

notify

a GDestroyNotify

 

Since 0.1.0

Types and Values

G_USB_SOURCE_ERROR

#define G_USB_SOURCE_ERROR			(g_usb_source_error_quark ())


enum GUsbSourceError

The error code.

Members

G_USB_SOURCE_ERROR_INTERNAL

   

GUsbSource

typedef struct _GUsbSource GUsbSource;