summaryrefslogtreecommitdiff
path: root/gusb/gusb-interface.h
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <icq@gnome.org>2015-11-17 09:52:10 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2015-11-17 09:52:10 +0100
commitd36a51d38edb899e8d4c477b6b756b8a379b7c19 (patch)
tree71d67c9ff43bb1e14bf28f3995d5e8405aa12012 /gusb/gusb-interface.h
parentccf253cfa0e87a257208219ee5744d149fe833d6 (diff)
downloadgusb-d36a51d38edb899e8d4c477b6b756b8a379b7c19.tar.gz
Convert GUsbInterface to user the G_DECLARE_FINAL_TYPE macro
Diffstat (limited to 'gusb/gusb-interface.h')
-rw-r--r--gusb/gusb-interface.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/gusb/gusb-interface.h b/gusb/gusb-interface.h
index 816373b..74905c6 100644
--- a/gusb/gusb-interface.h
+++ b/gusb/gusb-interface.h
@@ -26,32 +26,8 @@
G_BEGIN_DECLS
-#define G_USB_TYPE_INTERFACE (g_usb_interface_get_type ())
-#define G_USB_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_USB_TYPE_INTERFACE, GUsbInterface))
-#define G_USB_IS_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_USB_TYPE_INTERFACE))
-
-typedef struct _GUsbInterfacePrivate GUsbInterfacePrivate;
-typedef struct _GUsbInterface GUsbInterface;
-typedef struct _GUsbInterfaceClass GUsbInterfaceClass;
-
-struct _GUsbInterface
-{
- GObject parent;
- GUsbInterfacePrivate *priv;
-};
-
-struct _GUsbInterfaceClass
-{
- GObjectClass parent_class;
- /*< private >*/
- /*
- * If adding fields to this struct, remove corresponding
- * amount of padding to avoid changing overall struct size
- */
- gpointer _gusb_reserved[31];
-};
-
-GType g_usb_interface_get_type (void);
+#define G_USB_TYPE_INTERFACE (g_usb_interface_get_type ())
+G_DECLARE_FINAL_TYPE (GUsbInterface, g_usb_interface, G_USB, INTERFACE, GObject)
guint8 g_usb_interface_get_length (GUsbInterface *interface);
guint8 g_usb_interface_get_kind (GUsbInterface *interface);