From 2ec1815e6ce8da65244c18fbad56c06721f737cb Mon Sep 17 00:00:00 2001 From: "James Dominic P. Guana" Date: Sat, 10 Apr 2021 18:20:21 +0800 Subject: Revert "Revert "Code clean up and add example"" This reverts commit ea08151ae6582a438db76b738293a0194c964b88. --- include/glibtop/disk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/glibtop/disk.h') 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); -- cgit v1.2.1