]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
a1ad3767 LP |
2 | #pragma once |
3 | ||
4 | /*** | |
a1ad3767 | 5 | Copyright 2014 Lennart Poettering |
a1ad3767 LP |
6 | ***/ |
7 | ||
c1ff5570 | 8 | #include <stdbool.h> |
a1ad3767 LP |
9 | |
10 | typedef struct XMLIntrospectOps { | |
11 | int (*on_path)(const char *path, void *userdata); | |
0171da06 LP |
12 | int (*on_interface)(const char *name, uint64_t flags, void *userdata); |
13 | int (*on_method)(const char *interface, const char *name, const char *signature, const char *result, uint64_t flags, void *userdata); | |
14 | int (*on_signal)(const char *interface, const char *name, const char *signature, uint64_t flags, void *userdata); | |
15 | int (*on_property)(const char *interface, const char *name, const char *signature, bool writable, uint64_t flags, void *userdata); | |
a1ad3767 LP |
16 | } XMLIntrospectOps; |
17 | ||
18 | int parse_xml_introspect(const char *prefix, const char *xml, const XMLIntrospectOps *ops, void *userdata); |