/
githubmirror
/
fwupd
Обзор
Документация
Войти
/
githubmirror
/
fwupd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/fu-daemon.h
56 строк
2 KB
Richard Hughes
trivial: Ensure all internal symbols are exported in C ABI
07 авг 2026, 14:27
07 авг 2026, 14:27
78975ad
Код
Авторство
О чём код?
/* * Copyright 2022 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "fu-engine.h" G_BEGIN_DECLS #define FU_TYPE_DAEMON (fu_daemon_get_type()) G_DECLARE_DERIVABLE_TYPE(FuDaemon, fu_daemon, FU, DAEMON, GObject) struct _FuDaemonClass { GObjectClass parent_class; gboolean (*setup)(FuDaemon *self, const gchar *socket_address, FuProgress *progress, GError **error); gboolean (*start)(FuDaemon *self, GError **error); gboolean (*stop)(FuDaemon *self, GError **error); }; FuDaemon * fu_daemon_new(void); void fu_daemon_schedule_housekeeping(FuDaemon *self) G_GNUC_NON_NULL(1); void fu_daemon_schedule_process_quit(FuDaemon *self) G_GNUC_NON_NULL(1); gboolean fu_daemon_setup(FuDaemon *self, const gchar *socket_address, GError **error) G_GNUC_NON_NULL(1); gboolean fu_daemon_start(FuDaemon *self, GError **error) G_GNUC_NON_NULL(1); gboolean fu_daemon_stop(FuDaemon *self, GError **error) G_GNUC_NON_NULL(1); FuEngine * fu_daemon_get_engine(FuDaemon *self) G_GNUC_NON_NULL(1); void fu_daemon_set_update_in_progress(FuDaemon *self, gboolean update_in_progress) G_GNUC_NON_NULL(1); gboolean fu_daemon_get_pending_stop(FuDaemon *self) G_GNUC_NON_NULL(1); FwupdStatus fu_daemon_get_status(FuDaemon *self) G_GNUC_NON_NULL(1); void fu_daemon_set_status(FuDaemon *self, FwupdStatus status) G_GNUC_NON_NULL(1); gdouble fu_daemon_get_percentage(FuDaemon *self) G_GNUC_NON_NULL(1); void fu_daemon_set_percentage(FuDaemon *self, gdouble percentage) G_GNUC_NON_NULL(1); G_END_DECLS