fade.c: Don't include curses.h.
[paraslash.git] / server.ggo
index 2c3ff1d0970258d1ddce7471ce4222f87cf6d508..6d824152d23165df92886d3059d0e6523cf339c1 100644 (file)
@@ -124,100 +124,44 @@ option "announce_time" A
        optional
 
 
-option "selector" S
-#~~~~~~~~~~~~~~~~~~
-
-"(default=random)"
-
-       string typestr="name"
-       optional
-
-
-
-section "mysql selector:"
-#~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-option "mysql_host" -
-#~~~~~~~~~~~~~~~~~~~~
-
-"mysql server"
-
-       string typestr="ip or hostname"
-       default="localhost"
-       optional
+#############################
+section "audio file selector"
+#############################
 
-option "mysql_port" -
-#~~~~~~~~~~~~~~~~~~~~
+option "afs_database_dir" D
+#~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-"where mysql is listening"
+"Directory containing the osl database of the
+audio file selector.
+(default='~/.paraslash/afs_database'"
 
-       int typestr="portnumber"
-       default="3306"
+       string typestr="path"
        optional
 
 
-option "mysql_user" -
+option "afs_socket" s
 #~~~~~~~~~~~~~~~~~~~~
 
-"default value: username from /etc/passwd"
-
-       string typestr="username"
-       optional
-
-option "mysql_passwd" -
-#~~~~~~~~~~~~~~~~~~~~~~
-
-"(required)"
+"Command socket for the audio file selector"
 
-       string
+       string typestr="path"
+       default="/var/paraslash/afs_command_socket"
        optional
 
-option "mysql_database" -
-#~~~~~~~~~~~~~~~~~~~~~~~~
-
-"name of mysql database"
-
-       string
-       default="paraslash"
-       optional
-
-option "mysql_audio_file_dir"  -
-#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-"dir to search for audio files (required)"
-
-       string typestr="dirname"
-       optional
-
-option "mysql_default_score" -
-#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-"scoring rule to use if stream definition
-does not contain explicit score definition"
-
-       string
-       default="(LASTPLAYED() / 1440 - 1000 / (LASTPLAYED() + 1) - sqrt(NUMPLAYED()))"
-       optional
-
-
-
-
-section "random selector"
-#~~~~~~~~~~~~~~~~~~~~~~~~
-
+option "afs_initial_mode" i
+#~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-option "random_dir" -
-#~~~~~~~~~~~~~~~~~~~~
+"Mood or playlist to load on startup. Must be
+prefixed with either 'p/' or 'm/' to indicate
+whether a playlist or a mood should be
+loaded. Example:
+       --afs_initial_mode p/foo
+loads the playlist named 'foo'."
 
-"dir to search for audio files"
-       string typestr="dirname"
-       default="/home/music"
+       string typestr="<specifier>/<name>"
        optional
 
 
-
-
 section "http sender"
 #~~~~~~~~~~~~~~~~~~~~