summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gusb/gusb-device.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index ba62bb6..941db3c 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -66,6 +66,15 @@ G_DEFINE_TYPE_WITH_CODE (GUsbDevice, g_usb_device, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE,
g_usb_device_initable_iface_init))
+/**
+ * g_usb_device_error_quark:
+ *
+ * Return value: Our personal error quark.
+ *
+ * Since: 0.1.0
+ **/
+G_DEFINE_QUARK (g-usb-device-error-quark, g_usb_device_error)
+
static void
g_usb_device_finalize (GObject *object)
{
@@ -274,22 +283,6 @@ _g_usb_device_get_device (GUsbDevice *device)
return device->priv->device;
}
-/**
- * g_usb_device_error_quark:
- *
- * Return value: Our personal error quark.
- *
- * Since: 0.1.0
- **/
-GQuark
-g_usb_device_error_quark (void)
-{
- static GQuark quark = 0;
- if (!quark)
- quark = g_quark_from_static_string ("g_usb_device_error");
- return quark;
-}
-
static gboolean
g_usb_device_libusb_error_to_gerror (GUsbDevice *device,
gint rc,