diff options
author | waker <wakeroid@gmail.com> | 2011-04-09 13:25:03 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-09 13:25:03 +0200 |
commit | c828ee3b7ad0037896e2d8e3154f44bba0e1da20 (patch) | |
tree | e66c8e8be79a09d2b423c87ac229d3921ff524de /deadbeef.h | |
parent | 74722826f46fd4a473b983c3a261cd04a18104a6 (diff) |
added SEEKED event, so that plugins can update their status
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -207,6 +207,12 @@ typedef struct { int state; } DB_event_state_t; +typedef struct { + DB_event_t ev; + DB_playItem_t *track; + float playpos; +} ddb_event_playpos_t; + typedef struct DB_conf_item_s { char *key; char *value; @@ -218,7 +224,7 @@ typedef int (*DB_callback_t)(DB_event_t *, uintptr_t data); // events enum { - DB_EV_SONGCHANGED = 1, // triggers when song was just changed + DB_EV_SONGCHANGED = 1, // triggers when current song changed from one to another, see DB_event_trackchange_t, both pointers can be NULL DB_EV_SONGSTARTED = 2, // triggers when song started playing (for scrobblers and such) DB_EV_SONGFINISHED = 3, // triggers when song finished playing (for scrobblers and such) DB_EV_CONFIGCHANGED = 5, // configuration option changed @@ -229,6 +235,7 @@ enum { DB_EV_VOLUMECHANGED = 10, // volume was changed DB_EV_OUTPUTCHANGED = 11, // sound output plugin changed DB_EV_PLAYLISTSWITCH = 13, // playlist switch occured + DB_EV_SEEKED = 14, // seek happened, see ddb_event_playpos_t DB_EV_MAX }; |