summaryrefslogtreecommitdiff
path: root/src/flash/common.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-27 16:30:28 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-28 13:00:39 -0800
commit933b4579f06d25e349e6648ec4aff114e634164d (patch)
tree95bf31e87606d3790294cc2b22d5816d44c0e9a3 /src/flash/common.c
parent3b5751a4d4aa4eb980aee6931b7d100a6d37224a (diff)
downloadopenocd+libswd-933b4579f06d25e349e6648ec4aff114e634164d.tar.gz
openocd+libswd-933b4579f06d25e349e6648ec4aff114e634164d.tar.bz2
openocd+libswd-933b4579f06d25e349e6648ec4aff114e634164d.tar.xz
openocd+libswd-933b4579f06d25e349e6648ec4aff114e634164d.zip
add command private data setter/accessor
Presently, commands registration taks a static handler data pointer. This patch adds support for commands that require a dynamic pointer, such as those registered in a dynamic context (e.g. subcommands for a user-created 'foo.cpu' command). The command_set_handler_data will update a command (group) to use a new context pointer, while the CMD_DATA macro allows command handlers to access the value. Jim handlers should find this value in interp->cmdPrivData.
Diffstat (limited to 'src/flash/common.c')
0 files changed, 0 insertions, 0 deletions