diff src/audacious/playback.c @ 2407:1dc1d36d0347 trunk

[svn] - add hooks: playback begin, playback end, playlist reached end
author nenolod
date Thu, 25 Jan 2007 21:29:51 -0800
parents 0358eb5783e6
children 0fd7f4f969ad
line wrap: on
line diff
--- a/src/audacious/playback.c	Thu Jan 25 21:19:44 2007 -0800
+++ b/src/audacious/playback.c	Thu Jan 25 21:29:51 2007 -0800
@@ -51,9 +51,9 @@
 #include "libaudacious/urldecode.h"
 #include "util.h"
 
-
 #include "playback.h"
 
+#include "hook.h"
 
 /* FIXME: yuck!! this shouldn't be here... */
 void
@@ -140,6 +140,8 @@
 
     playlist_check_pos_current(playlist);
     mainwin_set_info_text();
+
+    hook_call("playback begin", entry);
 }
 
 void