From 1416dfbf622b443c309e299e0b1efd01646c8b37 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 16 Apr 2011 21:01:37 +0200 Subject: get rid of some legacy events; update playlist grouping on metadata changes --- deadbeef.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'deadbeef.h') diff --git a/deadbeef.h b/deadbeef.h index 49971f30..bd288177 100644 --- a/deadbeef.h +++ b/deadbeef.h @@ -375,11 +375,12 @@ typedef struct { int (*plt_get_title) (void *handle, char *buffer, int bufsize); int (*plt_set_title) (void *handle, const char *title); - // sets the modification time using time(NULL) call + // increments modification index void (*plt_modified) (void *handle); - // returns the time of last modification - time_t (*plt_get_modification_time) (void *handle); + // returns modication index + // the index is incremented by 1 every time playlist changes + int (*plt_get_modification_idx) (void *handle); // playlist metadata // this kind of metadata is stored in playlist (dbpl) files @@ -604,11 +605,6 @@ typedef struct { void (*plug_remove_decoder_id) (const char *id); struct DB_plugin_s *(*plug_get_for_id) (const char *id); - // plugin events - void (*plug_trigger_event_trackchange) (DB_playItem_t *from, DB_playItem_t *to); - void (*plug_trigger_event_trackinfochanged) (DB_playItem_t *track); - void (*plug_trigger_event_playlistchanged) (void); - // misc utilities int (*is_local_file) (const char *fname); // returns 1 for local filename, 0 otherwise -- cgit v1.2.3