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:
@@ -41,16 +41,17 @@ struct _glibtop_uptime
|
||||
idletime; /* GLIBTOP_UPTIME_IDLETIME */
|
||||
};
|
||||
|
||||
#define glibtop_get_uptime(uptime) glibtop_get_uptime__r(glibtop_global_server, uptime)
|
||||
#define glibtop_get_uptime(uptime) glibtop_get_uptime__l(glibtop_global_server, uptime)
|
||||
|
||||
#if GLIBTOP_SUID_UPTIME
|
||||
#define glibtop_get_uptime__r glibtop_get_uptime__l
|
||||
#define glibtop_get_uptime__r glibtop_get_uptime__p
|
||||
#else
|
||||
#define glibtop_get_uptime__r glibtop_get_uptime__s
|
||||
#endif
|
||||
|
||||
#if GLIBTOP_SUID_UPTIME
|
||||
extern void glibtop_get_uptime__l __P((glibtop *, glibtop_uptime *));
|
||||
|
||||
#if GLIBTOP_SUID_UPTIME
|
||||
extern void glibtop_get_uptime__p __P((glibtop *, glibtop_uptime *));
|
||||
#else
|
||||
extern void glibtop_get_uptime__s __P((glibtop *, glibtop_uptime *));
|
||||
|
||||
Reference in New Issue
Block a user