31 lines
492 B
C
31 lines
492 B
C
#ifndef _PLUGINS_H_
|
|
#define _PLUGINS_H_
|
|
|
|
#include <time.h>
|
|
|
|
#include "list.h"
|
|
#include "logging.h"
|
|
|
|
struct sammler_plugin {
|
|
struct list_head list;
|
|
const char *name;
|
|
|
|
/* timing */
|
|
unsigned int interval;
|
|
time_t lastprobe;
|
|
|
|
/* scratchpad memory */
|
|
int bufsize;
|
|
char *buffer;
|
|
|
|
int (*init) (void);
|
|
int (*fini) (void);
|
|
int (*probe) (void);
|
|
const char * (*get_ds) (int ds_id);
|
|
};
|
|
|
|
int plugin_init(void);
|
|
struct sammler_plugin * plugin_lookup(const char *name);
|
|
|
|
#endif /* _PLUGINS_H_ */
|