Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2020-09-08 11:41:05 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2020-09-08 11:41:05 +0300
commit5cb91035985b60ffd9221c2afab5516cd48302fe (patch)
tree3410cd6cc0cd8eb63c45510f18f8196cbff2c6fd /include/zbxtrends.h
parent96db3ef6c3a11486f6ed302fda961d957b911584 (diff)
........S. [ZBXNEXT-6140] added time period addition/subtraction functions, test suite for time period addition
Diffstat (limited to 'include/zbxtrends.h')
-rw-r--r--include/zbxtrends.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/zbxtrends.h b/include/zbxtrends.h
new file mode 100644
index 00000000000..3a99296f7da
--- /dev/null
+++ b/include/zbxtrends.h
@@ -0,0 +1,30 @@
+/*
+** Zabbix
+** Copyright (C) 2001-2020 Zabbix SIA
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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 ZABBIX_ZBXTRENDS_H
+#define ZABBIX_ZBXTRENDS_H
+
+#include "common.h"
+
+int zbx_trends_parse_base(const char *period_shift, zbx_time_unit_t *base, char **error);
+
+int zbx_trends_parse_range(const char *period, const char *period_shift, int *start, int *end, char **error);
+
+#endif