summaryrefslogtreecommitdiff
path: root/plugins.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-04 13:32:15 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-04 13:32:15 +0200
commit3e353f8d1a41585b4715eaf0dfeed057b8a23b15 (patch)
treec651c2443efaa6004c0ab19c56aefe2961c8d1b0 /plugins.c
parent1af02622022d9100b302c7dd7e8bc08793bead38 (diff)
implemented dragndrop between different playlists
Diffstat (limited to 'plugins.c')
-rw-r--r--plugins.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins.c b/plugins.c
index 64845e0d..429fac61 100644
--- a/plugins.c
+++ b/plugins.c
@@ -106,6 +106,8 @@ static DB_functions_t deadbeef_api = {
.cond_broadcast = cond_broadcast,
// playlist management
.plt_get_count = plt_get_count,
+ .plt_get_head = (DB_playItem_t * (*) (int plt))plt_get_head,
+ .plt_get_sel_count = plt_get_sel_count,
.plt_add = plt_add,
.plt_remove = plt_remove,
.plt_free = plt_free,
@@ -117,6 +119,8 @@ static DB_functions_t deadbeef_api = {
// playlist access
.pl_lock = pl_lock,
.pl_unlock = pl_unlock,
+ .plt_lock = plt_lock,
+ .plt_unlock = plt_unlock,
.pl_item_alloc = (DB_playItem_t* (*)(void))pl_item_alloc,
.pl_item_ref = (void (*)(DB_playItem_t *))pl_item_ref,
.pl_item_unref = (void (*)(DB_playItem_t *))pl_item_unref,
@@ -153,6 +157,7 @@ static DB_functions_t deadbeef_api = {
.pl_format_title = (int (*) (DB_playItem_t *it, int idx, char *s, int size, int id, const char *fmt))pl_format_title,
.pl_format_item_display_name = (void (*) (DB_playItem_t *it, char *str, int len))pl_format_item_display_name,
.pl_move_items = (void (*) (int iter, DB_playItem_t *drop_before, uint32_t *indexes, int count))pl_move_items,
+ .pl_copy_items = (void (*) (int iter, int plt_from, DB_playItem_t *before, uint32_t *indices, int cnt))pl_copy_items,
.pl_search_reset = pl_search_reset,
.pl_search_process = pl_search_process,
// metainfo