summaryrefslogtreecommitdiffstats
path: root/src/plugin_freebsd.h
diff options
context:
space:
mode:
authorLennart Weller <lhw@ring0.de>2017-01-24 15:21:09 +0000
committerLennart Weller <lhw@ring0.de>2017-01-24 15:21:09 +0000
commit3ed3b02ed96ddab1c084811f3579b3a2aec83e04 (patch)
tree7a61ab288ae47800c4f11be5677d6ad8288dcd98 /src/plugin_freebsd.h
parentNew upstream version 1.4.0+dfsg (diff)
downloadnetdata-3ed3b02ed96ddab1c084811f3579b3a2aec83e04.tar.xz
netdata-3ed3b02ed96ddab1c084811f3579b3a2aec83e04.zip
New upstream version 1.5.0+dfsgupstream/1.5.0+dfsg
Diffstat (limited to 'src/plugin_freebsd.h')
-rw-r--r--src/plugin_freebsd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugin_freebsd.h b/src/plugin_freebsd.h
new file mode 100644
index 00000000..e4767a09
--- /dev/null
+++ b/src/plugin_freebsd.h
@@ -0,0 +1,14 @@
+#ifndef NETDATA_PLUGIN_FREEBSD_H
+#define NETDATA_PLUGIN_FREEBSD_H 1
+
+#include <sys/sysctl.h>
+
+#define GETSYSCTL(name, var) getsysctl(name, &(var), sizeof(var))
+
+void *freebsd_main(void *ptr);
+
+int getsysctl(const char *name, void *ptr, size_t len);
+
+extern int do_freebsd_sysctl(int update_every, usec_t dt);
+
+#endif /* NETDATA_PLUGIN_FREEBSD_H */