X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.c;h=355400874377a82cd1b5c085f6d3c729411ce540;hp=c36f86b8aec855e07e6149a2b7e724c9f1e7326e;hb=192417698d9dab017ef6108fa6e9fd5ea1dc5633;hpb=613b848d6d5a1dc7e714582c74bc98ffed1d84a0 diff --git a/afs.c b/afs.c index c36f86b8..35540087 100644 --- a/afs.c +++ b/afs.c @@ -486,12 +486,13 @@ int open_next_audio_file(void) struct audio_file_data afd; int ret, shmid; char buf[8]; + long score; PARA_NOTICE_LOG("getting next audio file\n"); - ret = score_get_best(&aft_row, &afd.score); + ret = score_get_best(&aft_row, &score); if (ret < 0) return ret; - ret = open_and_update_audio_file(aft_row, &afd); + ret = open_and_update_audio_file(aft_row, &afd, score); if (ret < 0) return ret; shmid = ret; @@ -754,9 +755,13 @@ static void register_signal_task(void) static struct list_head afs_client_list; +/** Describes on connected afs client. */ struct afs_client { + /** Position in the afs client list. */ struct list_head node; + /** The socket file descriptor for this client. */ int fd; + /** The time the client connected. */ struct timeval connect_time; };