summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-12-19 15:07:13 +0000
committerMartin Baulig <martin@src.gnome.org>1999-12-19 15:07:13 +0000
commitd4b712db86c22ec44926fba76a418e98778b4e4e (patch)
treeb5b73a62e3cfa265f7b8d6a4ab21107c3d92f778 /glibtop.h
parent339e1f4557a89739e56ef2e4bf81ad22fcaadd35 (diff)
downloadlibgtop-d4b712db86c22ec44926fba76a418e98778b4e4e.tar.gz
New file. This is a private header file which defines `struct
1999-12-19 Martin Baulig <martin@home-of-linux.org> * glibtop-server-private.h: New file. This is a private header file which defines `struct _glibtop_server_private'. * glibtop.h (glibtop): Added `glibtop_server_private *_priv' field and moved some private fields there.
Diffstat (limited to 'glibtop.h')
-rw-r--r--glibtop.h39
1 files changed, 9 insertions, 30 deletions
diff --git a/glibtop.h b/glibtop.h
index 1ff0006d..39e5b11f 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -34,27 +34,24 @@
#include <glibtop_server.h>
#include <glibtop/types.h>
-#ifdef HAVE_GLIBTOP_MACHINE_H
-#include <glibtop_machine.h>
-#endif
+BEGIN_LIBGTOP_DECLS
-typedef struct _glibtop glibtop;
+typedef struct _glibtop glibtop;
+typedef struct _glibtop_server_private glibtop_server_private;
#include <glibtop/sysdeps.h>
#include <glibtop/errors.h>
+#ifdef _IN_LIBGTOP
+#include <glibtop-server-private.h>
+#endif
+
struct _glibtop
{
int refcount; /* Reference count */
unsigned flags;
unsigned method; /* Server Method */
unsigned error_method; /* Error Method */
-#ifdef HAVE_GLIBTOP_MACHINE_H
- glibtop_machine machine; /* Machine dependent data */
-#endif
- int input [2]; /* Pipe client <- server */
- int output [2]; /* Pipe client -> server */
- int socket; /* Accepted connection of a socket */
int ncpu; /* Number of CPUs, zero if single-processor */
unsigned long os_version_code; /* Version code of the operating system */
const char *name; /* Program name for error messages */
@@ -67,7 +64,7 @@ struct _glibtop
glibtop_sysdeps sysdeps; /* Detailed feature list */
glibtop_sysdeps required; /* Required feature list */
glibtop_sysdeps wanted; /* We only want this features */
- pid_t pid; /* PID of the server */
+ glibtop_server_private *_priv; /* Private data */
};
extern glibtop *glibtop_global_server;
@@ -94,24 +91,6 @@ glibtop_server_ref (glibtop *server);
void
glibtop_server_unref (glibtop *server);
-#ifdef GLIBTOP_GUILE
-
-/* You need to link with -lgtop_guile to get this stuff here. */
-
-void glibtop_boot_guile (void);
-
-#endif
-
-#ifdef GLIBTOP_GUILE_NAMES
-
-/* You need to link with -lgtop_guile_names to get this stuff here. */
-
-void glibtop_boot_guile_names (void);
-
-#ifndef GLIBTOP_NAMES
-#define GLIBTOP_NAMES
-#endif
-
-#endif
+END_LIBGTOP_DECLS
#endif