summaryrefslogtreecommitdiff
path: root/src/main.h
AgeCommit message (Collapse)AuthorFilesLines
2016-04-14Fix songfinish event when changing stationsLars-Dominik Braun1-1/+3
The event did not contain any song data (title, artist, …), because the playlist was destroyed by the ui command. Now the actual station switch is deferred by introducing nextStation and letting the main loop handle it. Fixes issue #584.
2016-03-05Quit upon reception of two SIGINTLars-Dominik Braun1-1/+1
If player is running one SIGINT restarts current track request, two SIGINT (or more) quit pianobar. Idle main loop (i.e. no player or submenu) quits on SIGINT. Fixes issue #564.
2015-10-23Interruptible requestsLars-Dominik Braun1-3/+3
^C now works as expected: It interrupts API requests, input prompts and audio streaming. Timeouts have been removed.
2015-04-06Switch back to libcurlLars-Dominik Braun1-2/+3
Drops libwaitress. Adds the new dependency libcurl and drops gnutls. I wouldn’t say writing my own HTTP library was a mistake – it was not and the experience gained was worth it. Instead I have to acknowledge that libcurl is just better than my own implementation. Sure, it does a lot more than HTTP – one could call that bloat. Yet if you just want to get the job done™ reusing code is the way to go. See #512 and #513.
2014-07-21Refactor audio player, add retry timeoutLars-Dominik Braun1-1/+1
Fixes #442.
2014-04-22Fix include guardsLars-Dominik Braun1-3/+3
Macros starting with _ are reserved (see http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html). Fixes #440.
2013-05-13Permit multiple HTTP errors in a rowLars-Dominik Braun1-0/+1
1) Make sure that multiple bad playlists in a row don’t result in a temporary ban 2) Ignore songs skipped because the playlist timed out after pausing for too long
2011-02-02BarReadline rewriteLars-Dominik Braun1-7/+3
Doesn't use c streams any more, allows multiplexing of fifo/stdin in all situations.
2010-12-27Change my email addressLars-Dominik Braun1-1/+1
Again. And hopefully the last time.
2010-12-14Refactored main()castlec1-0/+6
No functional changes.
2010-07-31Replaced long argument list of ui callback functionsLars-Dominik Braun1-0/+46
Structure BarApp_t contains most important data now.