From 4deb42ed004f90058856b1d72dda63c4843b3854 Mon Sep 17 00:00:00 2001 From: zwelch Date: Sun, 31 May 2009 11:32:10 +0000 Subject: Add target_examine_one wrapper: - replaces all calls to target->type->examine. git-svn-id: svn://svn.berlios.de/openocd/trunk@1968 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/target/target.c') diff --git a/src/target/target.c b/src/target/target.c index 16d28727..04d162b5 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -467,6 +467,11 @@ static int default_examine(struct target_s *target) return ERROR_OK; } +int target_examine_one(struct target_s *target) +{ + return target->type->examine(target); +} + /* Targets that correctly implement init+examine, i.e. * no communication with target during init: * @@ -478,7 +483,7 @@ int target_examine(void) target_t *target = all_targets; while (target) { - if ((retval = target->type->examine(target))!=ERROR_OK) + if ((retval = target_examine_one(target)) != ERROR_OK) return retval; target = target->next; } -- cgit v1.2.3