fwupd/plugins/csr/fu-csr-device.h
2018-05-29 09:03:13 +01:00

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 */