summaryrefslogtreecommitdiff
path: root/gusb/gusb-bos-descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-bos-descriptor.h')
-rw-r--r--gusb/gusb-bos-descriptor.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gusb/gusb-bos-descriptor.h b/gusb/gusb-bos-descriptor.h
new file mode 100644
index 0000000..813779e
--- /dev/null
+++ b/gusb/gusb-bos-descriptor.h
@@ -0,0 +1,20 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2022 Richard Hughes <richard@hughsie.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1+
+ */
+
+#pragma once
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define G_USB_TYPE_BOS_DESCRIPTOR (g_usb_bos_descriptor_get_type ())
+G_DECLARE_FINAL_TYPE (GUsbBosDescriptor, g_usb_bos_descriptor, G_USB, BOS_DESCRIPTOR, GObject)
+
+guint8 g_usb_bos_descriptor_get_capability (GUsbBosDescriptor *self);
+GBytes *g_usb_bos_descriptor_get_extra (GUsbBosDescriptor *self);
+
+G_END_DECLS