summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 09:09:40 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:13 -0800
commitabd7b404086d3c63b163a5ffa786f3538714b7d9 (patch)
tree1a2fdcf13d0f15f4ec00a938259871c01ca0d4f9 /src
parent55edfdf2ab6c5d1d6cd4c1c97a79cbb1d39b1f22 (diff)
downloadopenocd+libswd-abd7b404086d3c63b163a5ffa786f3538714b7d9.tar.gz
openocd+libswd-abd7b404086d3c63b163a5ffa786f3538714b7d9.tar.bz2
openocd+libswd-abd7b404086d3c63b163a5ffa786f3538714b7d9.tar.xz
openocd+libswd-abd7b404086d3c63b163a5ffa786f3538714b7d9.zip
target_event_action_t -> struct target_event_action
Remove misleading typedef and redundant suffix from struct target_event_action.
Diffstat (limited to 'src')
-rw-r--r--src/target/target.c6
-rw-r--r--src/target/target.h9
2 files changed, 6 insertions, 9 deletions
diff --git a/src/target/target.c b/src/target/target.c
index fef7c299..e46dec9c 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -3495,7 +3495,7 @@ void target_all_handle_event(enum target_event e)
*/
void target_handle_event(target_t *target, enum target_event e)
{
- target_event_action_t *teap;
+ struct target_event_action *teap;
for (teap = target->event_action; teap != NULL; teap = teap->next) {
if (teap->event == e) {
@@ -3613,7 +3613,7 @@ static int target_configure(Jim_GetOptInfo *goi, target_t *target)
}
{
- target_event_action_t *teap;
+ struct target_event_action *teap;
teap = target->event_action;
/* replace existing? */
@@ -4183,7 +4183,7 @@ static int tcl_target_func(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
* scripts/programs should use 'name cget -event NAME'
*/
{
- target_event_action_t *teap;
+ struct target_event_action *teap;
teap = target->event_action;
command_print(cmd_ctx, "Event actions for target (%d) %s\n",
target->target_number,
diff --git a/src/target/target.h b/src/target/target.h
index 73d63191..e872ec66 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -128,9 +128,6 @@ struct working_area
struct target_type_s;
typedef struct target_type_s target_type_t;
-/* forward decloration */
-typedef struct target_event_action_s target_event_action_t;
-
typedef struct target_s
{
target_type_t *type; /* target type definition (name, access functions) */
@@ -138,7 +135,7 @@ typedef struct target_s
int target_number; /* DO NOT USE! field to be removed in 2010 */
struct jtag_tap *tap; /* where on the jtag chain is this */
const char *variant; /* what varient of this chip is it? */
- target_event_action_t *event_action;
+ struct target_event_action *event_action;
int reset_halt; /* attempt resetting the CPU into the halted mode? */
uint32_t working_area; /* working area (initialized RAM). Evaluated
@@ -225,11 +222,11 @@ enum target_event
TARGET_EVENT_GDB_FLASH_WRITE_END,
};
-struct target_event_action_s {
+struct target_event_action {
enum target_event event;
Jim_Obj *body;
int has_percent;
- target_event_action_t *next;
+ struct target_event_action *next;
};
struct target_event_callback