Changes committed to git://oss.sgi.com/nathans/pcp.git dev
qa/728 | 90 +++
qa/728.out | 572 ++++++++++++++++++++
qa/group | 1
qa/src/.gitignore | 1
qa/src/GNUlocaldefs | 7
qa/src/getoptions.c | 226 ++++++++
src/include/pcp/pmapi.h | 127 ++++
src/libpcp/src/GNUmakefile | 2
src/libpcp/src/check-statics | 1
src/libpcp/src/exports | 7
src/libpcp/src/getopt.c | 1209 +++++++++++++++++++++++++++++++++++++++++++
11 files changed, 2230 insertions(+), 13 deletions(-)
commit cdd1b323287434c74853f1460257ac8176777ffd
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu Mar 6 17:51:15 2014 +1100
Initial code for pmGetOptions common PMAPI option parsing
Early code providing option parsing interfaces to abstract the
common getopt handling boilerplate code for PMAPI clients. It
also provides for long-options on all platforms. Refer to the
qa/src/getoptions.c for some test code (and qa/728).
Missing at this stage are man pages, more comprehensive testing,
the python API, sample programs (uptime.py!) and then we can get
started on the journey toward converting all the existing client
tools over to using this API.
|