|  |  |  | GUsb Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct GUsbContext; struct GUsbContextClass; enum GUsbContextError; #define G_USB_CONTEXT_ERROR GQuark g_usb_context_error_quark (void); GUsbSource * g_usb_context_get_source (GUsbContext *context,GMainContext *main_ctx); GUsbContext * g_usb_context_new (GError **error); void g_usb_context_set_debug (GUsbContext *context,GLogLevelFlags flags);
"debug-level" gint : Read / Write "libusb-context" gpointer : Read / Write / Construct Only
GQuark              g_usb_context_error_quark           (void);
| Returns : | Our personal error quark. | 
Since 0.1.0
GUsbSource * g_usb_context_get_source (GUsbContext *context,GMainContext *main_ctx);
Returns a source for this context. The first call actually creates the source and the result is returned in all future calls.
| 
 | a GUsbContext | 
| 
 | a GMainContext, or NULL | 
| Returns : | the GUsbSource. [transfer none] | 
Since 0.1.0
GUsbContext *       g_usb_context_new                   (GError **error);
Creates a new context for accessing USB devices.
| 
 | a GError, or NULL | 
| Returns : | a new GUsbContextobject orNULLon error. | 
Since 0.1.0
void g_usb_context_set_debug (GUsbContext *context,GLogLevelFlags flags);
Sets the debug flags which control what is logged to the console.
Using G_LOG_LEVEL_INFO will output to standard out, and everything
else logs to standard error.
| 
 | a GUsbContext | 
| 
 | a GLogLevelFlags such as G_LOG_LEVEL_ERROR|G_LOG_LEVEL_INFO, or 0 | 
Since 0.1.0