X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcommon.h;h=a5e2167b6c1e3565a96d2e399aee0616923f3133;hb=92445ff3363441d0f515de4a3ab92a504cfc0366;hp=d142679f6b908b3f562b32e2dd503068c0a2f396;hpb=d98487a27d294e31f483b9d43e0d6c02717d248c;p=collectd.git diff --git a/src/common.h b/src/common.h index d142679f..a5e2167b 100644 --- a/src/common.h +++ b/src/common.h @@ -200,4 +200,9 @@ int notification_init (notification_t *n, int severity, const char *message, notification_init (n, NOTIF_FAILURE, NULL, \ (vl)->host, (vl)->plugin, (vl)->plugin_instance, \ (ds)->type, (vl)->type_instance) + +typedef int (*dirwalk_callback_f)(const char *filename); +int walk_directory (const char *dir, dirwalk_callback_f callback); +int read_file_contents (const char *filename, char *buf, int bufsize); + #endif /* COMMON_H */