aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGareth McMullin2012-11-03 16:42:46 +1300
committerGareth McMullin2012-11-03 16:42:46 +1300
commit0990c2224c201a1f42533a754c9ef3b548335406 (patch)
tree3f0da0778087db8cd0c8471525b05461d7afef3d /src/include
parentfaa43fdc92f6d0749c51522b777d678c2a4fe8f4 (diff)
Allow target attachment to timeout and report failure.
This is needed for if the target device is held in reset.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/target.h b/src/include/target.h
index 6fd2beb..6daf350 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -120,7 +120,7 @@ struct target_s {
target_destroy_callback destroy_callback;
/* Attach/Detach funcitons */
- void (*attach)(struct target_s *target);
+ bool (*attach)(struct target_s *target);
void (*detach)(struct target_s *target);
int (*check_error)(struct target_s *target);