From 3f8ad111b2764f901656d70e7b279c37812f1c20 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 21 Nov 1999 17:07:42 +0000 Subject: [PATCH] Use `int' as return type, not `void'. 1999-11-21 Martin Baulig * include/glibtop/sysdeps.h (glibtop_init_func_t): Use `int' as return type, not `void'. * include/glibtop/proclist.h (GLIBTOP_KERN_PROC_PPID): On a suggestion from Sebastian Fischmeister added a way to return all children of a given process. --- ChangeLog | 9 +++++++++ include/glibtop/proclist.h | 1 + include/glibtop/sysdeps.h | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 913b2a5f..d4f4ad1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +1999-11-21 Martin Baulig + + * include/glibtop/sysdeps.h (glibtop_init_func_t): Use `int' + as return type, not `void'. + + * include/glibtop/proclist.h (GLIBTOP_KERN_PROC_PPID): On a + suggestion from Sebastian Fischmeister added a way to return + all children of a given process. + 1999-11-02 Jesus Bravo Alvarez * configure.in: Added Galician (gl) to ALL_LINGUAS diff --git a/include/glibtop/proclist.h b/include/glibtop/proclist.h index 641cf09d..e0ce0f41 100644 --- a/include/glibtop/proclist.h +++ b/include/glibtop/proclist.h @@ -47,6 +47,7 @@ BEGIN_LIBGTOP_DECLS #define GLIBTOP_KERN_PROC_TTY 4 #define GLIBTOP_KERN_PROC_UID 5 #define GLIBTOP_KERN_PROC_RUID 6 +#define GLIBTOP_KERN_PROC_PPID 7 #define GLIBTOP_KERN_PROC_MASK 15 diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h index 32a7e376..baa353e3 100644 --- a/include/glibtop/sysdeps.h +++ b/include/glibtop/sysdeps.h @@ -57,7 +57,7 @@ BEGIN_LIBGTOP_DECLS #define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1) -typedef void (*glibtop_init_func_t) (glibtop *); +typedef int (*glibtop_init_func_t) (glibtop *); extern glibtop_init_func_t _glibtop_init_hook_s []; extern glibtop_init_func_t _glibtop_init_hook_p [];