summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2009-12-24 17:07:20 +0000
committerAmaury Pouly <pamaury@rockbox.org>2009-12-24 17:07:20 +0000
commit081da63d097dd5a1de360abd6dcf5c0eb01ecdfc (patch)
tree51dd9f3cb98d5e353ab136ebba3af4faec55f968 /apps
parenteeb1f3e25e5071cb338dd96cb9d30b6f9b6d45d2 (diff)
downloadrockbox-081da63d097dd5a1de360abd6dcf5c0eb01ecdfc.tar.gz
rockbox-081da63d097dd5a1de360abd6dcf5c0eb01ecdfc.tar.bz2
rockbox-081da63d097dd5a1de360abd6dcf5c0eb01ecdfc.zip
Add support for errno in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 3836d76d28..bd88da6647 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -40,6 +40,7 @@
#include "version.h"
#include "storage.h"
#include "pcmbuf.h"
+#include "errno.h"
#if CONFIG_CHARGING
#include "power.h"
@@ -680,6 +681,7 @@ static const struct plugin_api rockbox_api = {
viewportmanager_theme_enable,
viewportmanager_theme_undo,
#endif
+ &errno
};
int plugin_load(const char* plugin, const void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 632533cb47..0a9b8a9a50 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -860,6 +860,7 @@ struct plugin_api {
struct viewport *viewport);
void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw);
#endif
+ int* __errno;
};
/* plugin header */