syslog-ng source
stats-query.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Balabit
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 STATS_QUERY_H_INCLUDED
25 #define STATS_QUERY_H_INCLUDED
26 
27 #include "stats-cluster.h"
28 #include "syslog-ng.h"
29 
30 typedef gboolean (*StatsFormatCb)(gpointer user_data);
31 
32 gboolean stats_query_list(const gchar *expr, StatsFormatCb format_cb, gpointer result);
33 gboolean stats_query_list_and_reset_counters(const gchar *expr, StatsFormatCb format_cb, gpointer result);
34 gboolean stats_query_get(const gchar *expr, StatsFormatCb format_cb, const gchar *output_fmt, gpointer result);
35 gboolean stats_query_get_and_reset_counters(const gchar *expr, StatsFormatCb format_cb, const gchar *output_fmt,
36  gpointer result);
37 gboolean stats_query_get_sum(const gchar *expr, StatsFormatCb format_cb, gpointer result);
38 gboolean stats_query_get_sum_and_reset_counters(const gchar *expr, StatsFormatCb format_cb, gpointer result);
39 
40 #endif
gboolean stats_query_get_sum(const gchar *expr, StatsFormatCb format_cb, gpointer result)
Definition: stats-query.c:185
gboolean stats_query_get(const gchar *expr, StatsFormatCb format_cb, const gchar *output_fmt, gpointer result)
Definition: stats-query.c:139
gboolean stats_query_get_sum_and_reset_counters(const gchar *expr, StatsFormatCb format_cb, gpointer result)
Definition: stats-query.c:191
gboolean stats_query_list(const gchar *expr, StatsFormatCb format_cb, gpointer result)
Definition: stats-query.c:204
gboolean stats_query_list_and_reset_counters(const gchar *expr, StatsFormatCb format_cb, gpointer result)
Definition: stats-query.c:210
gboolean stats_query_get_and_reset_counters(const gchar *expr, StatsFormatCb format_cb, const gchar *output_fmt, gpointer result)
Definition: stats-query.c:145
gboolean(* StatsFormatCb)(gpointer user_data)
Definition: stats-query.h:30
GString * result
Definition: test_lexer_block.c:34