diff options
author | waker <wakeroid@gmail.com> | 2011-01-13 00:43:59 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-01-22 13:20:28 +0100 |
commit | 9ff65ed6718c0e358ef310359c4d0934a5a4c1a4 (patch) | |
tree | 27c7a309b14f9a01d9b32a559094343124b074e4 /plugins.c | |
parent | afd85267fa134f0eb64ffd18038677d9704d4c77 (diff) |
few android compatibility fixes
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -594,7 +594,7 @@ plug_load_all (void) { trace ("\033[0;31mDISABLE_VERSIONCHECK=1! do not distribute!\033[0;m\n"); #endif -#if !TARGET_ANDROID +#ifndef ANDROID const char *conf_blacklist_plugins = conf_get_str ("blacklist_plugins", ""); trace ("plug: mutex_create\n"); mutex = mutex_create (); @@ -726,7 +726,7 @@ plug_load_all (void) { #define PLUG(n) plug_init_plugin (n##_load, NULL); #include "moduleconf.h" #undef PLUG -#if TARGET_ANDROID +#ifdef ANDROID #define PLUG(n) extern DB_plugin_t * n##_load (DB_functions_t *api); #include "moduleconf-android.h" #undef PLUG @@ -873,7 +873,7 @@ plug_unload_all (void) { trace ("stopped all plugins\n"); while (plugins) { plugin_t *next = plugins->next; -#if !TARGET_ANDROID +#ifndef ANDROID if (plugins->handle) { dlclose (plugins->handle); } @@ -931,6 +931,9 @@ plug_get_output (void) { int plug_select_output (void) { +#ifdef ANDROID + return 0; +#else const char *outplugname = conf_get_str ("output_plugin", _("ALSA output plugin")); for (int i = 0; g_output_plugins[i]; i++) { DB_output_t *p = g_output_plugins[i]; @@ -952,6 +955,7 @@ plug_select_output (void) { } plug_trigger_event (DB_EV_OUTPUTCHANGED, 0); return 0; +#endif } void |