## gusb-source gusb-source — GSource integration for libusb |

## Synopsis

                        GUsbSource;
    enum                GUsbSourceError;
    #define             G_USB_SOURCE_ERROR
    GQuark              g_usb_source_error_quark            (void);
    void                g_usb_source_set_callback           (GUsbSource *source,
                                                             GSourceFunc func,
                                                             gpointer data,
                                                             GDestroyNotify notify);

## Description

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

## Details

### GUsbSource

    typedef struct _GUsbSource GUsbSource;

### enum GUsbSourceError

    typedef enum {
    	G_USB_SOURCE_ERROR_INTERNAL
    } GUsbSourceError;

The error code.

### G_USB_SOURCE_ERROR

    #define G_USB_SOURCE_ERROR			(g_usb_source_error_quark ())

### 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.

`source` : | a GUsbSource
`func` : | a function to call
`data` : | data to pass to `func`
`notify` : | a GDestroyNotify

Since 0.1.0