cmd: Add option to add a param at a specific pos
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Apr 2011 08:01:25 +0000 (09:01 +0100)
committerDerrick Brashear <shadow@dementia.org>
Wed, 27 Apr 2011 19:06:00 +0000 (12:06 -0700)
commitfae24dabd0f4ae2d072e6a569f7f1f83a8df1d4e
tree8ee199f72a5d2bab5596e46b02a6f892e3c0a237
parent4aff5a87c2ff2dcff20eaed9bc58c9c8b5edad70
cmd: Add option to add a param at a specific pos

Rather than having to use cmd_Seek, followed by cmd_AddParam,
followed by another cmd_Seek, add a function which permits parameters
to be added at specific reference points. This allows programs to
declare a list (either as an enum or specific #defines) of parameter
code points, rather than using raw numbers.

Change-Id: I25c0d501e678aa2818d296c776d8c5d03b8cdabe
Reviewed-on: http://gerrit.openafs.org/4542
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/cmd/cmd.c
src/cmd/cmd.p.h
tests/cmd/command-t.c