summaryrefslogtreecommitdiff
path: root/src/main.h
AgeCommit message (Collapse)AuthorFilesLines
2018-10-30Add network timeouts and retriesLars-Dominik Braun1-1/+1
All network operations can time out now. API requests are retried up to three times (default). Replaces setting max_player_errors with max_retries, which is used for player and API. Adds timeout setting. Partially reverts 436a1d4012553a2f33d0e3a5180b3b5ae0378bdd and fixes (at least) issue #657. Thanks to @exarkun for testing.
2017-05-17Switch to #pragma onceLars-Dominik Braun1-4/+1
# Conflicts: # src/http/http.h # src/player.h
2017-05-17Show status code text if no other source of error is available.Michał Cichoń1-1/+3
2015-12-05Move files around.Michał Cichoń1-2/+2
2015-08-26Drop curl in favor of WinHTTPMichał Cichoń1-2/+4
Abstract out HTTP comunication and replace libcurl with WinHTTP.
2015-08-25Port pianobar to Windows:Michał Cichoń1-3/+3
- use newly introduced console.h instead of terminal.h which emulate some behavior of VT terminals - replace ffmpeg/libov player with more abstract one with DirectShow implementation
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.