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:
authorIgors Homjakovs <git-no-reply@zabbix.com>2014-08-05 18:47:30 +0400
committerIgors Homjakovs <git-no-reply@zabbix.com>2014-08-05 18:47:30 +0400
commite8676c7583387629feeb4d271211f95437787f52 (patch)
tree2196bafb6d7f0fa425f3c228875b8dfcef1b772f /include/zbxself.h
parentdbdc5f9183252a40776f41ba10c43d6b61e40e43 (diff)
...G...PS. [ZBXNEXT-101] ensured zabbix agent correct operation on nix and windows machines. ZABBIX_DAEMON was defined globally. minor code formatting fix
Diffstat (limited to 'include/zbxself.h')
-rw-r--r--include/zbxself.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/include/zbxself.h b/include/zbxself.h
index 391b559e977..14241515d7e 100644
--- a/include/zbxself.h
+++ b/include/zbxself.h
@@ -20,10 +20,6 @@
#ifndef ZABBIX_ZBXSELF_H
#define ZABBIX_ZBXSELF_H
-#if defined(_WINDOWS)
-# error "This module allowed only for Unix OS"
-#endif
-
#define ZBX_PROCESS_STATE_IDLE 0
#define ZBX_PROCESS_STATE_BUSY 1
#define ZBX_PROCESS_STATE_COUNT 2 /* number of process states */
@@ -65,17 +61,20 @@
#define ZBX_AGGR_FUNC_MAX 2
#define ZBX_AGGR_FUNC_MIN 3
-int get_process_type_by_name(const char *proc_type_str);
-int get_process_type_func(char *proc_type_str);
-int get_process_type_forks(unsigned char process_type);
+int get_process_type_by_name(const char *proc_type_str);
+int get_process_type_func(char *proc_type_str);
+int get_process_type_forks(unsigned char process_type);
const char *get_process_type_string(unsigned char process_type);
-void init_selfmon_collector(void);
-void free_selfmon_collector(void);
-void update_selfmon_counter(unsigned char state);
-void collect_selfmon_stats(void);
-void get_selfmon_stats(unsigned char process_type, unsigned char aggr_func, int process_num,
- unsigned char state, double *value);
-void zbx_sleep_loop(int sleeptime);
-void zbx_wakeup(void);
+
+#if defined(ZABBIX_DAEMON)
+void init_selfmon_collector(void);
+void free_selfmon_collector(void);
+void update_selfmon_counter(unsigned char state);
+void collect_selfmon_stats(void);
+void get_selfmon_stats(unsigned char process_type, unsigned char aggr_func, int process_num,
+ unsigned char state, double *value);
+void zbx_sleep_loop(int sleeptime);
+void zbx_wakeup(void);
+#endif
#endif /* ZABBIX_ZBXSELF_H */