library: introduce pids 'value extractor' helper macro
As an experiment a helper macro used to extract values from a result stack has been added to the header file. Don't force callers to reinvent that particular wheel. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
f69c421295
commit
272081cbe6
@ -190,6 +190,10 @@ struct pids_reap {
|
||||
};
|
||||
|
||||
|
||||
#define PROCPS_PIDS_VAL(rel_enum,type,stack) \
|
||||
stack -> head [ rel_enum ] . result . type
|
||||
|
||||
|
||||
int procps_pids_new (
|
||||
struct procps_pidsinfo **info,
|
||||
int maxitems,
|
||||
|
Loading…
Reference in New Issue
Block a user