18d83cf0a2e19f8fe5a313cde0be1efeaa5a5996
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.
22 bool details_need_to_write_meta_object(struct details_write_ctx
*ctx
,
23 const bt_trace_class
*tc
, const void *obj
);
26 * Marks stream class or event class `obj`, which belongs to `tc`, as
30 void details_did_write_meta_object(struct details_write_ctx
*ctx
,
31 const bt_trace_class
*tc
, const void *obj
);
34 * Returns whether or not trace class `tc` needs to be written.
37 bool details_need_to_write_trace_class(struct details_write_ctx
*ctx
,
38 const bt_trace_class
*tc
);
41 * Marks trace class `tc` as written.
44 int details_did_write_trace_class(struct details_write_ctx
*ctx
,
45 const bt_trace_class
*tc
);
48 * Writes the unique trace ID of `trace` to `*unique_id`, allocating a
49 * new unique ID if none exists.
52 int details_trace_unique_id(struct details_write_ctx
*ctx
,
53 const bt_trace
*trace
, uint64_t *unique_id
);
55 #endif /* BABELTRACE_PLUGINS_TEXT_DETAILS_OBJ_LIFETIME_MGMT_H */
This page took 0.03002 seconds and 3 git commands to generate.