From 9f898223355aeaeb018f2220deda94d208f345a1 Mon Sep 17 00:00:00 2001 From: Mathias K Date: Thu, 1 Dec 2011 12:16:54 +0100 Subject: [PATCH] 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 --- src/jtag/jtag.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2