mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 13:54:31 +00:00

This pivots the data storage so that the group is used as the preconditon and the key name is used as the parameter to change. This allows a more natural data flow, where a new device needs one new group and a few few keys, rather than multiple groups, each with one key. This also allows us to remove the key globbing when matching the version format which is often a source of confusion. Whilst changing all the quirk files, change the key prefixes to be more familiar to Windows users (e.g. Hwid -> Smbios, and FuUsbDevice -> DeviceInstanceId) who have to use the same IDs in Windows Update. This also allows us to pre-match the desired plugin, rather than calling the probe() function on each plugin.
26 lines
561 B
C
26 lines
561 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)
|
|
|
|
FuCsrDevice *fu_csr_device_new (GUsbDevice *usb_device);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_CSR_DEVICE_H */
|