projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collection.conf: Add some more graphs.
[collection4.git]
/
common.h
diff --git
a/common.h
b/common.h
index
f70d385
..
2b5662f
100644
(file)
--- a/
common.h
+++ b/
common.h
@@
-4,14
+4,6
@@
#include <stdint.h>
#include <inttypes.h>
#include <stdint.h>
#include <inttypes.h>
-#define DATA_DIR "/var/lib/collectd/rrd"
-
-#include "graph_list.h"
-
-typedef int (*callback_type_t) (const char *type, void *user_data);
-typedef int (*callback_plugin_t) (const char *plugin, void *user_data);
-typedef int (*callback_host_t) (const char *host, void *user_data);
-
int print_debug (const char *format, ...)
__attribute__((format(printf,1,2)));
#if 0
int print_debug (const char *format, ...)
__attribute__((format(printf,1,2)));
#if 0
@@
-20,11
+12,6
@@
int print_debug (const char *format, ...)
# define DEBUG(...) /**/
#endif
# define DEBUG(...) /**/
#endif
-int foreach_type (const char *host, const char *plugin,
- callback_type_t, void *user_data);
-int foreach_plugin (const char *host, callback_plugin_t, void *user_data);
-int foreach_host (callback_host_t, void *user_data);
-
size_t c_strlcat (char *dst, const char *src, size_t size);
#define strlcat c_strlcat
size_t c_strlcat (char *dst, const char *src, size_t size);
#define strlcat c_strlcat