X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_match.h;h=31dc66d804b84cfc18685e37076d47aa26b503ca;hb=bd1624ece305c788d504c81ade52043c427deca2;hp=d43ae3b340a578e2be647c53afde1152fa2fb7ce;hpb=d5d9ee62b8b7a98e2b50fa47ef464c9316dfeb12;p=collectd.git diff --git a/src/daemon/utils_match.h b/src/daemon/utils_match.h index d43ae3b3..31dc66d8 100644 --- a/src/daemon/utils_match.h +++ b/src/daemon/utils_match.h @@ -94,11 +94,13 @@ typedef struct cu_match_value_s cu_match_value_t; * callback. * The optional `excluderegex' allows to exclude the line from the match, if * the excluderegex matches. + * When `match_destroy' is called the `user_data' pointer is freed using + * the `free_user_data' callback - if it is not NULL. */ cu_match_t *match_create_callback (const char *regex, const char *excluderegex, int (*callback) (const char *str, char * const *matches, size_t matches_num, void *user_data), - void *user_data); + void *user_data, void (*free_user_data) (void *user_data)); /* * NAME