diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-09-01 21:29:34 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-09-01 21:29:34 +0000 |
commit | 6eaab4d00446c070c655f0e6c9a872532a776b6f (patch) | |
tree | 69610996dd0a6092459b14e164d4e48e03b1e5bb /apps/plugin.h | |
parent | 8e0a0babc57db3e9edc06f3e269fb47c27292ed5 (diff) | |
download | rockbox-6eaab4d00446c070c655f0e6c9a872532a776b6f.tar.gz rockbox-6eaab4d00446c070c655f0e6c9a872532a776b6f.zip |
Ged rid of uisimulator/common/io.c for android builds.
Use host's functions for file i/o directly (open(), close() ,etc.), not the sim_* variants.
Some dir functions need to be wrapped still because we need to cache the parents dir's path (host's dirent doesn't let us know).
For the same reason (incompatibility) with host's dirent) detach some members from Rockbox' dirent struct and put it into an extra one,
the values can be retrieved via the new dir_get_info().
Get rid of the sim_ prefix for sleep as well and change the signature to unix sleep().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27968 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 422f58fc8a..ddd913088f 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -459,7 +459,7 @@ struct plugin_api { | |||
459 | #if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE | 459 | #if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE |
460 | void (*__div0)(void); | 460 | void (*__div0)(void); |
461 | #endif | 461 | #endif |
462 | void (*sleep)(int ticks); | 462 | unsigned (*sleep)(unsigned ticks); |
463 | void (*yield)(void); | 463 | void (*yield)(void); |
464 | volatile long* current_tick; | 464 | volatile long* current_tick; |
465 | long (*default_event_handler)(long event); | 465 | long (*default_event_handler)(long event); |
@@ -894,6 +894,7 @@ struct plugin_api { | |||
894 | 894 | ||
895 | /* new stuff at the end, sort into place next time | 895 | /* new stuff at the end, sort into place next time |
896 | the API gets incompatible */ | 896 | the API gets incompatible */ |
897 | struct dirinfo (*dir_get_info)(struct DIR* parent, struct dirent *entry); | ||
897 | }; | 898 | }; |
898 | 899 | ||
899 | /* plugin header */ | 900 | /* plugin header */ |