2 * Copyright (C) 2018 Francis Deslauriers francis.deslauriers@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef LTTNG_UST_FIELD_UTILS_H
9 #define LTTNG_UST_FIELD_UTILS_H
11 #include "lttng-ust-ctl.hpp"
14 * Compare two UST fields.
15 * Return 1 if both fields have identical definition, 0 otherwise.
17 int match_lttng_ust_ctl_field(const struct lttng_ust_ctl_field *first,
18 const struct lttng_ust_ctl_field *second);
21 * Compare two arrays of UST fields.
22 * Return true if both arrays have identical field definitions, false otherwise.
24 bool match_lttng_ust_ctl_field_array(const struct lttng_ust_ctl_field *first,
26 const struct lttng_ust_ctl_field *second,
29 #endif /* LTTNG_UST_FIELD_UTILS_H */