diff options
Diffstat (limited to 'gusb/gusb-device-list.h')
-rw-r--r-- | gusb/gusb-device-list.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/gusb/gusb-device-list.h b/gusb/gusb-device-list.h index 97edee3..d0297e9 100644 --- a/gusb/gusb-device-list.h +++ b/gusb/gusb-device-list.h @@ -12,28 +12,25 @@ G_BEGIN_DECLS -#define G_USB_TYPE_DEVICE_LIST (g_usb_device_list_get_type ()) -#define G_USB_DEVICE_LIST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_USB_TYPE_DEVICE_LIST, GUsbDeviceList)) -#define G_USB_IS_DEVICE_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_USB_TYPE_DEVICE_LIST)) +#define G_USB_TYPE_DEVICE_LIST (g_usb_device_list_get_type()) +#define G_USB_DEVICE_LIST(o) \ + (G_TYPE_CHECK_INSTANCE_CAST((o), G_USB_TYPE_DEVICE_LIST, GUsbDeviceList)) +#define G_USB_IS_DEVICE_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), G_USB_TYPE_DEVICE_LIST)) -typedef struct _GUsbDeviceListPrivate GUsbDeviceListPrivate; -typedef struct _GUsbDeviceList GUsbDeviceList; -typedef struct _GUsbDeviceListClass GUsbDeviceListClass; +typedef struct _GUsbDeviceListPrivate GUsbDeviceListPrivate; +typedef struct _GUsbDeviceList GUsbDeviceList; +typedef struct _GUsbDeviceListClass GUsbDeviceListClass; -struct _GUsbDeviceList -{ - GObject parent; - GUsbDeviceListPrivate *priv; +struct _GUsbDeviceList { + GObject parent; + GUsbDeviceListPrivate *priv; }; -struct _GUsbDeviceListClass -{ - GObjectClass parent_class; +struct _GUsbDeviceListClass { + GObjectClass parent_class; /* Signals */ - void (*device_added) (GUsbDeviceList *list, - GUsbDevice *device); - void (*device_removed) (GUsbDeviceList *list, - GUsbDevice *device); + void (*device_added)(GUsbDeviceList *list, GUsbDevice *device); + void (*device_removed)(GUsbDeviceList *list, GUsbDevice *device); /*< private >*/ /* * If adding fields to this struct, remove corresponding @@ -42,27 +39,30 @@ struct _GUsbDeviceListClass gchar _gusb_reserved[64]; }; -GType g_usb_device_list_get_type (void); +GType +g_usb_device_list_get_type(void); G_DEPRECATED_FOR(g_usb_context_new) -GUsbDeviceList *g_usb_device_list_new (GUsbContext *context); +GUsbDeviceList * +g_usb_device_list_new(GUsbContext *context); G_DEPRECATED -void g_usb_device_list_coldplug (GUsbDeviceList *list); +void +g_usb_device_list_coldplug(GUsbDeviceList *list); G_DEPRECATED_FOR(g_usb_context_get_devices) -GPtrArray *g_usb_device_list_get_devices (GUsbDeviceList *list); +GPtrArray * +g_usb_device_list_get_devices(GUsbDeviceList *list); G_DEPRECATED_FOR(g_usb_context_find_by_bus_address) -GUsbDevice *g_usb_device_list_find_by_bus_address (GUsbDeviceList *list, - guint8 bus, - guint8 address, - GError **error); +GUsbDevice * +g_usb_device_list_find_by_bus_address(GUsbDeviceList *list, + guint8 bus, + guint8 address, + GError **error); G_DEPRECATED_FOR(g_usb_context_find_by_vid_pid) -GUsbDevice *g_usb_device_list_find_by_vid_pid (GUsbDeviceList *list, - guint16 vid, - guint16 pid, - GError **error); +GUsbDevice * +g_usb_device_list_find_by_vid_pid(GUsbDeviceList *list, guint16 vid, guint16 pid, GError **error); G_END_DECLS |