diff options
Diffstat (limited to 'src/libs/zbxjson/json.c')
-rw-r--r-- | src/libs/zbxjson/json.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/libs/zbxjson/json.c b/src/libs/zbxjson/json.c index 2e1ca7a2011..0f08f57f56e 100644 --- a/src/libs/zbxjson/json.c +++ b/src/libs/zbxjson/json.c @@ -25,8 +25,6 @@ /****************************************************************************** * * - * Function: zbx_json_strerror * - * * * Purpose: return string describing json error * * * * Return value: pointer to the null terminated string * @@ -68,8 +66,6 @@ void zbx_set_json_strerror(const char *fmt, ...) /****************************************************************************** * * - * Function: __zbx_json_realloc * - * * * Author: Alexander Vladishev * * * ******************************************************************************/ @@ -213,8 +209,6 @@ static size_t __zbx_json_stringsize(const char *string, zbx_json_type_t type) /****************************************************************************** * * - * Function: zbx_num2hex * - * * * Purpose: convert parameter c (0-15) to hexadecimal value ('0'-'f') * * * * Parameters: * @@ -492,8 +486,6 @@ int zbx_json_close(struct zbx_json *j) /****************************************************************************** * * - * Function: __zbx_json_type * - * * * Purpose: return type of pointed value * * * * Return value: type of pointed value * @@ -525,8 +517,6 @@ static zbx_json_type_t __zbx_json_type(const char *p) /****************************************************************************** * * - * Function: __zbx_json_rbracket * - * * * Purpose: return position of right bracket * * * * Return value: position of right bracket * @@ -585,8 +575,6 @@ static const char *__zbx_json_rbracket(const char *p) /****************************************************************************** * * - * Function: zbx_json_open * - * * * Purpose: open json buffer and check for brackets * * * * Return value: SUCCESS - processed successfully * @@ -629,8 +617,6 @@ int zbx_json_open(const char *buffer, struct zbx_json_parse *jp) /****************************************************************************** * * - * Function: zbx_json_next * - * * * Purpose: locate next pair or element * * * * Return value: NULL - no more values * @@ -698,8 +684,6 @@ const char *zbx_json_next(const struct zbx_json_parse *jp, const char *p) /****************************************************************************** * * - * Function: zbx_is_valid_json_hex * - * * * Purpose: check if a 4 character sequence is a valid hex number 0000 - FFFF * * * * Parameters: * @@ -723,8 +707,6 @@ static int zbx_is_valid_json_hex(const char *p) /****************************************************************************** * * - * Function: zbx_hex2num * - * * * Purpose: convert hexit c ('0'-'9''a'-'f''A'-'F') to number (0-15) * * * * Parameters: * @@ -752,8 +734,6 @@ static unsigned int zbx_hex2num(char c) /****************************************************************************** * * - * Function: zbx_json_decode_character * - * * * Purpose: decodes JSON escape character into UTF-8 * * * * Parameters: p - [IN/OUT] a pointer to the first character in string * @@ -871,8 +851,6 @@ static unsigned int zbx_json_decode_character(const char **p, unsigned char *byt /****************************************************************************** * * - * Function: zbx_json_copy_string * - * * * Purpose: copies json name/string value by omitting leading/trailing " and * * converting escape sequences * * * @@ -928,8 +906,6 @@ static const char *zbx_json_copy_string(const char *p, char *out, size_t size) /****************************************************************************** * * - * Function: zbx_json_copy_value * - * * * Purpose: copies unquoted (numeric, boolean) json value * * * * Parameters: p - [IN] a pointer to the next character in string * @@ -1047,8 +1023,6 @@ const char *zbx_json_pair_next(const struct zbx_json_parse *jp, const char *p, c /****************************************************************************** * * - * Function: zbx_json_pair_by_name * - * * * Purpose: find pair by name and return pointer to value * * * * Return value: pointer to value * @@ -1074,8 +1048,6 @@ const char *zbx_json_pair_by_name(const struct zbx_json_parse *jp, const char *n /****************************************************************************** * * - * Function: zbx_json_next_value * - * * * Author: Alexander Vladishev * * * ******************************************************************************/ @@ -1090,8 +1062,6 @@ const char *zbx_json_next_value(const struct zbx_json_parse *jp, const char *p, /****************************************************************************** * * - * Function: zbx_json_next_value_dyn * - * * ******************************************************************************/ const char *zbx_json_next_value_dyn(const struct zbx_json_parse *jp, const char *p, char **string, size_t *string_alloc, zbx_json_type_t *type) @@ -1104,8 +1074,6 @@ const char *zbx_json_next_value_dyn(const struct zbx_json_parse *jp, const char /****************************************************************************** * * - * Function: zbx_json_value_by_name * - * * * Purpose: return value by pair name * * * * Return value: SUCCEED - if value successfully parsed, FAIL - otherwise * @@ -1129,8 +1097,6 @@ int zbx_json_value_by_name(const struct zbx_json_parse *jp, const char *name, ch /****************************************************************************** * * - * Function: zbx_json_value_by_name_dyn * - * * * Purpose: return value by pair name * * * * Return value: SUCCEED - if value successfully parsed, FAIL - otherwise * @@ -1154,8 +1120,6 @@ int zbx_json_value_by_name_dyn(const struct zbx_json_parse *jp, const char *name /****************************************************************************** * * - * Function: zbx_json_brackets_open * - * * * Return value: SUCCESS - processed successfully * * FAIL - an error occurred * * * @@ -1179,8 +1143,6 @@ int zbx_json_brackets_open(const char *p, struct zbx_json_parse *jp) /****************************************************************************** * * - * Function: zbx_json_brackets_by_name * - * * * Return value: SUCCESS - processed successfully * * FAIL - an error occurred * * * @@ -1202,8 +1164,6 @@ int zbx_json_brackets_by_name(const struct zbx_json_parse *jp, const char *name, /****************************************************************************** * * - * Function: zbx_json_object_is_empty * - * * * Return value: SUCCESS - if object is empty * * FAIL - if object contains data * * * @@ -1217,8 +1177,6 @@ int zbx_json_object_is_empty(const struct zbx_json_parse *jp) /****************************************************************************** * * - * Function: zbx_json_count * - * * * Return value: number of elements in zbx_json_parse object * * * * Author: Alexander Vladishev * @@ -1237,8 +1195,6 @@ int zbx_json_count(const struct zbx_json_parse *jp) /****************************************************************************** * * - * Function: zbx_json_open_path * - * * * Purpose: opens an object by definite json path * * * * Return value: SUCCESS - processed successfully * |