summaryrefslogtreecommitdiff
path: root/gusb/gusb-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-context.h')
-rw-r--r--gusb/gusb-context.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gusb/gusb-context.h b/gusb/gusb-context.h
index 8b59d49..3232d3c 100644
--- a/gusb/gusb-context.h
+++ b/gusb/gusb-context.h
@@ -63,11 +63,27 @@ typedef enum {
G_USB_CONTEXT_ERROR_INTERNAL
} GUsbContextError;
+/**
+ * GUsbContextFlags:
+ *
+ * The flags to use for the context.
+ **/
+typedef enum {
+ G_USB_CONTEXT_FLAGS_NONE = 0,
+ G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES = 1 << 0,
+ /*< private >*/
+ G_USB_CONTEXT_FLAGS_LAST
+} GUsbContextFlags;
+
GType g_usb_context_get_type (void);
GQuark g_usb_context_error_quark (void);
GUsbContext *g_usb_context_new (GError **error);
+void g_usb_context_set_flags (GUsbContext *context,
+ GUsbContextFlags flags);
+GUsbContextFlags g_usb_context_get_flags (GUsbContext *context);
+
G_DEPRECATED
GUsbSource *g_usb_context_get_source (GUsbContext *context,
GMainContext *main_ctx);