X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcommon.h;h=229f7098d6c8948ed69656f5dc30d3e69f47d705;hb=40dfca383199dfd178b3359f69d5732732f29b29;hp=c0bea36effacfe7390d8a790014a271fc7ce69e7;hpb=593ea76dca367478b92e17f91e663fe7c67b4df9;p=collectd.git diff --git a/src/common.h b/src/common.h index c0bea36e..229f7098 100644 --- a/src/common.h +++ b/src/common.h @@ -291,6 +291,8 @@ counter_t counter_diff (counter_t old_value, counter_t new_value); * (in the range [1-65535]). Returns less than zero on error. */ int service_name_to_port_number (const char *service_name); +/** Parse a string to a derive_t value. Returns zero on success or non-zero on + * failure. If failure is returned, ret_value is not touched. */ int strtoderive (const char *string, derive_t *ret_value); #endif /* COMMON_H */