summaryrefslogtreecommitdiff
path: root/include/glibtop/loadavg.h
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-10-24 19:09:32 +0000
committerMartin Baulig <martin@src.gnome.org>1999-10-24 19:09:32 +0000
commita5dd7e90637581d2e7dbfe6cc479d419971eff5c (patch)
tree9320e8bca16886c8bdbda21ef19a960765baae8b /include/glibtop/loadavg.h
parenteae892c9b117e274b64426de837ae9e30e6cf383 (diff)
downloadlibgtop-a5dd7e90637581d2e7dbfe6cc479d419971eff5c.tar.gz
This is a very big an possibly breaking commit.
It changes the return values of all sysdeps functions which were previosly returning void to int. This is the first step to implement better error handling in LibGTop. Martin 1999-10-24 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed the return value of all `glibtop_get_<feature>_* ()' and all `glibtop_init_<feature>_* ()' functions from void to int. * features.def: Reflect changes of the return values. * sysdeps/*/*.c: Reflect changes of the return values.
Diffstat (limited to 'include/glibtop/loadavg.h')
-rw-r--r--include/glibtop/loadavg.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/glibtop/loadavg.h b/include/glibtop/loadavg.h
index f43642f6..8ebfbec8 100644
--- a/include/glibtop/loadavg.h
+++ b/include/glibtop/loadavg.h
@@ -57,14 +57,14 @@ struct _glibtop_loadavg
#define glibtop_get_loadavg_r glibtop_get_loadavg_s
#endif
-void glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
+int glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
#if GLIBTOP_SUID_LOADAVG
-void glibtop_init_loadavg_p (glibtop *server);
-void glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf);
+int glibtop_init_loadavg_p (glibtop *server);
+int glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf);
#else
-void glibtop_init_loadavg_s (glibtop *server);
-void glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf);
+int glibtop_init_loadavg_s (glibtop *server);
+int glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf);
#endif
#ifdef GLIBTOP_NAMES