X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-field-utils.h;fp=src%2Fbin%2Flttng-sessiond%2Fust-field-utils.h;h=e75621f42f0cc68c1ee426f31e9dc403abe96bcf;hb=98b73e886719378d507d500058dd4e4d7e5488bf;hp=0000000000000000000000000000000000000000;hpb=ab95d85d8784a545ff66c2025110829e9b5cb1b8;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-field-utils.h b/src/bin/lttng-sessiond/ust-field-utils.h new file mode 100644 index 000000000..e75621f42 --- /dev/null +++ b/src/bin/lttng-sessiond/ust-field-utils.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2018 - Francis Deslauriers francis.deslauriers@efficios.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2 only, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef LTTNG_UST_FIELD_UTILS_H +#define LTTNG_UST_FIELD_UTILS_H + +#include "ust-ctl.h" + +/* + * Compare two UST fields. + * Return 1 if both fields have identical definition, 0 otherwise. + */ +int match_ustctl_field(const struct ustctl_field *first, + const struct ustctl_field *second); + +#endif /* LTTNG_UST_FIELD_UTILS_H */