*/
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) {
}
{
- target_event_action_t *teap;
+ struct target_event_action *teap;
teap = target->event_action;
/* replace existing? */
* 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,
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) */
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
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