diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | features.def | 2 | ||||
-rw-r--r-- | include/glibtop/proclist.h | 8 |
3 files changed, 14 insertions, 5 deletions
@@ -1,3 +1,12 @@ +2007-05-19 Benoît Dejean <benoit@placenet.org> + + * features.def: + * include/glibtop/proclist.h: + + Small API change. + get_proclist returns pid_t instead of unsigned for consistency. + I have checked many archs and this doesn't break the ABI. + 2007-05-17 Benoît Dejean <benoit@placenet.org> * configure.in: diff --git a/features.def b/features.def index 0936c98f..64e578ec 100644 --- a/features.def +++ b/features.def @@ -6,7 +6,7 @@ void|loadavg|double(loadavg[3]):ulong(nr_running,nr_tasks,last_pid) void|shm_limits|ulong(shmmax,shmmin,shmmni,shmseg,shmall) void|msg_limits|ulong(msgpool,msgmap,msgmax,msgmnb,msgmni,msgssz,msgtql) void|sem_limits|ulong(semmap,semmni,semmns,semmnu,semmsl,semopm,semume,semusz,semvmx,semaem) -unsigned *|proclist|ulong(number,size,total)|long(which,arg) +pid_t*|proclist|ulong(number,size,total)|long(which,arg) void|proc_state|str(cmd):char(state):ulong(uid,gid)|pid_t(pid) void|proc_uid|long(uid,euid,gid,egid,pid,ppid,pgrp,session,tty,tpgid,priority,nice)|pid_t(pid) void|proc_mem|long(size,vsize,resident,share,rss,rss_rlim)|pid_t(pid) diff --git a/include/glibtop/proclist.h b/include/glibtop/proclist.h index ebd00c18..7859fe08 100644 --- a/include/glibtop/proclist.h +++ b/include/glibtop/proclist.h @@ -60,7 +60,7 @@ struct _glibtop_proclist guint64 size; /* GLIBTOP_PROCLIST_SIZE */ }; -unsigned * +pid_t* glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg); #if GLIBTOP_SUID_PROCLIST @@ -69,20 +69,20 @@ glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg); #define glibtop_get_proclist_r glibtop_get_proclist_s #endif -unsigned * +pid_t* glibtop_get_proclist_l (glibtop *server, glibtop_proclist *buf, gint64 which, gint64 arg); #if GLIBTOP_SUID_PROCLIST void _glibtop_init_proclist_p (glibtop *server); -unsigned * +pid_t* glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf, gint64 which, gint64 arg); #else void _glibtop_init_proclist_s (glibtop *server); -unsigned * +pid_t* glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf, gint64 which, gint64 arg); #endif |