diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 17:48:06 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-03-05 17:48:06 +0000 |
commit | cc889e9d608e6b07b78541849b7e63b6fb3f6058 (patch) | |
tree | ea01a47602b68561d294f705e8ab7669fb00ae9a /apps/plugin.h | |
parent | 0b0f99b18ebe6305c9cab12bf8b36d154fc9c87f (diff) | |
download | rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.tar.gz rockbox-cc889e9d608e6b07b78541849b7e63b6fb3f6058.zip |
Change the thread api a bit.
* Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler.
* thread_self_entry() shortcut for kernel.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 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 2275b309d7..43b9818ffd 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -145,7 +145,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
145 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 145 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
146 | 146 | ||
147 | /* increase this every time the api struct changes */ | 147 | /* increase this every time the api struct changes */ |
148 | #define PLUGIN_API_VERSION 200 | 148 | #define PLUGIN_API_VERSION 201 |
149 | 149 | ||
150 | /* update this to latest version if a change to the api struct breaks | 150 | /* update this to latest version if a change to the api struct breaks |
151 | backwards compatibility (and please take the opportunity to sort in any | 151 | backwards compatibility (and please take the opportunity to sort in any |
@@ -909,6 +909,7 @@ struct plugin_api { | |||
909 | 909 | ||
910 | /* new stuff at the end, sort into place next time | 910 | /* new stuff at the end, sort into place next time |
911 | the API gets incompatible */ | 911 | the API gets incompatible */ |
912 | unsigned int (*thread_self)(void); | ||
912 | }; | 913 | }; |
913 | 914 | ||
914 | /* plugin header */ | 915 | /* plugin header */ |