summaryrefslogtreecommitdiff
path: root/include/glibtop/parameter.h
diff options
context:
space:
mode:
authorMartin baulig <martin@home-of-linux.org>1998-07-03 17:19:25 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-03 17:19:25 +0000
commit9532dadc2e391e731be897d25e05a8123192e5fd (patch)
tree528a3d16122db1c5eb30720de6cb85df6867c92f /include/glibtop/parameter.h
parent94715ef7184e5aa1e8b66d1e4286cd373fa62a5b (diff)
downloadlibgtop-9532dadc2e391e731be897d25e05a8123192e5fd.tar.gz
No longer use `glibtop_machine.h' for Linux.
1998-07-03 Martin baulig <martin@home-of-linux.org> * macros/gnome-libgtop-sysdeps.m4: No longer use `glibtop_machine.h' for Linux. * sysdeps/linux/glibtop_machine.h: Removed. * sysdeps/guile/guile.awk: Using `scm_append' instead of `gh_append'. * sysdeps/guile/names/guile-names.awk: dito. * sysdeps/linux/*.c: Using code from stable branch again. * include/glibtop/parameter.h: New file. * lib/parameter.c: New file. * lib/{open, init}.c: Done some more work on server initialization
Diffstat (limited to 'include/glibtop/parameter.h')
-rw-r--r--include/glibtop/parameter.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/glibtop/parameter.h b/include/glibtop/parameter.h
new file mode 100644
index 00000000..7614d3e5
--- /dev/null
+++ b/include/glibtop/parameter.h
@@ -0,0 +1,42 @@
+/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the Gnome Top Library.
+ Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
+
+ The Gnome Top Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome Top Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef __GLIBTOP_PARAMETER_H__
+#define __GLIBTOP_PARAMETER_H__
+
+#include <glibtop.h>
+#include <glibtop/open.h>
+
+__BEGIN_DECLS
+
+#define GLIBTOP_PARAM_METHOD 1
+#define GLIBTOP_PARAM_FEATURES 2
+#define GLIBTOP_PARAM_COMMAND 3
+#define GLIBTOP_PARAM_HOST 4
+#define GLIBTOP_PARAM_PORT 5
+
+#define glibtop_get_parameter(p1,p2,p3) glibtop_get_parameter_l(glibtop_global_server,p1,p2,p3)
+#define glibtop_set_parameter(p1,p2,p3) glibtop_set_parameter_l(glibtop_global_server,p1,p2,p3)
+
+extern size_t glibtop_get_parameter_l __P((glibtop *, const unsigned, void *, size_t));
+extern void glibtop_set_parameter_l __P((glibtop *, const unsigned, const void *, size_t));
+
+__END_DECLS
+
+#endif