]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
29ddb38f LP |
2 | #pragma once |
3 | ||
29ddb38f LP |
4 | #include <stdio.h> |
5 | ||
6 | #include "sd-bus.h" | |
71d35b6b | 7 | |
29ddb38f LP |
8 | #include "set.h" |
9 | ||
10 | struct introspect { | |
11 | FILE *f; | |
61d0df39 | 12 | char *interface_name; |
29ddb38f LP |
13 | char *introspection; |
14 | size_t size; | |
7fb411f0 | 15 | bool trusted; |
29ddb38f LP |
16 | }; |
17 | ||
7fb411f0 | 18 | int introspect_begin(struct introspect *i, bool trusted); |
29ddb38f LP |
19 | int introspect_write_default_interfaces(struct introspect *i, bool object_manager); |
20 | int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefix); | |
61d0df39 ZJS |
21 | int introspect_write_interface( |
22 | struct introspect *i, | |
23 | const char *interface_name, | |
24 | const sd_bus_vtable *v); | |
dff9e25a | 25 | int introspect_finish(struct introspect *i, char **ret); |
29ddb38f | 26 | void introspect_free(struct introspect *i); |