/
githubmirror
/
fwupd
Обзор
Документация
Войти
/
githubmirror
/
fwupd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
plugins/system76-launch/fu-system76-launch-plugin.c
40 строк
1 KB
Richard Hughes
trivial: Chain up the `GObjectClass->constructed()` vfunc
22 мар 2026, 00:18
22 мар 2026, 00:18
2c681e4
Код
Авторство
О чём код?
/* * Copyright 2019 Richard Hughes <richard@hughsie.com> * Copyright 2021 Jeremy Soller <jeremy@system76.com> * * SPDX-License-Identifier: LGPL-2.1-or-later */ #include "config.h" #include "fu-system76-launch-device.h" #include "fu-system76-launch-plugin.h" struct _FuSystem76LaunchPlugin { FuPlugin parent_instance; }; G_DEFINE_TYPE(FuSystem76LaunchPlugin, fu_system76_launch_plugin, FU_TYPE_PLUGIN) static void fu_system76_launch_plugin_init(FuSystem76LaunchPlugin *self) { } static void fu_system76_launch_plugin_constructed(GObject *obj) { FuPlugin *plugin = FU_PLUGIN(obj); fu_plugin_add_udev_subsystem(plugin, "usb"); fu_plugin_add_device_gtype(plugin, FU_TYPE_SYSTEM76_LAUNCH_DEVICE); /* chain up to parent */ G_OBJECT_CLASS(fu_system76_launch_plugin_parent_class)->constructed(obj); } static void fu_system76_launch_plugin_class_init(FuSystem76LaunchPluginClass *klass) { FuPluginClass *plugin_class = FU_PLUGIN_CLASS(klass); plugin_class->constructed = fu_system76_launch_plugin_constructed; }