/
githubmirror
/
fwupd
Обзор
Документация
Войти
/
githubmirror
/
fwupd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
plugins/android-boot/fu-android-boot-plugin.c
39 строк
953 B
Richard Hughes
trivial: Chain up the `GObjectClass->constructed()` vfunc
22 мар 2026, 00:18
22 мар 2026, 00:18
2c681e4
Код
Авторство
О чём код?
/* * Copyright 2022 Dylan Van Assche <me@dylanvanassche.be> * * SPDX-License-Identifier: LGPL-2.1-or-later */ #include "config.h" #include "fu-android-boot-device.h" #include "fu-android-boot-plugin.h" struct _FuAndroidBootPlugin { FuPlugin parent_instance; }; G_DEFINE_TYPE(FuAndroidBootPlugin, fu_android_boot_plugin, FU_TYPE_PLUGIN) static void fu_android_boot_plugin_init(FuAndroidBootPlugin *self) { } static void fu_android_boot_plugin_constructed(GObject *obj) { FuPlugin *plugin = FU_PLUGIN(obj); fu_plugin_add_device_gtype(plugin, FU_TYPE_ANDROID_BOOT_DEVICE); fu_plugin_add_device_udev_subsystem(plugin, "block:partition"); /* chain up to parent */ G_OBJECT_CLASS(fu_android_boot_plugin_parent_class)->constructed(obj); } static void fu_android_boot_plugin_class_init(FuAndroidBootPluginClass *klass) { FuPluginClass *plugin_class = FU_PLUGIN_CLASS(klass); plugin_class->constructed = fu_android_boot_plugin_constructed; }