From e941b2ada4ef3cad921d0fe87dcc75baf2cdcb73 Mon Sep 17 00:00:00 2001 From: Ondrej Čerman Date: Sat, 16 Oct 2021 22:30:58 +0200 Subject: devices/storage - refactoring - all code that is extending udisks2 information has been moved to separate file. --- includes/storage_util.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 includes/storage_util.h (limited to 'includes/storage_util.h') diff --git a/includes/storage_util.h b/includes/storage_util.h new file mode 100644 index 00000000..8dfed42f --- /dev/null +++ b/includes/storage_util.h @@ -0,0 +1,17 @@ +#include "vendor.h" +#include "pci_util.h" + +// udisks2 drive info extended +typedef struct u2driveext { + udiskd *d; + pcid *nvme_controller; + vendor_list vendors; +} u2driveext; + + +GSList *get_udisks2_drives_ext(); + +u2driveext* u2drive_ext(udiskd * udisks_drive_data); +void u2driveext_free(u2driveext *u); + +void udisks2_shutdown(); -- cgit v1.2.3