projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37bee95
)
src/plugin.c: Reduced `plugin_flush_one' to a tiny legacy function.
author
Florian Forster
<octo@noris.net>
Wed, 20 Aug 2008 10:16:39 +0000
(12:16 +0200)
committer
Florian Forster
<octo@noris.net>
Wed, 20 Aug 2008 10:16:39 +0000
(12:16 +0200)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
629a9f8
..
83ee8e6
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-665,25
+665,6
@@
void plugin_read_all (void)
pthread_mutex_unlock (&read_lock);
} /* void plugin_read_all */
pthread_mutex_unlock (&read_lock);
} /* void plugin_read_all */
-int plugin_flush_one (int timeout, const char *name)
-{
- int (*callback) (int);
- llentry_t *le;
- int status;
-
- if (list_flush == NULL)
- return (-1);
-
- le = llist_search (list_flush, name);
- if (le == NULL)
- return (-1);
- callback = (int (*) (int)) le->value;
-
- status = (*callback) (timeout);
-
- return (status);
-} /* int plugin_flush_ont */
-
void plugin_flush_all (int timeout)
{
int (*callback) (int timeout, const char *identifier);
void plugin_flush_all (int timeout)
{
int (*callback) (int timeout, const char *identifier);
@@
-728,6
+709,12
@@
int plugin_flush (const char *plugin, int timeout, const char *identifier)
return (0);
} /* int plugin_flush */
return (0);
} /* int plugin_flush */
+/* FIXME: Remove this function once the perl plugin has been updated. */
+int plugin_flush_one (int timeout, const char *name)
+{
+ return (plugin_flush (name, timeout, NULL));
+} /* int plugin_flush_one */
+
void plugin_shutdown_all (void)
{
int (*callback) (void);
void plugin_shutdown_all (void)
{
int (*callback) (void);