| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "bus-forward.h" |
| 5 |
#include "memstream-util.h" |
| 6 |
|
| 7 |
typedef struct BusIntrospect { |
| 8 |
MemStream m; |
| 9 |
char *interface_name; |
| 10 |
bool trusted; |
| 11 |
} BusIntrospect; |
| 12 |
|
| 13 |
int introspect_begin(BusIntrospect *i, bool trusted); |
| 14 |
int introspect_write_default_interfaces(BusIntrospect *i, bool object_manager); |
| 15 |
int introspect_write_child_nodes(BusIntrospect *i, OrderedSet *s, const char *prefix); |
| 16 |
int introspect_write_interface( |
| 17 |
BusIntrospect *i, |
| 18 |
const char *interface_name, |
| 19 |
const sd_bus_vtable *v); |
| 20 |
int introspect_finish(BusIntrospect *i, char **ret); |
| 21 |
void introspect_done(BusIntrospect *i); |