diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-10 19:44:38 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-10 19:44:38 +0000 |
commit | 72acdac71aa2b2dd787f9b1e400d058e1887e61f (patch) | |
tree | a48684c54312c525c5b7c2ef9b43866271bf6bd2 /src/helper/tclapi.h | |
parent | 90465379e558ea7310867d9d39b79428c2050ddb (diff) |
Revive tclapi.c from r1650:
* Remove superfluous #include directives.
* Fix warnings and API usage to cure its bit rot.
* Build into libhelper library (for now).
Add tclapi.h to export tclapi_register_commands().
Register tclapi commands in openocd.c:setup_command_handler().
git-svn-id: svn://svn.berlios.de/openocd/trunk@1691 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/tclapi.h')
-rw-r--r-- | src/helper/tclapi.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/helper/tclapi.h b/src/helper/tclapi.h new file mode 100644 index 00000000..7ec362de --- /dev/null +++ b/src/helper/tclapi.h @@ -0,0 +1,26 @@ +/*************************************************************************** + * Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net> * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef TCLAPI_H +#define TCLAPI_H + +#include "command.h" + +int tclapi_register_commands(struct command_context_s *ctx); + +#endif // TCLAPI_H |