X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcommon.h;h=c292abfdfb587cf7a3c6a619df968f6de443deca;hb=1cdf817c74f6c4e2136dce840ab33af072f91733;hp=229f7098d6c8948ed69656f5dc30d3e69f47d705;hpb=cb2155af369ed84a6badba6d3ebab3e5ae37c245;p=collectd.git diff --git a/src/common.h b/src/common.h index 229f7098..c292abfd 100644 --- a/src/common.h +++ b/src/common.h @@ -283,6 +283,7 @@ typedef int (*dirwalk_callback_f)(const char *dirname, const char *filename, void *user_data); int walk_directory (const char *dir, dirwalk_callback_f callback, void *user_data, int hidden); +/* Returns the number of bytes read or negative on error. */ int read_file_contents (const char *filename, char *buf, int bufsize); counter_t counter_diff (counter_t old_value, counter_t new_value);