From: Mathias K Date: Thu, 1 Dec 2011 11:16:54 +0000 (+0100) Subject: add private data pointer to the tap interface X-Git-Tag: v0.6.0-rc1~345 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=9f898223355aeaeb018f2220deda94d208f345a1 add private data pointer to the tap interface This will give us the ability to add special data structures and new interfaces without rewriting the complete jtag engine. Change-Id: I21a6e1daa96c5f4d111bbb734c7c1fbc2eaee227 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/244 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index f4b89a7ffe..aeb7b332db 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -156,7 +156,9 @@ struct jtag_tap { struct jtag_tap* next_tap; /* dap instance if some null if no instance , initialized to 0 by calloc*/ - struct adiv5_dap *dap; + struct adiv5_dap *dap; + /* private pointer to support none-jtag specific functions */ + void *priv; }; void jtag_tap_init(struct jtag_tap *tap);