summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-14 05:55:37 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-14 05:55:37 +0000
commit5ac1783eabb170049375d6cebd909c10a6523a73 (patch)
tree4b27eec49bce906d83911e64ff173171cc6bc979 /include/common.h
parenteb60de08877fe0e6f42e54949bb332e02caf86c1 (diff)
downloadzabbix-5ac1783eabb170049375d6cebd909c10a6523a73.tar.gz
zabbix-5ac1783eabb170049375d6cebd909c10a6523a73.tar.xz
zabbix-5ac1783eabb170049375d6cebd909c10a6523a73.zip
- new comms protocol for ZABBIX agents
git-svn-id: svn://svn.zabbix.com/trunk@4001 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 2bbe40c6..75a2fdd4 100644
--- a/include/common.h
+++ b/include/common.h
@@ -412,6 +412,8 @@ typedef enum
#define strnscpy(x,y,n) zbx_strlcpy(x,y,n);
void *zbx_malloc(size_t size);
+void *zbx_realloc(void *src, size_t size);
+
#define zbx_free(ptr) { if(ptr){ free(ptr); ptr = NULL; } }
#define zbx_fclose(f) { if(f){ fclose(f); f = NULL; } }
@@ -458,6 +460,8 @@ int find_char(char *str,char c);
int is_double_prefix(char *str);
int is_double(char *c);
int is_uint(char *c);
+void zbx_rtrim(char *str, const char *charlist);
+void zbx_ltrim(register char *str, const char *charlist);
void lrtrim_spaces(char *c);
void ltrim_spaces(char *c);
void rtrim_spaces(char *c);