changeset 4578:d27f00f6b568

add audacious_drct_initiate
author Tomasz Mon <desowin@gmail.com>
date Wed, 21 May 2008 16:51:37 +0200
parents c2d739b4c84d
children 7f8a87023730
files src/audacious/auddrct.c src/audacious/auddrct.h src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 4 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/auddrct.c	Wed May 21 15:50:36 2008 +0200
+++ b/src/audacious/auddrct.c	Wed May 21 16:51:37 2008 +0200
@@ -94,6 +94,12 @@
 /* playback */
 
 void
+drct_initiate ( void )
+{
+    playback_initiate();
+}
+
+void
 drct_play ( void )
 {
     if (playback_get_paused())
--- a/src/audacious/auddrct.h	Wed May 21 15:50:36 2008 +0200
+++ b/src/audacious/auddrct.h	Wed May 21 16:51:37 2008 +0200
@@ -39,6 +39,7 @@
 void drct_activate(void);
 
 /* playback */
+void drct_initiate ( void );
 void drct_play ( void );
 void drct_pause ( void );
 void drct_stop ( void );
--- a/src/audacious/plugin.h	Wed May 21 15:50:36 2008 +0200
+++ b/src/audacious/plugin.h	Wed May 21 16:51:37 2008 +0200
@@ -547,6 +547,7 @@
     void (*drct_activate)(void);
 
     /* DRCT API: playback */
+    void (*drct_initiate) ( void );
     void (*drct_play) ( void );
     void (*drct_pause) ( void );
     void (*drct_stop) ( void );
@@ -904,6 +905,7 @@
 #define audacious_drct_set_skin			_audvt->drct_set_skin
 #define audacious_drct_activate			_audvt->drct_activate
 
+#define audacious_drct_initiate                 _audvt->drct_initiate
 #define audacious_drct_play			_audvt->drct_play
 #define audacious_drct_pause			_audvt->drct_pause
 #define audacious_drct_stop			_audvt->drct_stop
--- a/src/audacious/pluginenum.c	Wed May 21 15:50:36 2008 +0200
+++ b/src/audacious/pluginenum.c	Wed May 21 16:51:37 2008 +0200
@@ -309,6 +309,7 @@
     .drct_set_skin = NULL, /* remove someday. --mf0102 */
     .drct_activate = drct_activate,
 
+    .drct_initiate = drct_initiate,
     .drct_play = drct_play,
     .drct_pause = drct_pause,
     .drct_stop = drct_stop,