diff options
author | Richard Hughes <richard@hughsie.com> | 2022-09-03 16:58:19 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-09-04 20:01:09 +0100 |
commit | 36f53da169cd5ad7f690b682729f35d057353758 (patch) | |
tree | c24b2a55472ae74642e2cf7d9a2604d962f64a27 /gusb/gusb-bos-descriptor.h | |
parent | 6eb98600ad27e089ac7bca02972a23fcda2390db (diff) | |
download | gusb-36f53da169cd5ad7f690b682729f35d057353758.tar.gz |
Add support for getting BOS descriptors
Diffstat (limited to 'gusb/gusb-bos-descriptor.h')
-rw-r--r-- | gusb/gusb-bos-descriptor.h | 20 |
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 |