HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/libsystemd/sd-bus/bus-introspect.h

Git blob: 923b47dd598b9c2cab6b906e6318868358344c55

Lines 1–22 of 22

/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
 
#include "bus-forward.h"
#include "memstream-util.h"
 
typedef struct BusIntrospect {
        MemStream m;
        char *interface_name;
        bool trusted;
} BusIntrospect;
 
int introspect_begin(BusIntrospect *i, bool trusted);
int introspect_write_default_interfaces(BusIntrospect *i, bool object_manager);
int introspect_write_child_nodes(BusIntrospect *i, OrderedSet *s, const char *prefix);
int introspect_write_interface(
                BusIntrospect *i,
                const char *interface_name,
                const sd_bus_vtable *v);
int introspect_finish(BusIntrospect *i, char **ret);
void introspect_done(BusIntrospect *i);