2 * SPDX-License-Identifier: MIT
4 * Copyright 2019 Philippe Proulx <pproulx@efficios.com>
7 #ifndef BABELTRACE_PLUGINS_TEXT_DETAILS_OBJ_LIFETIME_MGMT_H
8 #define BABELTRACE_PLUGINS_TEXT_DETAILS_OBJ_LIFETIME_MGMT_H
11 #include <babeltrace2/babeltrace.h>
18 * Returns whether or not stream class or event class `obj`, which
19 * belongs to `tc`, needs to be written.
21 bool details_need_to_write_meta_object(struct details_write_ctx
*ctx
,
22 const bt_trace_class
*tc
, const void *obj
);
25 * Marks stream class or event class `obj`, which belongs to `tc`, as
28 void details_did_write_meta_object(struct details_write_ctx
*ctx
,
29 const bt_trace_class
*tc
, const void *obj
);
32 * Returns whether or not trace class `tc` needs to be written.
34 bool details_need_to_write_trace_class(struct details_write_ctx
*ctx
,
35 const bt_trace_class
*tc
);
38 * Marks trace class `tc` as written.
40 int details_did_write_trace_class(struct details_write_ctx
*ctx
,
41 const bt_trace_class
*tc
);
44 * Writes the unique trace ID of `trace` to `*unique_id`, allocating a
45 * new unique ID if none exists.
47 int details_trace_unique_id(struct details_write_ctx
*ctx
,
48 const bt_trace
*trace
, uint64_t *unique_id
);
50 #endif /* BABELTRACE_PLUGINS_TEXT_DETAILS_OBJ_LIFETIME_MGMT_H */
This page took 0.031765 seconds and 4 git commands to generate.