X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afs.h;h=eed17768c871c9c0a3841457a6f7762972ddf0a4;hb=cd0abca282ec1cd29510f4cf8fefb04aa7e20ad7;hp=b9c7706892a9b5ef6da7d23eb1da339d1421c1fa;hpb=58b83584e38da0c5043497320f90e166cc4aff38;p=paraslash.git diff --git a/afs.h b/afs.h index b9c77068..eed17768 100644 --- a/afs.h +++ b/afs.h @@ -108,6 +108,7 @@ struct ls_data { HASH_TYPE *hash; }; int make_status_items(struct ls_data *d, struct para_buffer *pb); +void make_empty_status_items(char *buf); #define VERBOSE_LS_OUTPUT_SIZE 4096 @@ -115,16 +116,17 @@ int make_status_items(struct ls_data *d, struct para_buffer *pb); * Data about the current audio file, passed from afs to server. */ struct audio_file_data { - /* Same info as ls -lv -p . */ + /** Same info as ls -lv -p . */ char verbose_ls_output[VERBOSE_LS_OUTPUT_SIZE]; - /* The open file descriptor to the current audio file. */ + /** The open file descriptor to the current audio file. */ int fd; - /* Vss needs this for streaming. */ + /** Vss needs this for streaming. */ struct afh_info afhi; }; enum afs_server_code { NEXT_AUDIO_FILE, + NO_ADMISSIBLE_FILES, AFD_CHANGE }; @@ -198,8 +200,8 @@ int get_attribute_text(uint64_t *atts, const char *delim, char **text); /* aft */ void aft_init(struct afs_table *t); int aft_get_row_of_path(const char *path, struct osl_row **row); -int open_and_update_audio_file(struct osl_row *aft_row, - struct audio_file_data *afd, long score); +int open_and_update_audio_file(struct osl_row *aft_row, long score, + struct audio_file_data *afd); int load_afd(int shmid, struct audio_file_data *afd); int load_afsi(struct afs_info *afsi, struct osl_object *obj); void save_afsi(struct afs_info *afsi, struct osl_object *obj);