File: fu-usb-interface.h

package info (click to toggle)
fwupd 2.0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,504 kB
  • sloc: ansic: 277,388; python: 11,485; xml: 9,493; sh: 1,625; makefile: 167; cpp: 19; asm: 11; javascript: 9
file content (28 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright 2015 Richard Hughes <richard@hughsie.com>
 * Copyright 2020 Emmanuel Pacaud <emmanuel@gnome.org>
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#pragma once

#include "fu-usb-descriptor.h"

#define FU_TYPE_USB_INTERFACE (fu_usb_interface_get_type())
G_DECLARE_FINAL_TYPE(FuUsbInterface, fu_usb_interface, FU, USB_INTERFACE, FuUsbDescriptor)

guint8
fu_usb_interface_get_number(FuUsbInterface *self) G_GNUC_NON_NULL(1);
guint8
fu_usb_interface_get_alternate(FuUsbInterface *self) G_GNUC_NON_NULL(1);
guint8
fu_usb_interface_get_class(FuUsbInterface *self) G_GNUC_NON_NULL(1);
guint8
fu_usb_interface_get_subclass(FuUsbInterface *self) G_GNUC_NON_NULL(1);
guint8
fu_usb_interface_get_protocol(FuUsbInterface *self) G_GNUC_NON_NULL(1);
guint8
fu_usb_interface_get_index(FuUsbInterface *self) G_GNUC_NON_NULL(1);
GPtrArray *
fu_usb_interface_get_endpoints(FuUsbInterface *self) G_GNUC_NON_NULL(1);