X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcommon.h;h=f463b77e0c3b6f95707a4092d8f5310979ce3b5e;hb=893be621d97b7984a46ff142afa12c1b404731ae;hp=119cee6dcc2952cb640df0af01d4a63bed5420e2;hpb=c7d512b9bb311d2a21ad07b75e0bd30085e41411;p=collectd.git diff --git a/src/common.h b/src/common.h index 119cee6d..f463b77e 100644 --- a/src/common.h +++ b/src/common.h @@ -203,8 +203,10 @@ int notification_init (notification_t *n, int severity, const char *message, (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); +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 read_file_contents (const char *filename, char *buf, int bufsize); #endif /* COMMON_H */