X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail_match.h;h=6c6019a09c64da7caaebe4d4256a7d2113bd8828;hb=fd01cdd0546ccbbda7f4cf5db2d0ae28e1e770cd;hp=0404de2f2b6cfb14fbef5b34357366843d99ebff;hpb=791e99923dbbf045b11fbd7b0ea8df647e29593e;p=collectd.git diff --git a/src/daemon/utils_tail_match.h b/src/daemon/utils_tail_match.h index 0404de2f..6c6019a0 100644 --- a/src/daemon/utils_tail_match.h +++ b/src/daemon/utils_tail_match.h @@ -51,7 +51,7 @@ typedef struct cu_tail_match_s cu_tail_match_t; * RETURN VALUE * Returns NULL upon failure, non-NULL otherwise. */ -cu_tail_match_t *tail_match_create (const char *filename); +cu_tail_match_t *tail_match_create(const char *filename); /* * NAME @@ -63,7 +63,7 @@ cu_tail_match_t *tail_match_create (const char *filename); * PARAMETERS * The object to destroy. */ -void tail_match_destroy (cu_tail_match_t *obj); +void tail_match_destroy(cu_tail_match_t *obj); /* * NAME @@ -78,28 +78,32 @@ void tail_match_destroy (cu_tail_match_t *obj); * matched any lines recently or not. * When `tail_match_destroy' is called the `user_data' pointer is freed using * the `free_user_data' callback - if it is not NULL. - * When using this interface the `tail_match' module doesn't dispatch any values + * When using this interface the `tail_match' module doesn't dispatch any + * values * itself - all that has to happen in either the match-callbacks or the * submit_match callback. * * RETURN VALUE * Zero upon success, non-zero otherwise. */ -int tail_match_add_match (cu_tail_match_t *obj, cu_match_t *match, - int (*submit_match) (cu_match_t *match, void *user_data), - void *user_data, - void (*free_user_data) (void *user_data)); +int tail_match_add_match(cu_tail_match_t *obj, cu_match_t *match, + int (*submit_match)(cu_match_t *match, + void *user_data), + void *user_data, + void (*free_user_data)(void *user_data)); /* * NAME * tail_match_add_match_simple * * DESCRIPTION - * A simplified version of `tail_match_add_match'. The regular expressen `regex' + * A simplified version of `tail_match_add_match'. The regular expressen + * `regex' * must match a number, which is then dispatched according to `ds_type'. See * the `match_create_simple' function in utils_match.h for a description how * this flag effects calculation of a new value. - * The values gathered are dispatched by the tail_match module in this case. The + * The values gathered are dispatched by the tail_match module in this case. + * The * passed `plugin', `plugin_instance', `type', and `type_instance' are * directly used when submitting these values. * With excluderegex it is possible to exlude lines from the match. @@ -107,10 +111,11 @@ int tail_match_add_match (cu_tail_match_t *obj, cu_match_t *match, * RETURN VALUE * Zero upon success, non-zero otherwise. */ -int tail_match_add_match_simple (cu_tail_match_t *obj, - const char *regex, const char *excluderegex, int ds_type, - const char *plugin, const char *plugin_instance, - const char *type, const char *type_instance, const cdtime_t interval); +int tail_match_add_match_simple(cu_tail_match_t *obj, const char *regex, + const char *excluderegex, int ds_type, + const char *plugin, const char *plugin_instance, + const char *type, const char *type_instance, + const cdtime_t interval); /* * NAME @@ -121,12 +126,13 @@ int tail_match_add_match_simple (cu_tail_match_t *obj, * from the logfile using `utils_tail' and tries to match them using all * added `utils_match' objects. * After all lines have been read and processed, the submit_match callback is - * called or, in case of tail_match_add_match_simple, the data is dispatched to + * called or, in case of tail_match_add_match_simple, the data is dispatched + * to * the daemon directly. * * RETURN VALUE * Zero on success, nonzero on failure. */ -int tail_match_read (cu_tail_match_t *obj); +int tail_match_read(cu_tail_match_t *obj); /* vim: set sw=2 sts=2 ts=8 : */