summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorBenoît Dejean <benoit@placenet.org>2006-12-03 18:21:01 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2006-12-03 18:21:01 +0000
commit63fb94127afa001e912a1aa5ed2096643c980edf (patch)
tree50825abbaeff8128d66da85206eb5f5c77f3a64a /glibtop.h
parent37fc9c1544b323009bc9a839b7b7fb64d581bfdb (diff)
downloadlibgtop-63fb94127afa001e912a1aa5ed2096643c980edf.tar.gz
Made gtk-doc happy in order to dist.LIBGTOP_2_14_5
2006-12-03 Benoît Dejean <benoit@placenet.org> * doc/reference/libgtop-docs.xml: * glibtop.h: * include/glibtop/sysinfo.h: Made gtk-doc happy in order to dist.
Diffstat (limited to 'glibtop.h')
-rw-r--r--glibtop.h32
1 files changed, 30 insertions, 2 deletions
diff --git a/glibtop.h b/glibtop.h
index 58cb5872..a4daa954 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -69,14 +69,15 @@ LIBGTOP_MICRO_VERSION >= (micro)))
#include <glibtop/close.h>
+
+#ifdef HAVE_GLIBTOP_MACHINE_H
+
struct _glibtop
{
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 */
@@ -95,6 +96,33 @@ struct _glibtop
pid_t pid; /* PID of the server */
};
+#else /* !HAVE_GLIBTOP_MACHINE_H */
+
+struct _glibtop
+{
+ unsigned flags;
+ unsigned method; /* Server Method */
+ unsigned error_method; /* Error Method */
+ 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 */
+ int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
+ unsigned long os_version_code; /* Version code of the operating system */
+ const char *name; /* Program name for error messages */
+ const char *server_command; /* Command used to invoke server */
+ const char *server_host; /* Host the server should run on */
+ const char *server_user; /* Name of the user on the target host */
+ const char *server_rsh; /* Command used to connect to the target host */
+ unsigned long features; /* Server is required for this features */
+ unsigned long server_port; /* Port on which daemon is listening */
+ glibtop_sysdeps sysdeps; /* Detailed feature list */
+ glibtop_sysdeps required; /* Required feature list */
+ pid_t pid; /* PID of the server */
+};
+
+#endif /* HAVE_GLIBTOP_MACHINE_H */
+
extern glibtop *glibtop_global_server;
extern const unsigned long glibtop_server_features;