void playq_song_add_tail ( struct vfsref vr  ) 

Lock queue and add a file or directory to the tail of the playlist.

Definition at line 334 of file playq.c.

00335 {
00336         struct vfslist newlist = VFSLIST_INITIALIZER;
00337 
00338         /* Recursively expand the item */
00339         vfs_unfold(&newlist, vr);
00340         if (vfs_list_empty(&newlist))
00341                 return;
00342 
00343         playq_lock();
00344         /* Copy the expanded contents to the playlist */
00345         while ((vr = vfs_list_first(&newlist)) != NULL) {
00346                 vfs_list_remove(&newlist, vr);
00347                 vfs_list_insert_tail(&playq_list, vr);
00348                 gui_playq_notify_post_insertion(vfs_list_items(&playq_list));
00349         }
00350 
00351         gui_playq_notify_done();
00352         g_cond_signal(playq_wakeup);
00353         playq_unlock();
00354 }

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:41 2010 for herrie by  doxygen 1.6.3