forked from len0rd/rockbox
Plugin rework 5: (all) Now using the default event handler, standard placement is in switch() default case. (splitedit,star,vu_meter) Compile-time keyboard configuration, for Ondio adaption. (splitedit) Timing kludge for MMC. (star) Completed USB support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5321 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3a931c113f
commit
2afdf95401
7 changed files with 285 additions and 106 deletions
|
|
@ -64,8 +64,10 @@ static void display_first_line(int g)
|
|||
}
|
||||
|
||||
/*Call when the program exit*/
|
||||
static void jackpot_exit(void)
|
||||
static void jackpot_exit(void *parameter)
|
||||
{
|
||||
(void)parameter;
|
||||
|
||||
/* Restore the old pattern (i don't find another way to do this. Any
|
||||
idea?) */
|
||||
rb->lcd_unlock_pattern(h1);
|
||||
|
|
@ -154,10 +156,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
}
|
||||
break;
|
||||
|
||||
case SYS_USB_CONNECTED:
|
||||
rb->usb_screen();
|
||||
jackpot_exit();
|
||||
return PLUGIN_USB_CONNECTED;
|
||||
default:
|
||||
if (rb->default_event_handler_ex(button, jackpot_exit,
|
||||
NULL) == SYS_USB_CONNECTED)
|
||||
return PLUGIN_USB_CONNECTED;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -270,7 +273,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
}
|
||||
|
||||
/* This is the end */
|
||||
jackpot_exit();
|
||||
jackpot_exit(NULL);
|
||||
/* Bye */
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue