+ /** The score value (if -a was given). */
+ long score;
+ /** The sha1 hash of audio file. */
+ HASH_TYPE *hash;
+};
+int make_status_items(struct ls_data *d, struct para_buffer *pb);
+void make_empty_status_items(char *buf);
+
+/** At most that many bytes will be passed from afs to para_server. */
+#define VERBOSE_LS_OUTPUT_SIZE 4096
+
+/*
+ * Data about the current audio file, passed from afs to server.
+ */
+struct audio_file_data {
+ /** Same info as ls -lv -p current audio_file. */
+ char verbose_ls_output[VERBOSE_LS_OUTPUT_SIZE];
+ /** The open file descriptor to the current audio file. */
+ int fd;
+ /** Vss needs this for streaming. */
+ struct afh_info afhi;
+};
+
+enum afs_server_code {
+ NEXT_AUDIO_FILE,
+ NO_ADMISSIBLE_FILES,
+ AFD_CHANGE