summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-03 20:33:27 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-03 20:33:27 +0100
commita6e6d338ca2b16dbc396a29f26cea7ba52f9eaf0 (patch)
tree5f285677e4cf3782c8516d259e29934607000157 /deadbeef.h
parent07ce7c70e5162c96aca6a64cb20abf76bba3c4ad (diff)
deadbeef.h: more api checking helpers
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/deadbeef.h b/deadbeef.h
index cde635ed..3871be25 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -808,7 +808,8 @@ 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 ********
+ // since 1.2
+#if (DDB_API_LEVEL >= 2)
ddb_playlist_t *(*plt_alloc) (const char *title);
void (*plt_free) (ddb_playlist_t *plt);
@@ -824,19 +825,25 @@ typedef struct {
// it's not thread-safe, and must be used under the same conditions as the
// pl_find_meta
const char *(*pl_find_meta_raw) (DB_playItem_t *it, const char *key);
+#endif
- // ******* new 1.3 APIs ********
+ // since 1.3
+#if (DDB_API_LEVEL >= 3)
int (*streamer_dsp_chain_save) (void);
+#endif
- // ******* new 1.4 APIs ********
+ // since 1.4
+#if (DDB_API_LEVEL >= 4)
int (*pl_get_meta) (DB_playItem_t *it, const char *key, char *val, int size);
int (*pl_get_meta_raw) (DB_playItem_t *it, const char *key, char *val, int size);
int (*plt_get_meta) (ddb_playlist_t *handle, const char *key, char *val, int size);
// fast way to test if a field exists in playitem
int (*pl_meta_exists) (DB_playItem_t *it, const char *key);
+#endif
- // ******* new 1.5 APIs *******
+ // since 1.5
+#if (DDB_API_LEVEL >= 5)
// register/unregister for getting continuous wave data
// mainly for visualization
// ctx must be unique
@@ -872,6 +879,7 @@ typedef struct {
// save referenced playlist in config
int (*plt_save_n) (int n);
int (*plt_save_config) (ddb_playlist_t *plt);
+#endif
} DB_functions_t;
// NOTE: an item placement must be selected like this