Fix: sessiond: rotation thread: fatal error when not finding a session
[lttng-tools.git] / src / bin / lttng-sessiond / ust-field-utils.h
1 /*
2 * Copyright (C) 2018 Francis Deslauriers francis.deslauriers@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #ifndef LTTNG_UST_FIELD_UTILS_H
9 #define LTTNG_UST_FIELD_UTILS_H
10
11 #include "lttng-ust-ctl.h"
12
13 /*
14 * Compare two UST fields.
15 * Return 1 if both fields have identical definition, 0 otherwise.
16 */
17 int match_lttng_ust_ctl_field(const struct lttng_ust_ctl_field *first,
18 const struct lttng_ust_ctl_field *second);
19
20 /*
21 * Compare two arrays of UST fields.
22 * Return true if both arrays have identical field definitions, false otherwise.
23 */
24 bool match_lttng_ust_ctl_field_array(const struct lttng_ust_ctl_field *first,
25 size_t nr_first,
26 const struct lttng_ust_ctl_field *second,
27 size_t nr_second);
28
29 #endif /* LTTNG_UST_FIELD_UTILS_H */
This page took 0.028839 seconds and 4 git commands to generate.