mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-24 08:33:19 +00:00
34 lines
791 B
C
34 lines
791 B
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
*
|
|
* Copyright (C) 2017-2018 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#ifndef __FU_CSR_DEVICE_H
|
|
#define __FU_CSR_DEVICE_H
|
|
|
|
#include <glib-object.h>
|
|
#include <gusb.h>
|
|
|
|
#include "fu-plugin.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define FU_TYPE_CSR_DEVICE (fu_csr_device_get_type ())
|
|
G_DECLARE_FINAL_TYPE (FuCsrDevice, fu_csr_device, FU, CSR_DEVICE, FuUsbDevice)
|
|
|
|
typedef enum {
|
|
FU_CSR_DEVICE_QUIRK_NONE = 0,
|
|
FU_CSR_DEVICE_QUIRK_REQUIRE_DELAY = (1 << 0),
|
|
FU_CSR_DEVICE_QUIRK_LAST
|
|
} FuCsrDeviceQuirks;
|
|
|
|
FuCsrDevice *fu_csr_device_new (GUsbDevice *usb_device);
|
|
void fu_csr_device_set_quirks (FuCsrDevice *self,
|
|
FuCsrDeviceQuirks quirks);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_CSR_DEVICE_H */
|