summaryrefslogtreecommitdiff
path: root/plugins.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-03 20:27:55 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-03 20:27:55 +0200
commitb13342fe99b83bf37d420a827b5f55e2b770cd5e (patch)
tree8effc14d3c5ee98cbf4214a9c045dcd958c70655 /plugins.c
parentf86fc192b0dbe26d39406c7b9f508142b6e0c9be (diff)
moved message ids to deadbeef.h
added message sending to plugin API added M_TRACKCHANGED message
Diffstat (limited to 'plugins.c')
-rw-r--r--plugins.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins.c b/plugins.c
index 641f34ea..932167d0 100644
--- a/plugins.c
+++ b/plugins.c
@@ -82,6 +82,7 @@ static DB_functions_t deadbeef_api = {
.pl_item_free = (void (*)(DB_playItem_t *))pl_item_free,
.pl_item_copy = (void (*)(DB_playItem_t *, DB_playItem_t *))pl_item_copy,
.pl_insert_item = (DB_playItem_t *(*) (DB_playItem_t *after, DB_playItem_t *it))pl_insert_item,
+ .pl_get_idx_of = (int (*) (DB_playItem_t *it))pl_get_idx_of,
// metainfo
.pl_add_meta = (void (*) (DB_playItem_t *, const char *, const char *))pl_add_meta,
.pl_find_meta = (const char *(*) (DB_playItem_t *, const char *))pl_find_meta,
@@ -107,6 +108,8 @@ static DB_functions_t deadbeef_api = {
.ftell = vfs_ftell,
.rewind = vfs_rewind,
.fgetlength = vfs_fgetlength,
+ // message passing
+ .sendmessage = messagepump_push,
};
DB_functions_t *deadbeef = &deadbeef_api;