From e12f7973112580b7f553c0a518187d2084b95972 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 12 Nov 2005 15:45:48 +0000 Subject: [PATCH] iPod: current_tick is (currently) a macro - so we exclude it from the plugin and codec APIs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7826 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.c | 2 ++ apps/codecs.h | 2 ++ apps/plugin.c | 2 ++ apps/plugin.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/apps/codecs.c b/apps/codecs.c index f7f271da96..a227eb1fc4 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -122,7 +122,9 @@ struct codec_api ci = { /* kernel/ system */ PREFIX(sleep), yield, +#if CONFIG_CPU != PP5020 ¤t_tick, +#endif default_event_handler, default_event_handler_ex, create_thread, diff --git a/apps/codecs.h b/apps/codecs.h index 8f3cce990b..75903bc858 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -197,7 +197,9 @@ struct codec_api { /* kernel/ system */ void (*PREFIX(sleep))(int ticks); void (*yield)(void); +#if CONFIG_CPU != PP5020 long* current_tick; +#endif long (*default_event_handler)(long event); long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); int (*create_thread)(void (*function)(void), void* stack, int stack_size, const char *name); diff --git a/apps/plugin.c b/apps/plugin.c index aa70c97181..b1560c7182 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -207,7 +207,9 @@ static const struct plugin_api rockbox_api = { /* kernel/ system */ PREFIX(sleep), yield, +#if CONFIG_CPU != PP5020 ¤t_tick, +#endif default_event_handler, default_event_handler_ex, create_thread, diff --git a/apps/plugin.h b/apps/plugin.h index d19c696d2b..5e2b3b67d0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -283,7 +283,9 @@ struct plugin_api { /* kernel/ system */ void (*PREFIX(sleep))(int ticks); void (*yield)(void); +#if CONFIG_CPU!=PP5020 long* current_tick; +#endif long (*default_event_handler)(long event); long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); int (*create_thread)(void (*function)(void), void* stack, int stack_size, const char *name);