X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.h;h=267cc8d35a0032e2b221162857507df9a4358b6c;hp=d01f0cfb77cc17eaff5e5618cb734f54a6f9fa5e;hb=8221397af24a2df3c2edbc889847ce0ab15eb3e0;hpb=7ba6e107eb38c5ceb6f66aac21ad6a5a3afa49ad diff --git a/afs.h b/afs.h index d01f0cfb..267cc8d3 100644 --- a/afs.h +++ b/afs.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2008 Andre Noll + * Copyright (C) 2007-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -24,6 +24,8 @@ struct afs_info { uint32_t lyrics_id; /** Mp3, ogg or aac. */ uint8_t audio_format_id; + /** Amplification value. */ + uint8_t amp; }; /** @@ -59,14 +61,23 @@ enum afs_events { BLOB_REMOVE, }; +/** + * Used as data for \ref afs_event() for events of type \p ATTRIBUTE_ADD. + */ struct rmatt_event_data { + /** The name of the attribute being added. */ const char *name; + /** Its bit number. */ unsigned char bitnum; }; - +/** + * Used as data for \ref afs_event() for events of type \p ATTRIBUTE_AFSI_CHANGE. + */ struct afsi_change_event_data { + /** Pointer to the row that has changed. */ struct osl_row *aft_row; + /** Afs info before the change. */ struct afs_info *old_afsi; }; @@ -85,7 +96,6 @@ struct afs_table { /** Handles afs events. */ int (*event_handler)(enum afs_events event, struct para_buffer *pb, void *data); - /* int *(check)() */ }; enum play_mode {PLAY_MODE_MOOD, PLAY_MODE_PLAYLIST};