rrd based system stats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
483 B

16 years ago
#ifndef _PLUGINS_H_
#define _PLUGINS_H_
#include <time.h>
16 years ago
#include "list.h"
struct sammler_plugin {
struct list_head list;
void *dlhandle;
15 years ago
const char *name;
/* timing */
unsigned int interval;
time_t lastprobe;
/* flags */
int flags;
int (*init) (void);
int (*fini) (void);
int (*probe) (void);
15 years ago
const char * (*get_ds) (int ds_id);
16 years ago
};
15 years ago
int plugin_init(void);
15 years ago
int plugin_close(void);
15 years ago
struct sammler_plugin * plugin_lookup(const char *name);
16 years ago
#endif /* _PLUGINS_H_ */