diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-12-04 09:13:25 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-12-04 09:13:25 +0000 |
| commit | eb826c0fe1ca64029d8cc10d5ddc52df6994ef43 (patch) | |
| tree | c17241aa6b46e4a8bf2890228e3057f6fe3f9c2f /include | |
| parent | 4fb2ab603d0f9c145c4e25d855772390c6ddf4c0 (diff) | |
Misc changes.
git-svn-id: svn://svn.zabbix.com/trunk@3562 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/include/common.h b/include/common.h index 79945953..4925997d 100644 --- a/include/common.h +++ b/include/common.h @@ -390,16 +390,20 @@ void version(); /* MAX Length of base64 data */ #define ZBX_MAX_B64_LEN 16*1024 -#define ZBX_TASK_START 0 -#define ZBX_TASK_SHOW_HELP 1 -#define ZBX_TASK_SHOW_VERSION 2 -#define ZBX_TASK_PRINT_SUPPORTED 3 -#define ZBX_TASK_TEST_METRIC 4 -#define ZBX_TASK_SHOW_USAGE 5 -#define ZBX_TASK_INSTALL_SERVICE 6 -#define ZBX_TASK_UNINSTALL_SERVICE 7 -#define ZBX_TASK_START_SERVICE 8 -#define ZBX_TASK_STOP_SERVICE 9 +typedef enum +{ + ZBX_TASK_START = 0, + ZBX_TASK_SHOW_HELP, + ZBX_TASK_SHOW_VERSION, + ZBX_TASK_PRINT_SUPPORTED, + ZBX_TASK_TEST_METRIC, + ZBX_TASK_SHOW_USAGE, + ZBX_TASK_INSTALL_SERVICE, + ZBX_TASK_UNINSTALL_SERVICE, + ZBX_TASK_START_SERVICE, + ZBX_TASK_STOP_SERVICE, + ZBX_TASK_CHANGE_NODEID +} zbx_task_t; void init_result(AGENT_RESULT *result); int copy_result(AGENT_RESULT *src, AGENT_RESULT *dist); |
