Validate channel context mismatch across UST applications
[lttng-tools.git] / src / bin / lttng-sessiond / ust-field-utils.h
CommitLineData
98b73e88 1/*
ab5be9fa 2 * Copyright (C) 2018 Francis Deslauriers francis.deslauriers@efficios.com>
98b73e88 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
98b73e88 5 *
98b73e88
FD
6 */
7
8#ifndef LTTNG_UST_FIELD_UTILS_H
9#define LTTNG_UST_FIELD_UTILS_H
10
75018ab6 11#include "lttng-ust-ctl.h"
98b73e88
FD
12
13/*
14 * Compare two UST fields.
15 * Return 1 if both fields have identical definition, 0 otherwise.
16 */
b623cb6a
MJ
17int match_lttng_ust_ctl_field(const struct lttng_ust_ctl_field *first,
18 const struct lttng_ust_ctl_field *second);
98b73e88 19
fb277293
MD
20/*
21 * Compare two arrays of UST fields.
22 * Return true if both arrays have identical field definitions, false otherwise.
23 */
24bool 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
98b73e88 29#endif /* LTTNG_UST_FIELD_UTILS_H */
This page took 0.039436 seconds and 4 git commands to generate.