|
|
|
@ -377,7 +377,6 @@ int cli_matchregex(const char *str, const char *regex); |
|
|
|
|
enum cli_ftw_reason { |
|
|
|
|
visit_file, |
|
|
|
|
visit_directory_toplev, /* this is a directory at toplevel of recursion */ |
|
|
|
|
/* must not free its args in the below cases! */ |
|
|
|
|
error_mem, /* recommended to return CL_EMEM */ |
|
|
|
|
/* recommended to return CL_SUCCESS below */ |
|
|
|
|
error_stat, |
|
|
|
@ -398,7 +397,7 @@ struct cli_ftw_cbdata { |
|
|
|
|
* after an error, we call the callback with reason == error, |
|
|
|
|
* and if it returns CL_BREAK we break. |
|
|
|
|
*/ |
|
|
|
|
typedef int (*cli_ftw_cb)(struct stat *stat_buf, char *filename, const char *msg, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data); |
|
|
|
|
typedef int (*cli_ftw_cb)(struct stat *stat_buf, char *filename, const char *path, enum cli_ftw_reason reason, struct cli_ftw_cbdata *data); |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* returns
|
|
|
|
|