]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/bus-print-properties.h
json: add helpers for dealing with id128 + strv
[thirdparty/systemd.git] / src / shared / bus-print-properties.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdbool.h>
5
6 #include "sd-bus.h"
7
8 #include "macro.h"
9 #include "set.h"
10
11 typedef int (*bus_message_print_t) (const char *name, const char *expected_value, sd_bus_message *m, bool value, bool all);
12
13 int bus_print_property_value(const char *name, const char *expected_value, bool only_value, const char *value);
14 int bus_print_property_valuef(const char *name, const char *expected_value, bool only_value, const char *fmt, ...) _printf_(4,5);
15 int bus_message_print_all_properties(sd_bus_message *m, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties);
16 int bus_print_all_properties(sd_bus *bus, const char *dest, const char *path, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties);