summaryrefslogtreecommitdiff
path: root/src/helper/command.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-15 04:05:33 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-16 15:47:08 -0800
commitdf9b12695f4ede8144491d257ea236cdbca0a15c (patch)
tree73964273b78b72831767cf63ce82f2322c209398 /src/helper/command.h
parent0a9daddc2e20d9ff5053a9faf3e1ec11fd600c73 (diff)
downloadopenocd+libswd-df9b12695f4ede8144491d257ea236cdbca0a15c.tar.gz
openocd+libswd-df9b12695f4ede8144491d257ea236cdbca0a15c.tar.bz2
openocd+libswd-df9b12695f4ede8144491d257ea236cdbca0a15c.tar.xz
openocd+libswd-df9b12695f4ede8144491d257ea236cdbca0a15c.zip
use Jim_CmdProc in jim_register
The jim_register command just needed to use the type defined by jim.h.
Diffstat (limited to 'src/helper/command.h')
-rw-r--r--src/helper/command.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helper/command.h b/src/helper/command.h
index 94d98165..79e57f5a 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -190,7 +190,8 @@ extern int fast_and_dangerous;
extern Jim_Interp *interp;
-void register_jim(struct command_context *context, const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj *const *argv), const char *help);
+void register_jim(struct command_context *context, const char *name,
+ Jim_CmdProc cmd, const char *help);
long jim_global_long(const char *variable);