summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dejean <benoit@placenet.org>2007-05-19 19:40:33 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2007-05-19 19:40:33 +0000
commita99011fd5c5c38dec184a99eabe7f3ff596f333d (patch)
tree63e72e7a111e5def6741bf3e5d48a53be53194c0
parent598374bb1ce33e48a06122af1d3609f5f67b4d41 (diff)
downloadlibgtop-a99011fd5c5c38dec184a99eabe7f3ff596f333d.tar.gz
Small API change. get_proclist returns pid_t instead of unsigned for
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. svn path=/trunk/; revision=2595
-rw-r--r--ChangeLog9
-rw-r--r--features.def2
-rw-r--r--include/glibtop/proclist.h8
3 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 80bc48b4..2385c82d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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