X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcommon.h;h=6b11b538db8a69ef001e7e7b28843d519d9ebe6b;hp=e6b899de5c8114b26c0413f980056dbbd9b91c0d;hb=483e801902bca3c779793224eddf3bb2749d7288;hpb=8991abf98de418b8464aa0f3251b024c9292da96 diff --git a/src/common.h b/src/common.h index e6b899de..6b11b538 100644 --- a/src/common.h +++ b/src/common.h @@ -287,6 +287,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);