diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2020-05-26 18:53:49 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2020-11-04 13:38:03 +0000 |
commit | 7396970afe2290488fd072612a650353dd13a16d (patch) | |
tree | 4600f2a3144f25a578138164f85ef91c70aecfc3 /include/glibtop/disk.h | |
parent | 9cbb3b91f11ad0c4944a1428d609201c054cffab (diff) | |
download | libgtop-7396970afe2290488fd072612a650353dd13a16d.tar.gz |
Code clean up and add example
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); |