]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: Move get_play_time_slot_num() to audiod.c.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 4 Jan 2015 04:39:15 +0000 (04:39 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 4 Apr 2015 17:53:37 +0000 (17:53 +0000)
commit5ab451760281b344bfa6e495ab1aea7d80323c3c
treed5676b78199ba294661b24b7d4083f20738fd5bd
parentb0809d42d151925c4cff666379ae27eeaf7e554c
audiod: Move get_play_time_slot_num() to audiod.c.

audiod_status_dump() sends the play time string that corresponds
to the current slot to all connected stat clients. It first calls
the get_play_time_slot_num() helper to obtain the slot number, then
calls get_time_string(slot_num).

Currently the helper function is part of audiod_command.c, hence
we expose the slot_info structure to audiod_command.c. Moving the
helper from audiod_command.c to audiod.c is a first step to make this
structure local to audiod.c.  It also allows to remove the slot_num
parameter from get_time_string().
audiod.c
audiod.h
audiod_command.c