diff options
author | 2011-03-09 14:00:48 +0100 | |
---|---|---|
committer | 2011-03-09 14:00:48 +0100 | |
commit | 298961916acac828df8de8ac740eacc2df0a5e40 (patch) | |
tree | 991dcf38fbe67150580c6b0fe6d0e9ab92644f4d /deadbeef.h | |
parent | 2d0b00f6bbd326790c053961ccec07106cb172c7 (diff) |
few fixes/improvements to metadata editor and related plugin APIs
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -440,18 +440,21 @@ typedef struct { void (*pl_copy_items) (int iter, int plt_from, DB_playItem_t *before, uint32_t *indices, int cnt); void (*pl_search_reset) (void); void (*pl_search_process) (const char *text); - // metainfo + // direct access to metadata structures + DB_metaInfo_t * (*pl_get_metadata_head) (DB_playItem_t *it); // returns head of metadata linked list + void (*pl_delete_metadata) (DB_playItem_t *it, DB_metaInfo_t *meta); + + // high-level access to metadata void (*pl_add_meta) (DB_playItem_t *it, const char *key, const char *value); void (*pl_append_meta) (DB_playItem_t *it, const char *key, const char *value); void (*pl_set_meta_int) (DB_playItem_t *it, const char *key, int value); void (*pl_set_meta_float) (DB_playItem_t *it, const char *key, float value); - // must be used from within explicit pl_lock/unlock block + void (*pl_delete_meta) (DB_playItem_t *it, const char *key); const char *(*pl_find_meta) (DB_playItem_t *it, const char *key); int (*pl_find_meta_int) (DB_playItem_t *it, const char *key, int def); float (*pl_find_meta_float) (DB_playItem_t *it, const char *key, float def); void (*pl_replace_meta) (DB_playItem_t *it, const char *key, const char *value); void (*pl_delete_all_meta) (DB_playItem_t *it); - DB_metaInfo_t * (*pl_get_metadata) (DB_playItem_t *it); void (*pl_set_item_duration) (DB_playItem_t *it, float duration); float (*pl_get_item_duration) (DB_playItem_t *it); uint32_t (*pl_get_item_flags) (DB_playItem_t *it); |