Move to kernel style SPDX license identifiers
[babeltrace.git] / src / plugins / text / details / write.h
CommitLineData
55478183 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
55478183 3 *
0235b0db 4 * Copyright 2019 Philippe Proulx <pproulx@efficios.com>
55478183
PP
5 */
6
0235b0db
MJ
7#ifndef BABELTRACE_PLUGINS_TEXT_DETAILS_WRITE_H
8#define BABELTRACE_PLUGINS_TEXT_DETAILS_WRITE_H
9
55478183
PP
10#include <glib.h>
11#include <babeltrace2/babeltrace.h>
12#include <stdbool.h>
13
14#include "details.h"
15
16/* Writing context */
17struct details_write_ctx {
18 /* Weak */
19 struct details_comp *details_comp;
20
21 /* Weak (belongs to `details_comp` above) */
22 GString *str;
23
24 /* Current indentation level (number of actual spaces) */
25 unsigned int indent_level;
26};
27
28/*
29 * Writes the message `msg` to the component's output buffer
30 * (`details_comp->str`).
31 */
32BT_HIDDEN
33int details_write_message(struct details_comp *details_comp,
34 const bt_message *msg);
35
36#endif /* BABELTRACE_PLUGINS_TEXT_DETAILS_WRITE_H */
This page took 0.045194 seconds and 4 git commands to generate.