mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-18 06:41:41 +00:00
39 lines
904 B
C
39 lines
904 B
C
/*
|
|
* Copyright (C) 2022 Shihwei Huang <shihwei.huang@focaltech-electronics.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include "fu-focalfp-firmware.h"
|
|
#include "fu-focalfp-hid-device.h"
|
|
#include "fu-focalfp-plugin.h"
|
|
|
|
struct _FuFocalfpPlugin {
|
|
FuPlugin parent_instance;
|
|
};
|
|
|
|
G_DEFINE_TYPE(FuFocalfpPlugin, fu_focalfp_plugin, FU_TYPE_PLUGIN)
|
|
|
|
static void
|
|
fu_focalfp_plugin_init(FuFocalfpPlugin *self)
|
|
{
|
|
}
|
|
|
|
static void
|
|
fu_focalfp_plugin_constructed(GObject *obj)
|
|
{
|
|
FuPlugin *plugin = FU_PLUGIN(obj);
|
|
fu_plugin_add_udev_subsystem(plugin, "hidraw");
|
|
fu_plugin_add_firmware_gtype(plugin, NULL, FU_TYPE_FOCALFP_FIRMWARE);
|
|
fu_plugin_add_device_gtype(plugin, FU_TYPE_FOCALFP_HID_DEVICE);
|
|
}
|
|
|
|
static void
|
|
fu_focalfp_plugin_class_init(FuFocalfpPluginClass *klass)
|
|
{
|
|
GObjectClass *object_class = G_OBJECT_CLASS(klass);
|
|
object_class->constructed = fu_focalfp_plugin_constructed;
|
|
}
|