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:
Jim Warner 2015-08-26 00:00:00 -05:00 committed by Craig Small
parent f69c421295
commit 272081cbe6

View File

@ -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,