static void *do_flush (void *arg)
{
INFO ("Flushing all data.");
- plugin_flush_all (-1);
+ plugin_flush (NULL, -1, NULL);
INFO ("Finished flushing all data.");
pthread_exit (NULL);
return NULL;
pthread_mutex_unlock (&read_lock);
} /* void plugin_read_all */
-void plugin_flush_all (int timeout)
-{
- int (*callback) (int timeout, const char *identifier);
- llentry_t *le;
-
- if (list_flush == NULL)
- return;
-
- le = llist_head (list_flush);
- while (le != NULL)
- {
- callback = (int (*) (int, const char *)) le->value;
- le = le->next;
-
- (*callback) (timeout, NULL);
- }
-} /* void plugin_flush_all */
-
int plugin_flush (const char *plugin, int timeout, const char *identifier)
{
int (*callback) (int timeout, const char *identifier);
void plugin_read_all (void);
void plugin_shutdown_all (void);
-void plugin_flush_all (int timeout);
int plugin_flush (const char *plugin, int timeout, const char *identifier);
/*
}
else
{
- plugin_flush_all (timeout);
+ plugin_flush (NULL, timeout, NULL);
print_to_socket (fh, "0 Done\n");
}