X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=89ad80d956af3b7107f7ae4883619e689d3d2582;hp=c03867c1b86a27551f24c5b97a608f9e1107d2e8;hb=23b1141809ea872a144d8dbe6d123e93e74094de;hpb=b0fe6d882dd35b01360a66e130d6714aff7b6a0d diff --git a/mood.c b/mood.c index c03867c1..89ad80d9 100644 --- a/mood.c +++ b/mood.c @@ -873,7 +873,7 @@ out: * * \sa mood_open(), mood_close(). */ -int reload_current_mood(void) +static int reload_current_mood(void) { int ret; char *mood_name = NULL; @@ -890,6 +890,17 @@ int reload_current_mood(void) return ret; } +/** + * Notification callback for the moods table. + * + * \param event Type of the event just occurred. + * \param pb Unused. + * \param data Its type depends on the event. + * + * This function performs actions required due to the occurrence of the given + * event. Possible actions include reload of the current mood and update of the + * score of an audio file. + */ int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb, void *data) { @@ -926,4 +937,3 @@ int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb return 1; } } -