summaryrefslogtreecommitdiff
path: root/gusb/gusb-bos-descriptor.h
blob: b230a7cbf15aaa14cf8f7de10d2a5ff779f706d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* -*- 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