X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget.h;h=e872ec6656ecfc30685ea994b73b29d84089e163;hp=c60960e5e114f5daa1fee895b62647eea965169f;hb=abd7b404086d3c63b163a5ffa786f3538714b7d9;hpb=93459582fd340e4f63efed0fab9abd49a2cb6373 diff --git a/src/target/target.h b/src/target/target.h index c60960e5e1..e872ec6656 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 @@ -158,7 +155,7 @@ typedef struct target_s struct breakpoint_s *breakpoints; /* list of breakpoints */ struct watchpoint *watchpoints; /* list of watchpoints */ struct trace_s *trace_info; /* generic trace information */ - struct debug_msg_receiver_s *dbgmsg;/* list of debug message receivers */ + struct debug_msg_receiver *dbgmsg;/* list of debug message receivers */ uint32_t dbg_msg_enabled; /* debug message status */ void *arch_info; /* architecture specific information */ struct target_s *next; /* next target in list */ @@ -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