This is an automated email from Gerrit. Mathias Küster ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/627
-- gerrit commit 39e162094ac0400ccf74e0860f79fc215f82e643 Author: Mathias K <[email protected]> Date: Wed May 9 21:27:23 2012 +0200 target: add inline function to get the target variant This patch add the a function to get the target variant. Change-Id: I2f66e0b4ad60dea325600fe4f82e44e65dbc4918 Signed-off-by: Mathias K <[email protected]> diff --git a/src/target/target.h b/src/target/target.h index 9dc928f..12d892b 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -194,6 +194,12 @@ static inline const char *target_name(struct target *target) return target->cmd_name; } +/** Returns the instance-specific variant of the specified target. */ +static inline const char *target_variant(struct target *target) +{ + return target->variant; +} + const char *debug_reason_name(struct target *t); enum target_event { -- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
