summaryrefslogtreecommitdiffstats
path: root/src/detection/physicaldisk/physicaldisk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/detection/physicaldisk/physicaldisk.h')
-rw-r--r--src/detection/physicaldisk/physicaldisk.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/detection/physicaldisk/physicaldisk.h b/src/detection/physicaldisk/physicaldisk.h
new file mode 100644
index 0000000..3481063
--- /dev/null
+++ b/src/detection/physicaldisk/physicaldisk.h
@@ -0,0 +1,17 @@
+#include "fastfetch.h"
+#include "modules/physicaldisk/option.h"
+
+#define FF_PHYSICALDISK_TEMP_UNSET (-DBL_MAX)
+
+typedef struct FFPhysicalDiskResult {
+ FFstrbuf name;
+ FFstrbuf interconnect;
+ FFstrbuf serial;
+ FFstrbuf devPath;
+ FFstrbuf revision;
+ FFPhysicalDiskType type;
+ uint64_t size;
+ double temperature;
+} FFPhysicalDiskResult;
+
+const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options);