Commits


adjust copyright years


fix my email address used @openbsd.org initially by mistake and got copied around in most files. Since this has nothing to do officially with the OpenBSD project, use my own email address.


fix snprintf call; could return < 0 on conversion failure


remove double ctl_sock check


enrich `amused monitor' reported events The monitor mode now has access to some additional information other than just the name of the event. The `mode' and `seek' events now report the mode status and the position/duration respectively, allowing consumers of `amused monitor' to show correct and coherent information. It helps in particular applications like `amused-monitor' (in contrib/) that show a progress bar for the current song. Before, they had to run their own timers and periodically synchronize using `amused status', now they can just update the state in the same `amused-monitor' event loop.


change default 'status' format to "status,time:oneline,mode:oneline"


show repeat one after all


print the current modes after 'amused consume/repeat'


typo in print_status: now it's mode, not repeat


fix 'amused load' with empty playlist it didn't send the IMSG_CTL_COMMIT final message so it would get stuck. This also makes 'amused flush' redundant since it's possible to 'amused load </dev/null'.


make the on|off argument to consume/repeat optional


add consume mode the consume mode implicitly drops the tracks from the playlist when played 'till the end (note that skipping over a track doesn't trigger the consume mode - yet?)


drop restart from the list of 'status-like' commands now it's an alias for 'seek 0', so it doesn't return the status.


pledge early This changed amused to pledge "stdio rpath" early in main() and then drop down to "stdio" in ctlaction, by removing the pledge call in parse. Simplifies a bit the logic and runs more code under pledge.


s/imsg_name/event_name