From: octo Date: Thu, 1 Dec 2005 10:45:44 +0000 (+0000) Subject: Merged Niki's changes to `collectd.h' to trunk/ X-Git-Tag: collectd-3.5.0~36 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e33571c1e6b16e53822994c3165e2d4e84604ba5;p=collectd.git Merged Niki's changes to `collectd.h' to trunk/ --- diff --git a/src/collectd.h b/src/collectd.h new file mode 100644 index 00000000..92c7f720 --- /dev/null +++ b/src/collectd.h @@ -0,0 +1,88 @@ +#ifndef COLLECTD_H +#define COLLECTD_H + +#if HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_STAT_H +# include +#endif +#if STDC_HEADERS +#include +#include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include +# endif +# include +#endif +#if HAVE_STRINGS_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#endif +#if HAVE_STDINT_H +# include +#endif +#if HAVE_UNISTD_H +# include +#endif +#include +#include +#include +#include +#include +#include +#include + +#ifndef HAVE_RRD_H +#undef HAVE_LIBRRD +#endif + +#ifdef HAVE_LIBRRD +#include +#endif /* HAVE_LIBRRD */ + +/* Won't work without the header file */ +#ifndef HAVE_KSTAT_H +#undef HAVE_LIBKSTAT +#endif + +#ifdef HAVE_LIBKSTAT +#include +#include +#endif /* HAVE_LIBKSTAT */ + +/* Won't work without the header file */ +#ifndef HAVE_STATGRAB_H +#undef HAVE_LIBSTATGRAB +#endif + +#ifdef HAVE_LIBSTATGRAB +#include +#endif + +#ifndef DEBUG +#define DEBUG 0 +#endif + +#ifndef PLUGINDIR +#define PLUGINDIR "/usr/lib/collectd" +#endif + +#define MODE_SERVER 0x01 +#define MODE_CLIENT 0x02 +#define MODE_LOCAL 0x03 + +#endif /* COLLECTD_H */