sammler/plugins.h

30 lines
591 B
C
Raw Normal View History

2006-06-13 21:34:36 +02:00
#ifndef _PLUGINS_H_
#define _PLUGINS_H_
#include "list.h"
#include "logging.h"
2006-09-30 20:27:56 +02:00
#define PLUGIN_RRD 0x01
#define PLUGIN_NET 0x02
2006-06-13 21:34:36 +02:00
struct sammler_plugin {
struct list_head list;
char *name;
unsigned int interval;
unsigned long lastprobe;
2006-06-13 21:34:36 +02:00
void (*probe) (void);
char * (*get_ds) (int ds_id);
2006-06-13 21:34:36 +02:00
};
2006-09-30 20:27:56 +02:00
void plugin_init(int flags);
2006-06-13 21:34:36 +02:00
void plugins_probe(void);
2006-09-30 20:27:56 +02:00
struct sammler_plugin * plugin_lookup(char *name);
2006-06-13 21:34:36 +02:00
void probe_submit(struct sammler_plugin *plugin, char *filename, int ds_id, const char *fmt, ... );
int strsplit(char *string, char **fields, size_t size);
#endif /* _PLUGINS_H_ */