sammler/include/plugins.h

31 lines
492 B
C
Raw Normal View History

2006-06-13 21:34:36 +02:00
#ifndef _PLUGINS_H_
#define _PLUGINS_H_
2007-03-31 23:21:31 +02:00
#include <time.h>
2006-06-13 21:34:36 +02:00
#include "list.h"
#include "logging.h"
struct sammler_plugin {
struct list_head list;
2007-03-31 22:31:07 +02:00
const char *name;
2007-03-31 23:21:31 +02:00
/* timing */
unsigned int interval;
2007-03-31 23:21:31 +02:00
time_t lastprobe;
/* scratchpad memory */
int bufsize;
char *buffer;
2006-10-07 20:37:30 +02:00
int (*init) (void);
int (*fini) (void);
int (*probe) (void);
2007-03-31 22:31:07 +02:00
const char * (*get_ds) (int ds_id);
2006-06-13 21:34:36 +02:00
};
2007-04-01 00:17:50 +02:00
int plugin_init(void);
2007-03-31 22:31:07 +02:00
struct sammler_plugin * plugin_lookup(const char *name);
2006-06-13 21:34:36 +02:00
#endif /* _PLUGINS_H_ */