#include <sys/param.h>
#endif
-#if HAVE_KSTAT_H
-#include <kstat.h>
-#endif
-
#ifndef PACKAGE_NAME
#define PACKAGE_NAME "collectd"
#endif
#include "common.h"
#include "globals.h"
-#include "plugin.h"
void hostname_set(char const *hostname) {
sstrncpy(hostname_g, hostname, sizeof(hostname_g));
}
+/*
+ * Global variables
+ */
char *hostname_g;
cdtime_t interval_g;
-int pidfile_from_cli = 0;
int timeout_g;
-#if HAVE_LIBKSTAT
kstat_ctl_t *kc;
-#endif /* HAVE_LIBKSTAT */
+
#include <inttypes.h>
+#if HAVE_KSTAT_H
+#include <kstat.h>
+#endif
+
+#ifndef DATA_MAX_NAME_LEN
+#define DATA_MAX_NAME_LEN 128
+#endif
+
/* Type for time as used by "utils_time.h" */
typedef uint64_t cdtime_t;
#include <pthread.h>
-#ifndef DATA_MAX_NAME_LEN
-#define DATA_MAX_NAME_LEN 128
-#endif
-
#define DS_TYPE_COUNTER 0
#define DS_TYPE_GAUGE 1
#define DS_TYPE_DERIVE 2