From: Sebastian Harl Date: Thu, 5 Feb 2009 20:05:01 +0000 (+0100) Subject: src/plugin.[ch]: Removed obsolete plugin_{un,}register_filter(). X-Git-Tag: collectd-4.6.0~56 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3bd9bde9016b3448a65fce324907b4d6e8d6a08d;p=collectd.git src/plugin.[ch]: Removed obsolete plugin_{un,}register_filter(). These have been superseded by the advanced filter mechanism. Also, the FILTER_* defines have been removed. --- diff --git a/src/plugin.c b/src/plugin.c index cd7b1083..4aabebe3 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -56,7 +56,6 @@ typedef struct read_func_s read_func_t; static llist_t *list_init; static llist_t *list_read; static llist_t *list_write; -static llist_t *list_filter; static llist_t *list_flush; static llist_t *list_shutdown; static llist_t *list_log; @@ -450,12 +449,6 @@ int plugin_register_write (const char *name, return (register_callback (&list_write, name, (void *) callback)); } /* int plugin_register_write */ -int plugin_register_filter (const char *name, - int (*callback) (const data_set_t *ds, value_list_t *vl)) -{ - return (register_callback (&list_filter, name, (void *) callback)); -} /* int plugin_register_filter */ - int plugin_register_flush (const char *name, int (*callback) (const int timeout, const char *identifier)) { @@ -556,11 +549,6 @@ int plugin_unregister_write (const char *name) return (plugin_unregister (list_write, name)); } -int plugin_unregister_filter (const char *name) -{ - return (plugin_unregister (list_filter, name)); -} - int plugin_unregister_flush (const char *name) { return (plugin_unregister (list_flush, name)); diff --git a/src/plugin.h b/src/plugin.h index 4f4a3602..f4ca783c 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -52,11 +52,6 @@ #define NOTIF_WARNING 2 #define NOTIF_OKAY 4 -#define FILTER_NOWRITE 1 -#define FILTER_NOTHRESHOLD_CHECK 2 -/* FILTER_IGNORE has to equal the bitwise or of all other filter flags */ -#define FILTER_IGNORE (FILTER_NOWRITE | FILTER_NOTHRESHOLD_CHECK) - /* * Public data types */ @@ -232,8 +227,6 @@ int plugin_register_read (const char *name, int (*callback) (void)); int plugin_register_write (const char *name, int (*callback) (const data_set_t *ds, const value_list_t *vl)); -int plugin_register_filter (const char *name, - int (*callback) (const data_set_t *ds, value_list_t *vl)); int plugin_register_flush (const char *name, int (*callback) (const int timeout, const char *identifier)); int plugin_register_shutdown (char *name, @@ -249,7 +242,6 @@ int plugin_unregister_complex_config (const char *name); int plugin_unregister_init (const char *name); int plugin_unregister_read (const char *name); int plugin_unregister_write (const char *name); -int plugin_unregister_filter (const char *name); int plugin_unregister_flush (const char *name); int plugin_unregister_shutdown (const char *name); int plugin_unregister_data_set (const char *name);