void playq_song_add_head ( struct vfsref vr  ) 

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

Definition at line 311 of file playq.c.

00312 {
00313         struct vfslist newlist = VFSLIST_INITIALIZER;
00314 
00315         /* Recursively expand the item */
00316         vfs_unfold(&newlist, vr);
00317         if (vfs_list_empty(&newlist))
00318                 return;
00319 
00320         playq_lock();
00321         /* Copy the expanded contents to the playlist */
00322         while ((vr = vfs_list_last(&newlist)) != NULL) {
00323                 vfs_list_remove(&newlist, vr);
00324                 vfs_list_insert_head(&playq_list, vr);
00325                 gui_playq_notify_post_insertion(1);
00326         }
00327 
00328         gui_playq_notify_done();
00329         g_cond_signal(playq_wakeup);
00330         playq_unlock();
00331 }

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