diff options
author | Martin Baulig <martin@home-of-linux.org> | 1998-08-07 10:01:55 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-08-07 10:01:55 +0000 |
commit | 4b3fcf149a7eed6f0fd544756ec3515c779da185 (patch) | |
tree | 1ccc8f008b152b972ea366acaf3cc0c01546a9f1 /include/glibtop/loadavg.h | |
parent | 09e1353d0d2861f9e6cc911360d940d74cad3dfd (diff) | |
download | libgtop-4b3fcf149a7eed6f0fd544756ec3515c779da185.tar.gz |
New fields `error_method', `sysdeps' and `required'. I added an improved
1998-08-07 Martin Baulig <martin@home-of-linux.org>
* glibtop.h (_glibtop): New fields `error_method', `sysdeps' and
`required'. I added an improved error handling: the client can tell
the libraries which fields are absolutely required for each features
and if it fails to set one of them, this will create an error which
is handled depending upon the `error_method'.
* include/glibtop/open.h: Define some constants for `error_method'.
* lib/sysdeps.c (glibtop_get_sysdeps_r): No longer actually call any
sysdeps function, it now simply copies `server->sysdeps'.
(_glibtop_init_hook_s): Added. List of functions to be called during
`glibtop_init_s' set to `glibtop_init_<no-suid-feature>_s'.
* include/glibtop/sysdeps.h (<glibtop/union.h>): Removed.
(glibtop_init_func_t): New typedef.
(_glibtop_init_hook_s): Added.
* sysdeps/linux/*.c (glibtop_init_<feature>_s): New functions.
(glibtop_get_proc_*): Zero is now a valid pid.
* sysdeps/kernel/*.c (glibtop_init_<feature>_s): New functions.
(glibtop_get_proc_*): Zero is now a valid pid.
1998-08-06 Martin Baulig <martin@home-of-linux.org>
Diffstat (limited to 'include/glibtop/loadavg.h')
-rw-r--r-- | include/glibtop/loadavg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/glibtop/loadavg.h b/include/glibtop/loadavg.h index dedf0f16..f799fe40 100644 --- a/include/glibtop/loadavg.h +++ b/include/glibtop/loadavg.h @@ -50,8 +50,10 @@ struct _glibtop_loadavg extern void glibtop_get_loadavg_l __P((glibtop *, glibtop_loadavg *)); #if GLIBTOP_SUID_LOADAVG +extern void glibtop_init_loadavg_p __P((glibtop *)); extern void glibtop_get_loadavg_p __P((glibtop *, glibtop_loadavg *)); #else +extern void glibtop_init_loadavg_s __P((glibtop *)); extern void glibtop_get_loadavg_s __P((glibtop *, glibtop_loadavg *)); #endif |