Don't compute attributes string twice.
[paraslash.git] / server.h
index cb7a716a1ef6eb17221bcea561ccdc59fee1cd3a..a83aaae29aa59362f9665c08c1abcb899cbfdb6c 100644 (file)
--- a/server.h
+++ b/server.h
@@ -43,7 +43,7 @@ struct sender_command_data{
 };
 
 /**
- * used for parent-child communication
+ * Used for parent-child communication.
  *
  * There's only one struct of this type which lives in shared memory
  * for communication between the server instances. Access to this
@@ -59,16 +59,10 @@ struct sender_command_data{
  *     date.
  */
 struct misc_meta_data {
-       /** information on the current audio file  */
-       struct audio_format_info afi;
        /** the size of the current audio file in bytes */
        size_t size;
-       /** the full path of the current audio file */
-       char filename[_POSIX_PATH_MAX];
-       /** the last modification file of the current audio file */
+       /** the last modification time of the current audio file */
        time_t mtime;
-       /** the number of the current audio format */
-       int audio_format;
        /** the "old" status flags -- commands may only read them */
        unsigned int vss_status_flags;
        /** The new status flags -- commands may set them. */
@@ -100,12 +94,11 @@ struct misc_meta_data {
        unsigned int active_connections;
        /** the process id of para_server */
        pid_t server_pid;
-       /** a string that gets filled in by the current audio file selector */
+       /** This gets updated by afs and contains its current mode. */
        char afs_mode_string[MAXLINE];
-       /** commands set this to non-zero to change the current selector */
-       int selector_change;
        /** used by the sender command */
        struct sender_command_data sender_cmd_data;
+       /** Describes the current audio file. */
        struct audio_file_data afd;
 };