void playq_init ( int  autoplay,
int  xmms,
int  load_dumpfile 
)

Initialize the playlist locking.

Definition at line 245 of file playq.c.

00246 {
00247         const char *filename;
00248         struct vfsref *vr;
00249 
00250         playq_mtx = g_mutex_new();
00251         playq_wakeup = g_cond_new();
00252         playq_rand = g_rand_new(); /* XXX: /dev/urandom in chroot() */
00253 
00254         if (autoplay || config_getopt_bool("playq.autoplay"))
00255                 playq_flags &= ~PF_STOP;
00256 
00257         if (xmms || config_getopt_bool("playq.xmms")) {
00258                 funcs = &xmms_funcs;
00259                 playq_repeat = 1;
00260         }
00261 
00262         filename = config_getopt("playq.dumpfile");
00263         if (load_dumpfile && filename[0] != '\0') {
00264                 /* Autoload playlist */
00265                 vr = vfs_lookup(filename, NULL, NULL, 0);
00266                 if (vr != NULL) {
00267                         vfs_unfold(&playq_list, vr);
00268                         vfs_close(vr);
00269                 }
00270         }
00271 }

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:43 2010 for herrie by  doxygen 1.6.3