summaryrefslogtreecommitdiffstats
path: root/src/detection/physicaldisk/physicaldisk.h
diff options
context:
space:
mode:
authorsumuel <samuel@yakubos.org>2026-08-17 20:44:55 +0000
committersumuel <samuel@yakubos.org>2026-08-17 20:44:55 +0000
commit76424950e373d3b04ac3dd13019151bfba3e8423 (patch)
tree4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/physicaldisk/physicaldisk.h
Add the files
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);