diff options
author | Debarshi Ray <debarshir@src.gnome.org> | 2011-09-07 11:00:27 +0300 |
---|---|---|
committer | Debarshi Ray <debarshir@src.gnome.org> | 2011-09-08 22:59:42 +0300 |
commit | 5fb6ef3d1570b58d1f0446001a7544ecdecd8a75 (patch) | |
tree | c2c06997f47c751da768f0be8860394c957f221a /gusb/gusb-source.h | |
parent | 5e987ff6c3c0cb8e110dc8cf1d07674adc8e2ec7 (diff) | |
download | gusb-5fb6ef3d1570b58d1f0446001a7544ecdecd8a75.tar.gz |
Ensure that there is only one GUsbSource for each GUsbContext
As a result, g_usb_source_{new,destroy} have been moved to a private
header, and are called from the get_source and finalize methods of
GUsbContext.
Note that the GUsbSource is lazy allocated and only created when
g_usb_context_get_source is called for the first time for a particular
GUsbContext.
Diffstat (limited to 'gusb/gusb-source.h')
-rw-r--r-- | gusb/gusb-source.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gusb/gusb-source.h b/gusb/gusb-source.h index b840c67..909659e 100644 --- a/gusb/gusb-source.h +++ b/gusb/gusb-source.h @@ -25,8 +25,6 @@ #include <glib.h> -#include <gusb/gusb-context.h> - G_BEGIN_DECLS #define G_USB_SOURCE_ERROR (g_usb_source_error_quark ()) @@ -43,10 +41,6 @@ typedef enum { } GUsbSourceError; GQuark g_usb_source_error_quark (void); -GUsbSource *g_usb_source_new (GMainContext *main_ctx, - GUsbContext *gusb_ctx); -void g_usb_source_destroy (GUsbSource *source); - void g_usb_source_set_callback (GUsbSource *source, GSourceFunc func, gpointer data, |