diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-10-23 10:27:31 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-10-23 10:31:25 +0200 |
commit | 436a1d4012553a2f33d0e3a5180b3b5ae0378bdd (patch) | |
tree | 984f5007600dcf9029eaf8750740e10226196af1 /src/main.h | |
parent | af0f9d4bbff4f7a166c15df8c60ad61791740207 (diff) | |
download | pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.tar.gz pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.tar.bz2 pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.zip |
Interruptible requests
^C now works as expected: It interrupts API requests, input prompts and
audio streaming. Timeouts have been removed.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,8 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef SRC_MAIN_H_4ZGSCG6X -#define SRC_MAIN_H_4ZGSCG6X +#pragma once #include <curl/curl.h> @@ -46,5 +45,6 @@ typedef struct { unsigned int playerErrors; } BarApp_t; -#endif /* SRC_MAIN_H_4ZGSCG6X */ +#include <signal.h> +extern sig_atomic_t *interrupted; |