long policy

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5845 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jean-Philippe Bernardy 2005-02-07 23:11:20 +00:00
parent f997199ff8
commit 5804664fe7
2 changed files with 4 additions and 4 deletions

View file

@ -159,8 +159,8 @@ struct plugin_api {
void (*splash)(int ticks, bool center, const char *fmt, ...);
/* button */
int (*button_get)(bool block);
int (*button_get_w_tmo)(int ticks);
long (*button_get)(bool block);
long (*button_get_w_tmo)(int ticks);
int (*button_status)(void);
void (*button_clear_queue)(void);

View file

@ -187,7 +187,7 @@ static int get_raw_button (void)
/*
* Timeout after TICKS unless a key is pressed.
*/
int button_get_w_tmo(int ticks)
long button_get_w_tmo(int ticks)
{
int bits;
int i=0;
@ -210,7 +210,7 @@ int button_get_w_tmo(int ticks)
* BUTTON_HELD bit is while the button is being held.
* BUTTON_REL bit is set when button has been released.
*/
int button_get(bool block)
long button_get(bool block)
{
int bits;
do {