]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd/sd-bus/bus-dump.h
grypt-util: drop two emacs modelines
[thirdparty/systemd.git] / src / libsystemd / sd-bus / bus-dump.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright 2013 Lennart Poettering
6 ***/
7
8 #include <stdbool.h>
9 #include <stdio.h>
10
11 #include "sd-bus.h"
12
13 enum {
14 BUS_MESSAGE_DUMP_WITH_HEADER = 1,
15 BUS_MESSAGE_DUMP_SUBTREE_ONLY = 2,
16 };
17
18 int bus_message_dump(sd_bus_message *m, FILE *f, unsigned flags);
19
20 int bus_creds_dump(sd_bus_creds *c, FILE *f, bool terse);
21
22 int bus_pcap_header(size_t snaplen, FILE *f);
23 int bus_message_pcap_frame(sd_bus_message *m, size_t snaplen, FILE *f);