diff audacious/controlsocket.c @ 2127:63af5b9c5026 trunk

[svn] - add playlist_select_playlist() to select a literal playlist - add xmms_remote_playlist_enqueue_to_temp() - add controlsocket handler for enqueue to temp - add commandline parsing for enqueue to temp
author nenolod
date Fri, 15 Dec 2006 08:23:51 -0800
parents f18a5b617c34
children 4446a9e7bdee
line wrap: on
line diff
--- a/audacious/controlsocket.c	Fri Dec 15 07:52:09 2006 -0800
+++ b/audacious/controlsocket.c	Fri Dec 15 08:23:51 2006 -0800
@@ -502,6 +502,18 @@
             }
             ctrl_ack_packet(pkt);
             break;
+	case CMD_PLAYLIST_ENQUEUE_TO_TEMP:
+	    {
+ 	        Playlist *new_pl = playlist_new();
+
+                GDK_THREADS_ENTER();
+                playlist_select_playlist(new_pl);
+                playlist_add_url(new_pl, pkt->data);
+                GDK_THREADS_LEAVE();
+
+                ctrl_ack_packet(pkt);
+            }
+            break;
         case CMD_PLAYLIST_ADD_URL_STRING:
             GDK_THREADS_ENTER();
             playlist_add_url(playlist_get_active(), pkt->data);