]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/bus-print-properties.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / shared / bus-print-properties.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
9176326b
LP
2#pragma once
3
4#include <stdbool.h>
5
6#include "sd-bus.h"
7
8#include "macro.h"
9#include "set.h"
10
11typedef int (*bus_message_print_t) (const char *name, const char *expected_value, sd_bus_message *m, bool value, bool all);
12
13int bus_print_property_value(const char *name, const char *expected_value, bool only_value, const char *value);
14int bus_print_property_valuef(const char *name, const char *expected_value, bool only_value, const char *fmt, ...) _printf_(4,5);
15int bus_message_print_all_properties(sd_bus_message *m, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties);
16int 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);