/
niceSOFT
/
systemd
Обзор
Документация
Войти
/
niceSOFT
/
systemd
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/sysupdate/sysupdate-feature.h
30 строк
666 B
Lennart Poettering
sysupdate: add a "suggests" concept to features and components
13 июл 2026, 18:36
13 июл 2026, 18:36
40e727c
Код
Авторство
О чём код?
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "sysupdate-forward.h" typedef struct Feature { unsigned n_ref; char *id; char *description; char *documentation; char *appstream; bool enabled; int suggest; Condition *suggest_on; } Feature; Feature *feature_new(void); DECLARE_TRIVIAL_REF_UNREF_FUNC(Feature, feature); DEFINE_TRIVIAL_CLEANUP_FUNC(Feature*, feature_unref); extern const struct hash_ops feature_hash_ops; int feature_read_definition(Feature *f, const char *root, const char *path, const char *const *conf_file_dirs); int feature_is_suggested(Feature *f);