summaryrefslogtreecommitdiff
path: root/include/glibtop/mountlist.h
diff options
context:
space:
mode:
authorCarlos Perelló Marín <carlos@gnome.org>2003-10-19 16:10:39 +0000
committerCarlos Perelló Marín <carlos@src.gnome.org>2003-10-19 16:10:39 +0000
commitbae16b467f90df94d80feae41dceb7e816f16c61 (patch)
tree1c98f8b6769b7ca7a97a3de111e52f748a79ebe8 /include/glibtop/mountlist.h
parent5e28a552185df50f96b7ffce9c26755cff8c47d0 (diff)
downloadlibgtop-bae16b467f90df94d80feae41dceb7e816f16c61.tar.gz
libgtop-GNOME-2-0-branch moved to HEAD.
2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * libgtop-GNOME-2-0-branch moved to HEAD.
Diffstat (limited to 'include/glibtop/mountlist.h')
-rw-r--r--include/glibtop/mountlist.h37
1 files changed, 25 insertions, 12 deletions
diff --git a/include/glibtop/mountlist.h b/include/glibtop/mountlist.h
index 60c46fb1..2927b5a7 100644
--- a/include/glibtop/mountlist.h
+++ b/include/glibtop/mountlist.h
@@ -1,5 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -29,28 +27,43 @@
#include <glibtop.h>
#include <glibtop/global.h>
-#include <glibtop/compat_10.h>
-#include <glibtop/array.h>
+BEGIN_LIBGTOP_DECLS
+
+#define GLIBTOP_MOUNTLIST_NUMBER 0
+#define GLIBTOP_MOUNTLIST_TOTAL 1
+#define GLIBTOP_MOUNTLIST_SIZE 2
-G_BEGIN_DECLS
+#define GLIBTOP_MAX_MOUNTLIST 3
typedef struct _glibtop_mountentry glibtop_mountentry;
+typedef struct _glibtop_mountlist glibtop_mountlist;
+
struct _glibtop_mountentry
{
- u_int64_t dev;
- char devname [GLIBTOP_MOUNTENTRY_LEN+1];
- char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
- char type [GLIBTOP_MOUNTENTRY_LEN+1];
+ u_int64_t dev;
+ char devname [GLIBTOP_MOUNTENTRY_LEN+1];
+ char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
+ char type [GLIBTOP_MOUNTENTRY_LEN+1];
};
+struct _glibtop_mountlist
+{
+ u_int64_t flags,
+ number, /* GLIBTOP_MOUNTLIST_NUMBER */
+ total, /* GLIBTOP_MOUNTLIST_TOTAL */
+ size; /* GLIBTOP_MOUNTLIST_SIZE */
+};
+
+#define glibtop_get_mountlist(mountlist,all_fs) glibtop_get_mountlist_l(glibtop_global_server, mountlist, all_fs)
+
#define glibtop_get_mountlist_r glibtop_get_mountlist_s
glibtop_mountentry *
-glibtop_get_mountlist_l (glibtop_client *client, glibtop_array *array, int all_fs);
+glibtop_get_mountlist_l (glibtop *server, glibtop_mountlist *buf, int all_fs);
glibtop_mountentry *
-glibtop_get_mountlist_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, int all_fs);
+glibtop_get_mountlist_s (glibtop *server, glibtop_mountlist *buf, int all_fs);
#ifdef GLIBTOP_NAMES
@@ -63,6 +76,6 @@ extern const char *glibtop_descriptions_mountlist [];
#endif
-G_END_DECLS
+END_LIBGTOP_DECLS
#endif