forked from len0rd/rockbox
Add MEM_FUNCTION_WRAPPERS to fix linker errors and tweak the ipod buttonmap slightly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18877 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2f1ec7d9a5
commit
e477052497
1 changed files with 4 additions and 2 deletions
|
|
@ -72,13 +72,13 @@ PLUGIN_HEADER
|
||||||
(CONFIG_KEYPAD == IPOD_3G_PAD) || \
|
(CONFIG_KEYPAD == IPOD_3G_PAD) || \
|
||||||
(CONFIG_KEYPAD == IPOD_1G2G_PAD)
|
(CONFIG_KEYPAD == IPOD_1G2G_PAD)
|
||||||
#define CALENDAR_QUIT (BUTTON_SELECT|BUTTON_MENU)
|
#define CALENDAR_QUIT (BUTTON_SELECT|BUTTON_MENU)
|
||||||
#define CALENDAR_SELECT (BUTTON_SELECT|BUTTON_PLAY)
|
#define CALENDAR_SELECT (BUTTON_SELECT|BUTTON_REL)
|
||||||
#define CALENDAR_NEXT_WEEK BUTTON_SCROLL_FWD
|
#define CALENDAR_NEXT_WEEK BUTTON_SCROLL_FWD
|
||||||
#define CALENDAR_PREV_WEEK BUTTON_SCROLL_BACK
|
#define CALENDAR_PREV_WEEK BUTTON_SCROLL_BACK
|
||||||
#define CALENDAR_NEXT_DAY BUTTON_RIGHT
|
#define CALENDAR_NEXT_DAY BUTTON_RIGHT
|
||||||
#define CALENDAR_PREV_DAY BUTTON_LEFT
|
#define CALENDAR_PREV_DAY BUTTON_LEFT
|
||||||
#define CALENDAR_NEXT_MONTH BUTTON_PLAY
|
#define CALENDAR_NEXT_MONTH BUTTON_PLAY
|
||||||
#define CALENDAR_PREV_MONTH BUTTON_MENU
|
#define CALENDAR_PREV_MONTH (BUTTON_MENU|BUTTON_REL)
|
||||||
|
|
||||||
#elif (CONFIG_KEYPAD == IAUDIO_X5M5_PAD)
|
#elif (CONFIG_KEYPAD == IAUDIO_X5M5_PAD)
|
||||||
#define CALENDAR_QUIT BUTTON_POWER
|
#define CALENDAR_QUIT BUTTON_POWER
|
||||||
|
|
@ -185,6 +185,8 @@ PLUGIN_HEADER
|
||||||
|
|
||||||
static const struct plugin_api* rb;
|
static const struct plugin_api* rb;
|
||||||
|
|
||||||
|
MEM_FUNCTION_WRAPPERS(rb)
|
||||||
|
|
||||||
static bool leap_year;
|
static bool leap_year;
|
||||||
/* days_in_month[][0] is for December */
|
/* days_in_month[][0] is for December */
|
||||||
static const int days_in_month[2][13] = {
|
static const int days_in_month[2][13] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue