X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.h;h=a83aaae29aa59362f9665c08c1abcb899cbfdb6c;hp=86d4f17393adc94cbd524e9d0ac8e74565a9148b;hb=75facba4cf88fd781d99199cc6098b596562b4ac;hpb=61250cf03241bf73662dac3753e44660a572fa2a diff --git a/server.h b/server.h index 86d4f173..a83aaae2 100644 --- 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,14 +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 */ - char selector_info[MMD_INFO_SIZE]; - /** The number of the current audio file selector. */ - int selector_num; - /** commands set this to non-zero to change the current selector */ - int selector_change; + /** This gets updated by afs and contains its current mode. */ + char afs_mode_string[MAXLINE]; /** used by the sender command */ struct sender_command_data sender_cmd_data; + /** Describes the current audio file. */ struct audio_file_data afd; };