summaryrefslogtreecommitdiff
path: root/plugins.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-06-17 20:54:11 +0200
committerGravatar waker <wakeroid@gmail.com>2011-09-30 20:11:49 +0200
commit76f14028b56a1cdb6627b0db0e6af0a74a9b76f3 (patch)
tree84a98518d0186bfe1ebc31687ab89c565bb95adc /plugins.c
parent69f0c63499916d183ca9c8157aee9370687cf248 (diff)
merge new APIs for 0.5.2 from devel
Diffstat (limited to 'plugins.c')
-rw-r--r--plugins.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins.c b/plugins.c
index 92b740a1..ff110913 100644
--- a/plugins.c
+++ b/plugins.c
@@ -45,6 +45,7 @@
#include "premix.h"
#include "dsppreset.h"
#include "pltmeta.h"
+#include "metacache.h"
#define trace(...) { fprintf(stderr, __VA_ARGS__); }
//#define trace(fmt,...)
@@ -316,7 +317,17 @@ static DB_functions_t deadbeef_api = {
// dsp preset management
.dsp_preset_load = dsp_preset_load,
.dsp_preset_save = dsp_preset_save,
- .dsp_preset_free = dsp_preset_free
+ .dsp_preset_free = dsp_preset_free,
+ // new 1.2 APIs
+ .plt_alloc = (ddb_playlist_t *(*)(const char *title))plt_alloc,
+ .plt_free = (void (*)(ddb_playlist_t *plt))plt_free,
+ //.plt_insert = plt_insert,
+ .plt_set_fast_mode = (void (*)(ddb_playlist_t *plt, int fast))plt_set_fast_mode,
+ .plt_is_fast_mode = (int (*)(ddb_playlist_t *plt))plt_is_fast_mode,
+ .metacache_add_string = metacache_add_string,
+ .metacache_remove_string = metacache_remove_string,
+ .metacache_ref = metacache_ref,
+ .metacache_unref = metacache_unref,
};
DB_functions_t *deadbeef = &deadbeef_api;