summaryrefslogtreecommitdiff
path: root/include/glibtop/msg_limits.h
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-05-28 19:19:49 +0000
committerMartin Baulig <martin@src.gnome.org>1998-05-28 19:19:49 +0000
commit62dda3b78280719d39640db4972706bba8740695 (patch)
tree1495e79807384c7ec1b24227035271e6e00f8b97 /include/glibtop/msg_limits.h
parent4e1e1ccb9f505ae01492acc18dc0554ee3910a1c (diff)
downloadlibgtop-62dda3b78280719d39640db4972706bba8740695.tar.gz
added some new function suffixes: '__l' is a function defined in the
* sysdeps/linux/*.h: added some new function suffixes: '__l' is a function defined in the client part; '__s' is a function defined in the sysdeps part and '__p' is a function that needs special priviledges. '__r' is mapped either on '__l' or on '__s'. * sysdeps/linux/glibtop_server.h: New file - defines system dependent constants 'GLIBTOP_SUID_<feature>' being either 'GLIBTOP_SYSDEPS_<feature>'+1 depending upon whether or not this feature requires using the server. Things may now temporarily get instable; I'm currently implementing some suggestions Sebastian Wilhelmi has made.
Diffstat (limited to 'include/glibtop/msg_limits.h')
-rw-r--r--include/glibtop/msg_limits.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/glibtop/msg_limits.h b/include/glibtop/msg_limits.h
index a45b8ba7..9031f549 100644
--- a/include/glibtop/msg_limits.h
+++ b/include/glibtop/msg_limits.h
@@ -53,7 +53,18 @@ struct _glibtop_msg_limits
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits__r(glibtop_global_server, msg)
-extern void glibtop_get_msg_limits__r __P((glibtop *, glibtop_msg_limits *));
+#if GLIBTOP_SUID_MSG_LIMITS
+#define glibtop_get_msg_limits__r glibtop_get_msg_limits__l
+#else
+#define glibtop_get_msg_limits__r glibtop_get_msg_limits__s
+#endif
+
+#if GLIBTOP_SUID_MSG_LIMITS
+extern void glibtop_get_msg_limits__l __P((glibtop *, glibtop_msg_limits *));
+extern void glibtop_get_msg_limits__p __P((glibtop *, glibtop_msg_limits *));
+#else
+extern void glibtop_get_msg_limits__s __P((glibtop *, glibtop_msg_limits *));
+#endif
#ifdef HAVE_GUILE