summaryrefslogtreecommitdiff
path: root/src/helper/command.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-18 06:24:57 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-18 06:24:57 +0000
commit679592d42e5db7e8a2485b66aabc4c5ec76307e4 (patch)
treec51f3dcc50ef6e8b5c6d1b7f16334898cdf4614e /src/helper/command.h
parentb504e11abea041f29ee4a11183dc3b93f858c7ee (diff)
downloadopenocd+libswd-679592d42e5db7e8a2485b66aabc4c5ec76307e4.tar.gz
openocd+libswd-679592d42e5db7e8a2485b66aabc4c5ec76307e4.tar.bz2
openocd+libswd-679592d42e5db7e8a2485b66aabc4c5ec76307e4.tar.xz
openocd+libswd-679592d42e5db7e8a2485b66aabc4c5ec76307e4.zip
Charles Hardin <ckhardin@gmail.com> move tcl stuff nearer to where it belongs.
git-svn-id: svn://svn.berlios.de/openocd/trunk@824 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/command.h')
-rw-r--r--src/helper/command.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/helper/command.h b/src/helper/command.h
index c90ed0f6..9aa66078 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -83,4 +83,19 @@ extern void command_output_text(command_context_t *context, const char *data);
extern int fast_and_dangerous;
+
+/* Integrate the JIM TCL interpretor into the command processing. */
+#include <stdarg.h>
+#ifdef __ECOS
+/* Jim is provied by eCos */
+#include <cyg/jimtcl/jim.h>
+#else
+#define JIM_EMBEDDED
+#include "jim.h"
+#endif
+
+extern Jim_Interp *interp;
+
+void register_jim(command_context_t *context, const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj *const *argv), const char *help);
+
#endif /* COMMAND_H */