summaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:44:45 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:12 -0800
commit2d5767201b8b748b85d6aceb7dd93965e25bd00b (patch)
tree895932824c138db2868fee9b75d5c94d621cf7e7 /src/target/target.h
parent46fc1d57ac9462fd788277609707a379c7a406cb (diff)
downloadopenocd+libswd-2d5767201b8b748b85d6aceb7dd93965e25bd00b.tar.gz
openocd+libswd-2d5767201b8b748b85d6aceb7dd93965e25bd00b.tar.bz2
openocd+libswd-2d5767201b8b748b85d6aceb7dd93965e25bd00b.tar.xz
openocd+libswd-2d5767201b8b748b85d6aceb7dd93965e25bd00b.zip
target_event_callback_t -> struct target_event_callback
Remove misleading typedef and redundant suffix from struct target_event_callback.
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 14973550..0c52c11e 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -232,12 +232,12 @@ struct target_event_action_s {
target_event_action_t *next;
};
-typedef struct target_event_callback_s
+struct target_event_callback
{
int (*callback)(struct target_s *target, enum target_event event, void *priv);
void *priv;
- struct target_event_callback_s *next;
-} target_event_callback_t;
+ struct target_event_callback *next;
+};
typedef struct target_timer_callback_s
{
@@ -450,7 +450,7 @@ void target_free_all_working_areas_restore(struct target_s *target, int restore)
extern target_t *all_targets;
-extern target_event_callback_t *target_event_callbacks;
+extern struct target_event_callback *target_event_callbacks;
extern target_timer_callback_t *target_timer_callbacks;
uint32_t target_buffer_get_u32(target_t *target, const uint8_t *buffer);