X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcommon.h;h=6b11b538db8a69ef001e7e7b28843d519d9ebe6b;hb=a7afd4e00c2fe8f070a640a8dccdd3af673c8a2c;hp=e6b899de5c8114b26c0413f980056dbbd9b91c0d;hpb=3904b4b9fd1a53c93f31d8fec709a7b7b8300513;p=collectd.git 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);