syslog-ng source
label-template.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 Attila Szakacs
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef LABEL_TEMPLATE_H_INCLUDED
25 #define LABEL_TEMPLATE_H_INCLUDED
26 
27 #include "template/templates.h"
28 #include "stats/stats-cluster.h"
29 
30 typedef struct _LabelTemplate LabelTemplate;
31 
32 LabelTemplate *label_template_new(const gchar *name, LogTemplate *value_template);
33 LabelTemplate *label_template_clone(const LabelTemplate *self);
34 void label_template_free(LabelTemplate *self);
35 
36 void label_template_format(LabelTemplate *self, const LogTemplateOptions *template_options,
37  LogMessage *msg, GString *value_buffer, StatsClusterLabel *label);
38 gint label_template_compare(const LabelTemplate *self, const LabelTemplate *other);
39 
40 #endif
const gchar * name
Definition: debugger.c:265
LabelTemplate * label_template_new(const gchar *name, LogTemplate *value_template)
Definition: label-template.c:62
void label_template_format(LabelTemplate *self, const LogTemplateOptions *template_options, LogMessage *msg, GString *value_buffer, StatsClusterLabel *label)
Definition: label-template.c:48
LabelTemplate * label_template_clone(const LabelTemplate *self)
Definition: label-template.c:73
gint label_template_compare(const LabelTemplate *self, const LabelTemplate *other)
Definition: label-template.c:56
void label_template_free(LabelTemplate *self)
Definition: label-template.c:79
Definition: label-template.c:27
LogTemplate * value_template
Definition: label-template.c:29
LogMessage * msg
Definition: test_rename.c:35
LogTemplateOptions template_options
Definition: test_value_pairs.c:65