summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-06-02 16:20:15 +0000
committerMartin Baulig <martin@src.gnome.org>1998-06-02 16:20:15 +0000
commit7f39d62371933fab64a352845379a1ad158d77b8 (patch)
tree6549acc01dc0bdd95cc69293993f63ca947ae326 /include
parent6f179a314134e9db75853ce39ffe9a6741793c76 (diff)
downloadlibgtop-7f39d62371933fab64a352845379a1ad158d77b8.tar.gz
tells `glibtop_open' to use the default server and not to check the
* include/glibtop/open.h (GLIBTOP_OPEN_NO_OVERRIDE): tells `glibtop_open' to use the default server and not to check the environment variables. * include/glibtop/sysdeps.h (_glibtop_sysdeps): renamed 'dummy' member to 'features'. * include/glibtop/command.h (GLIBTOP_CMND_SYSDEPS): added definition here.
Diffstat (limited to 'include')
-rw-r--r--include/glibtop/command.h40
-rw-r--r--include/glibtop/open.h2
-rw-r--r--include/glibtop/sysdeps.h4
3 files changed, 25 insertions, 21 deletions
diff --git a/include/glibtop/command.h b/include/glibtop/command.h
index daf31227..ce83c618 100644
--- a/include/glibtop/command.h
+++ b/include/glibtop/command.h
@@ -28,25 +28,27 @@
__BEGIN_DECLS
#define GLIBTOP_CMND_QUIT 0
-#define GLIBTOP_CMND_CPU 1
-#define GLIBTOP_CMND_MEM 2
-#define GLIBTOP_CMND_SWAP 3
-#define GLIBTOP_CMND_UPTIME 4
-#define GLIBTOP_CMND_LOADAVG 5
-#define GLIBTOP_CMND_SHM_LIMITS 6
-#define GLIBTOP_CMND_MSG_LIMITS 7
-#define GLIBTOP_CMND_SEM_LIMITS 8
-#define GLIBTOP_CMND_PROCLIST 9
-
-#define GLIBTOP_CMND_PROC_STATE 10
-#define GLIBTOP_CMND_PROC_UID 11
-#define GLIBTOP_CMND_PROC_MEM 12
-#define GLIBTOP_CMND_PROC_TIME 13
-#define GLIBTOP_CMND_PROC_SIGNAL 14
-#define GLIBTOP_CMND_PROC_KERNEL 15
-#define GLIBTOP_CMND_PROC_SEGMENT 16
-
-#define GLIBTOP_MAX_CMND 17
+#define GLIBTOP_CMND_SYSDEPS 1
+
+#define GLIBTOP_CMND_CPU 2
+#define GLIBTOP_CMND_MEM 3
+#define GLIBTOP_CMND_SWAP 4
+#define GLIBTOP_CMND_UPTIME 5
+#define GLIBTOP_CMND_LOADAVG 6
+#define GLIBTOP_CMND_SHM_LIMITS 7
+#define GLIBTOP_CMND_MSG_LIMITS 8
+#define GLIBTOP_CMND_SEM_LIMITS 9
+#define GLIBTOP_CMND_PROCLIST 10
+
+#define GLIBTOP_CMND_PROC_STATE 11
+#define GLIBTOP_CMND_PROC_UID 12
+#define GLIBTOP_CMND_PROC_MEM 13
+#define GLIBTOP_CMND_PROC_TIME 14
+#define GLIBTOP_CMND_PROC_SIGNAL 15
+#define GLIBTOP_CMND_PROC_KERNEL 16
+#define GLIBTOP_CMND_PROC_SEGMENT 17
+
+#define GLIBTOP_MAX_CMND 18
typedef struct _glibtop_command glibtop_command;
diff --git a/include/glibtop/open.h b/include/glibtop/open.h
index 9a1dbe05..83674a55 100644
--- a/include/glibtop/open.h
+++ b/include/glibtop/open.h
@@ -26,7 +26,7 @@
__BEGIN_DECLS
-#define GLIBTOP_OPEN_IMMEDIATE 1
+#define GLIBTOP_OPEN_NO_OVERRIDE 1
extern void glibtop_open __P((glibtop *, const char *, const unsigned long, const unsigned));
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h
index b8dd8f98..8bbcba2b 100644
--- a/include/glibtop/sysdeps.h
+++ b/include/glibtop/sysdeps.h
@@ -47,12 +47,14 @@ __BEGIN_DECLS
#define GLIBTOP_MAX_SYSDEPS 17
+#define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1)
+
typedef struct _glibtop_sysdeps glibtop_sysdeps;
struct _glibtop_sysdeps
{
unsigned long flags,
- dummy, /* dummy field */
+ features, /* server features */
cpu, /* glibtop_cpu */
mem, /* glibtop_mem */
swap, /* glibtop_swap */