# HG changeset patch # User Tomasz Mon # Date 1211381497 -7200 # Node ID d27f00f6b56891028fe229bd3ea0e95a29314d41 # Parent c2d739b4c84df7d2ec316824166e5f1c2c00bdc4 add audacious_drct_initiate diff -r c2d739b4c84d -r d27f00f6b568 src/audacious/auddrct.c --- 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()) diff -r c2d739b4c84d -r d27f00f6b568 src/audacious/auddrct.h --- 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 ); diff -r c2d739b4c84d -r d27f00f6b568 src/audacious/plugin.h --- 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 diff -r c2d739b4c84d -r d27f00f6b568 src/audacious/pluginenum.c --- 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,