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:
@@ -51,16 +51,17 @@ struct _glibtop_msg_limits
|
||||
msgtql; /* GLIBTOP_IPC_MSGTQL */
|
||||
};
|
||||
|
||||
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits__r(glibtop_global_server, msg)
|
||||
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits__l(glibtop_global_server, msg)
|
||||
|
||||
#if GLIBTOP_SUID_MSG_LIMITS
|
||||
#define glibtop_get_msg_limits__r glibtop_get_msg_limits__l
|
||||
#define glibtop_get_msg_limits__r glibtop_get_msg_limits__p
|
||||
#else
|
||||
#define glibtop_get_msg_limits__r glibtop_get_msg_limits__s
|
||||
#endif
|
||||
|
||||
#if GLIBTOP_SUID_MSG_LIMITS
|
||||
extern void glibtop_get_msg_limits__l __P((glibtop *, glibtop_msg_limits *));
|
||||
|
||||
#if GLIBTOP_SUID_MSG_LIMITS
|
||||
extern void glibtop_get_msg_limits__p __P((glibtop *, glibtop_msg_limits *));
|
||||
#else
|
||||
extern void glibtop_get_msg_limits__s __P((glibtop *, glibtop_msg_limits *));
|
||||
|
Reference in New Issue
Block a user