/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Copyright (C) 2018 Richard Hughes * * SPDX-License-Identifier: LGPL-2.1+ */ #ifndef __FU_WAC_DEVICE_H #define __FU_WAC_DEVICE_H #include #include #include "fu-plugin.h" G_BEGIN_DECLS #define FU_TYPE_WAC_DEVICE (fu_wac_device_get_type ()) G_DECLARE_FINAL_TYPE (FuWacDevice, fu_wac_device, FU, WAC_DEVICE, FuUsbDevice) typedef enum { FU_WAC_DEVICE_FEATURE_FLAG_NONE = 0, FU_WAC_DEVICE_FEATURE_FLAG_ALLOW_TRUNC = 1 << 0, FU_WAC_DEVICE_FEATURE_FLAG_LAST } FuWacDeviceFeatureFlags; FuWacDevice *fu_wac_device_new (GUsbDevice *usb_device); gboolean fu_wac_device_update_reset (FuWacDevice *self, GError **error); gboolean fu_wac_device_get_feature_report (FuWacDevice *self, guint8 *buf, gsize bufsz, FuWacDeviceFeatureFlags flags, GError **error); gboolean fu_wac_device_set_feature_report (FuWacDevice *self, guint8 *buf, gsize bufsz, FuWacDeviceFeatureFlags flags, GError **error); G_END_DECLS #endif /* __FU_WAC_DEVICE_H */