X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon.h;h=a5e2167b6c1e3565a96d2e399aee0616923f3133;hb=0421d0d777f6df3cf78fd5366c82b0ed7adb9684;hp=d142679f6b908b3f562b32e2dd503068c0a2f396;hpb=c28bc580c110c78741d0805c7652e05d994b0ff4;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 */