summaryrefslogtreecommitdiff
path: root/include/glibtop/loadavg.h
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-06-01 15:14:50 +0000
committerMartin Baulig <martin@src.gnome.org>1998-06-01 15:14:50 +0000
commitb7be9a7141893692c456f6dd579effbc959d1d20 (patch)
tree333afbb075f6135ed0153456d9833cd2d29463cc /include/glibtop/loadavg.h
parent67798e0d7d631f030db33147ef06d986bba1a5bb (diff)
downloadlibgtop-b7be9a7141893692c456f6dd579effbc959d1d20.tar.gz
added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1.
* include/glibtop/sysdeps.h: added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1. * include/glibtop/*.h: we now #define 'glibtop_get_<feature>' as 'glibtop_get_<feature>__l' and 'glibtop_get_<feature>__r' either as the '__p' or the '__s' function.
Diffstat (limited to 'include/glibtop/loadavg.h')
-rw-r--r--include/glibtop/loadavg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/glibtop/loadavg.h b/include/glibtop/loadavg.h
index dd30d432..eaf6588c 100644
--- a/include/glibtop/loadavg.h
+++ b/include/glibtop/loadavg.h
@@ -39,16 +39,17 @@ struct _glibtop_loadavg
double loadavg [3]; /* GLIBTOP_LOADAVG_LOADAVG */
};
-#define glibtop_get_loadavg(loadavg) glibtop_get_loadavg__r(glibtop_global_server, loadavg)
+#define glibtop_get_loadavg(loadavg) glibtop_get_loadavg__l(glibtop_global_server, loadavg)
#if GLIBTOP_SUID_LOADAVG
-#define glibtop_get_loadavg__r glibtop_get_loadavg__l
+#define glibtop_get_loadavg__r glibtop_get_loadavg__p
#else
#define glibtop_get_loadavg__r glibtop_get_loadavg__s
#endif
-#if GLIBTOP_SUID_LOADAVG
extern void glibtop_get_loadavg__l __P((glibtop *, glibtop_loadavg *));
+
+#if GLIBTOP_SUID_LOADAVG
extern void glibtop_get_loadavg__p __P((glibtop *, glibtop_loadavg *));
#else
extern void glibtop_get_loadavg__s __P((glibtop *, glibtop_loadavg *));