mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-11 19:28:15 +00:00

Devices may want to support more than one protocol, and for some devices (e.g. Unifying peripherals stuck in bootloader mode) you might not even be able to query for the correct protocol anyway.
28 lines
575 B
C
28 lines
575 B
C
/*
|
|
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include "fu-test-ble-device.h"
|
|
|
|
struct _FuTestBleDevice {
|
|
FuBluezDevice parent_instance;
|
|
};
|
|
|
|
G_DEFINE_TYPE (FuTestBleDevice, fu_test_ble_device, FU_TYPE_BLUEZ_DEVICE)
|
|
|
|
static void
|
|
fu_test_ble_device_init (FuTestBleDevice *self)
|
|
{
|
|
fu_device_add_protocol (FU_DEVICE (self), "org.test.testble");
|
|
fu_device_add_flag (FU_DEVICE (self), FWUPD_DEVICE_FLAG_UPDATABLE);
|
|
}
|
|
|
|
static void
|
|
fu_test_ble_device_class_init (FuTestBleDeviceClass *klass)
|
|
{
|
|
}
|