added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1.
* include/glibtop/sysdeps.h: added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1. * include/glibtop/*.h: we now #define 'glibtop_get_<feature>' as 'glibtop_get_<feature>__l' and 'glibtop_get_<feature>__r' either as the '__p' or the '__s' function.
This commit is contained in:
@@ -53,16 +53,17 @@ struct _glibtop_mem
|
||||
locked; /* GLIBTOP_MEM_LOCKED */
|
||||
};
|
||||
|
||||
#define glibtop_get_mem(mem) glibtop_get_mem__r(glibtop_global_server, mem)
|
||||
#define glibtop_get_mem(mem) glibtop_get_mem__l(glibtop_global_server, mem)
|
||||
|
||||
#if GLIBTOP_SUID_MEM
|
||||
#define glibtop_get_mem__r glibtop_get_mem__l
|
||||
#define glibtop_get_mem__r glibtop_get_mem__p
|
||||
#else
|
||||
#define glibtop_get_mem__r glibtop_get_mem__s
|
||||
#endif
|
||||
|
||||
#if GLIBTOP_SUID_MEM
|
||||
extern void glibtop_get_mem__l __P((glibtop *, glibtop_mem *));
|
||||
|
||||
#if GLIBTOP_SUID_MEM
|
||||
extern void glibtop_get_mem__p __P((glibtop *, glibtop_mem *));
|
||||
#else
|
||||
extern void glibtop_get_mem__s __P((glibtop *, glibtop_mem *));
|
||||
|
Reference in New Issue
Block a user