summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bc7992e)
raw | patch | inline | side by side (parent: bc7992e)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 5 Feb 2009 20:05:01 +0000 (21:05 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 5 Feb 2009 20:10:27 +0000 (21:10 +0100) |
These have been superseded by the advanced filter mechanism. Also, the
FILTER_* defines have been removed.
FILTER_* defines have been removed.
src/plugin.c | patch | blob | history | |
src/plugin.h | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index cd7b10834c4559f8e456ef8e6efe20bdf51f4271..4aabebe34c4927b7be782a1b7a531f9bd5938ea1 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
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;
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))
{
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 4f4a360299b7214ac6821620ab55cc906bb0f441..f4ca783cc526fb69ab968fdccac8ee4a507f2b4f 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
#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
*/
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,
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);