summaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:44:58 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:12 -0800
commit93459582fd340e4f63efed0fab9abd49a2cb6373 (patch)
tree5ee898fd87b99c5e61cc96c0f614aa50360bf594 /src/target/target.h
parent2d5767201b8b748b85d6aceb7dd93965e25bd00b (diff)
downloadopenocd+libswd-93459582fd340e4f63efed0fab9abd49a2cb6373.tar.gz
openocd+libswd-93459582fd340e4f63efed0fab9abd49a2cb6373.tar.bz2
openocd+libswd-93459582fd340e4f63efed0fab9abd49a2cb6373.tar.xz
openocd+libswd-93459582fd340e4f63efed0fab9abd49a2cb6373.zip
target_timer_callback_t -> struct target_timer_callback
Remove misleading typedef and redundant suffix from struct target_timer_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 0c52c11e..c60960e5 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -239,15 +239,15 @@ struct target_event_callback
struct target_event_callback *next;
};
-typedef struct target_timer_callback_s
+struct target_timer_callback
{
int (*callback)(void *priv);
int time_ms;
int periodic;
struct timeval when;
void *priv;
- struct target_timer_callback_s *next;
-} target_timer_callback_t;
+ struct target_timer_callback *next;
+};
int target_register_commands(struct command_context_s *cmd_ctx);
int target_register_user_commands(struct command_context_s *cmd_ctx);
@@ -451,7 +451,7 @@ void target_free_all_working_areas_restore(struct target_s *target, int restore)
extern target_t *all_targets;
extern struct target_event_callback *target_event_callbacks;
-extern target_timer_callback_t *target_timer_callbacks;
+extern struct target_timer_callback *target_timer_callbacks;
uint32_t target_buffer_get_u32(target_t *target, const uint8_t *buffer);
uint16_t target_buffer_get_u16(target_t *target, const uint8_t *buffer);