about summary refs log tree commit diff
path: root/hwmon.c
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-11-30 11:51:58 +0000
committerHeikki Kallasjoki <fis@zem.fi>2018-11-30 11:51:58 +0000
commit3509dc92b07c95d47aada5bd8656132ef842371a (patch)
tree17404b5af2f2714bb30c87473f38045f96712d60 /hwmon.c
parentc4c6a42b5e7de3ce2e8dfffed9141a3186185644 (diff)
downloadnano-exporter-3509dc92b07c95d47aada5bd8656132ef842371a.tar.gz
nano-exporter-3509dc92b07c95d47aada5bd8656132ef842371a.tar.xz
nano-exporter-3509dc92b07c95d47aada5bd8656132ef842371a.zip
Refactor to allow excluding collectors from the build.
Stop including hardcoded links to all collectors from main.c. Instead,
use a preprocessor X-macro "XCOLLECTORS" to take the list of
collectors, and use that to declare the external "struct collector"
objects and the list of collectors.
Diffstat (limited to 'hwmon.c')
-rw-r--r--hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwmon.c b/hwmon.c
index 11b6b87..4ec7b8a 100644
--- a/hwmon.c
+++ b/hwmon.c
@@ -7,7 +7,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#include "hwmon.h"
+#include "collector.h"
 
 // size of input buffer for paths and lines
 #define BUF_SIZE 256