Source
13
13
** GNU General Public License for more details.
14
14
**
15
15
** You should have received a copy of the GNU General Public License
16
16
** along with this program; if not, write to the Free Software
17
17
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
18
**/
19
19
20
20
#ifndef ZABBIX_EXPORT_H
21
21
#define ZABBIX_EXPORT_H
22
22
23
-
int zbx_is_export_enabled(void);
23
+
#define ZBX_FLAG_EXPTYPE_EVENTS 1
24
+
#define ZBX_FLAG_EXPTYPE_HISTORY 2
25
+
#define ZBX_FLAG_EXPTYPE_TRENDS 4
26
+
27
+
int zbx_validate_export_type(char *export_type, uint32_t *export_mask);
28
+
int zbx_is_export_enabled(uint32_t flags);
24
29
int zbx_export_init(char **error);
25
30
26
31
void zbx_problems_export_init(const char *process_name, int process_num);
27
32
void zbx_problems_export_write(const char *buf, size_t count);
28
33
void zbx_problems_export_flush(void);
29
34
30
35
void zbx_history_export_init(const char *process_name, int process_num);
31
36
void zbx_history_export_write(const char *buf, size_t count);
32
37
void zbx_history_export_flush(void);
38
+
39
+
void zbx_trends_export_init(const char *process_name, int process_num);
33
40
void zbx_trends_export_write(const char *buf, size_t count);
34
41
void zbx_trends_export_flush(void);
35
42
36
43
#endif