summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-10-01 10:33:47 +0200
committerGravatar waker <wakeroid@gmail.com>2011-10-01 10:33:47 +0200
commitecafc1687513de35d080a9b4be14022e885a95e1 (patch)
tree83afbacdd59323cd788aecbb6c1754c10c96b874 /deadbeef.h
parent76f14028b56a1cdb6627b0db0e6af0a74a9b76f3 (diff)
added experimental support for metadata overrides.
for example field "!NAME" will override field ":NAME", but will not be stored so after player restart, the field will be restored to original :NAME
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 3605c09b..74d17993 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -726,16 +726,20 @@ typedef struct {
int (*dsp_preset_save) (const char *fname, struct ddb_dsp_context_s *head);
void (*dsp_preset_free) (struct ddb_dsp_context_s *head);
- // new 1.2 APIs
+ // ******* new 1.2 APIs ********
ddb_playlist_t *(*plt_alloc) (const char *title);
void (*plt_free) (ddb_playlist_t *plt);
- //int (*plt_insert) (ddb_playlist_t *plt, int before);
+
void (*plt_set_fast_mode) (ddb_playlist_t *plt, int fast);
int (*plt_is_fast_mode) (ddb_playlist_t *plt);
+
const char * (*metacache_add_string) (const char *str);
void (*metacache_remove_string) (const char *str);
void (*metacache_ref) (const char *str);
void (*metacache_unref) (const char *str);
+
+ // this function must return original un-overriden value (ignoring the keys prefixed with '!')
+ const char *(*pl_find_meta_raw) (DB_playItem_t *it, const char *key);
} DB_functions_t;
enum {