diff options
author | Ondrej Čerman <ondrej.cerman@gmail.com> | 2021-10-16 22:30:58 +0200 |
---|---|---|
committer | Ondrej Čerman <ondrej.cerman@gmail.com> | 2021-10-17 22:26:13 +0200 |
commit | e941b2ada4ef3cad921d0fe87dcc75baf2cdcb73 (patch) | |
tree | ea9b43f9c8be4469cf7c10a73b62504e579c5990 /includes | |
parent | 7d647c8eafb9d408f8984c24774e2c1e3339cca0 (diff) |
devices/storage - refactoring - all code that is extending udisks2 information has been moved to separate file.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/storage_util.h | 17 | ||||
-rw-r--r-- | includes/udisks2_util.h | 3 |
2 files changed, 17 insertions, 3 deletions
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(); diff --git a/includes/udisks2_util.h b/includes/udisks2_util.h index a64ca3e2..0af221b9 100644 --- a/includes/udisks2_util.h +++ b/includes/udisks2_util.h @@ -1,5 +1,4 @@ #include "vendor.h" -#include "pci_util.h" typedef struct udiskp { gchar *block; @@ -55,8 +54,6 @@ typedef struct udiskd { gint64 smart_bad_sectors; gint32 smart_temperature; udisksa *smart_attributes; - pcid *nvme_controller; - vendor_list vendors; } udiskd; typedef struct udiskt { |