Debian Codegraph @

src/sysupdate/sysupdate-feature.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "sysupdate-forward.h"
5
6 typedef struct Feature {
7 unsigned n_ref;
8
9 char *id;
10
11 char *description;
12 char *documentation;
13 char *appstream;
14
15 bool enabled;
16 } Feature;
17
18 Feature *feature_new(void);
19
20 DECLARE_TRIVIAL_REF_UNREF_FUNC(Feature, feature);
21 DEFINE_TRIVIAL_CLEANUP_FUNC(Feature*, feature_unref);
22
23 extern const struct hash_ops feature_hash_ops;
24
25 int feature_read_definition(Feature *f, const char *path, const char *const *conf_file_dirs);