diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2021-04-10 18:20:21 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2021-04-23 09:48:11 +0000 |
commit | 2ec1815e6ce8da65244c18fbad56c06721f737cb (patch) | |
tree | ebceef606186b5c901c9b4a8edf8fb226c074a96 /include/glibtop/disk.h | |
parent | 48595809ed33c216a05a7fb0b0ac73dcd4635624 (diff) | |
download | libgtop-2ec1815e6ce8da65244c18fbad56c06721f737cb.tar.gz |
Revert "Revert "Code clean up and add example""
This reverts commit ea08151ae6582a438db76b738293a0194c964b88.
Diffstat (limited to 'include/glibtop/disk.h')
-rw-r--r-- | include/glibtop/disk.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/glibtop/disk.h b/include/glibtop/disk.h index cdde7796..292924f6 100644 --- a/include/glibtop/disk.h +++ b/include/glibtop/disk.h @@ -46,16 +46,20 @@ struct _partition_info { char name[256]; char type[256]; - char raid_num[256]; + char raid_num[256]; int max; }; +typedef struct _partition_info partition_info; + struct _glibtop_disk { + guint64 flags; guint64 xdisk_sectors_read [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_SECTORS_READ */ guint64 xdisk_time_read [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_TIME_READ */ guint64 xdisk_sectors_write [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_SECTORS_WRITE */ guint64 xdisk_time_write [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_TIME_WRITE */ + guint64 xdisk_flags; }; void glibtop_get_disk (glibtop_disk *buf); |