fc674ad6ef469f9550fcba6436381924ce249afa
[fw/openocd] / src / hello.h
1 /***************************************************************************
2  *   Copyright (C) 2009 Zachary T Welch <zw@superlucidity.net>             *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18  ***************************************************************************/
19
20 #ifndef OPENOCD_HELLO_H
21 #define OPENOCD_HELLO_H
22
23 struct command_context;
24 struct command_registration;
25
26 /// Register the hello commands in the specified command_context
27 int hello_register_commands(struct command_context *cmd_ctx);
28
29 /**
30  * Export the registration for the hello command group, so it can be
31  * embedded in example drivers.
32  */
33 extern const struct command_registration hello_command_handlers[];
34
35 #endif // OPENOCD_HELLO_H