X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fsmp.h;h=d373c90bc15183a0082803363c1a235687a0d7a9;hb=0f11f951e7774c54953f3f06916dcb62ac9b086d;hp=f85c9a4aaf20527c190da65bd3f528643630f641;hpb=b778b36f29b74d6d571df85f984ae684672ea162;p=openocd.git
diff --git a/src/target/smp.h b/src/target/smp.h
index f85c9a4aaf..d373c90bc1 100644
--- a/src/target/smp.h
+++ b/src/target/smp.h
@@ -13,13 +13,28 @@
* 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. *
+ * along with this program. If not, see . *
***************************************************************************/
+
+#ifndef OPENOCD_TARGET_SMP_H
+#define OPENOCD_TARGET_SMP_H
+
+#include
#include "server/server.h"
+
+#define foreach_smp_target(pos, head) \
+ list_for_each_entry(pos, head, lh)
+
+#define foreach_smp_target_direction(forward, pos, head) \
+ list_for_each_entry_direction(forward, pos, head, lh)
+
+extern const struct command_registration smp_command_handlers[];
+
+/* DEPRECATED */
int gdb_read_smp_packet(struct connection *connection,
- struct target *target, char *packet, int packet_size);
+ char const *packet, int packet_size);
+/* DEPRECATED */
int gdb_write_smp_packet(struct connection *connection,
- struct target *target, char *packet, int packet_size);
+ char const *packet, int packet_size);
+#endif /* OPENOCD_TARGET_SMP_H */