X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fsmp.h;h=d373c90bc15183a0082803363c1a235687a0d7a9;hb=0f11f951e7774c54953f3f06916dcb62ac9b086d;hp=d8bb67355af30f3a5e7789c36c3c04279c5a9027;hpb=374127301ec1d72033b9d573b72c7abdfd61990d;p=openocd.git diff --git a/src/target/smp.h b/src/target/smp.h index d8bb67355a..d373c90bc1 100644 --- a/src/target/smp.h +++ b/src/target/smp.h @@ -13,15 +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, - char *packet, int packet_size); + char const *packet, int packet_size); +/* DEPRECATED */ int gdb_write_smp_packet(struct connection *connection, - char *packet, int packet_size); + char const *packet, int packet_size); +#endif /* OPENOCD_TARGET_SMP_H */