summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-04-06 12:25:13 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-04-06 12:25:13 +0200
commit4458cbab76fd98989fa2d4260dd20bbbd66297a4 (patch)
tree832c7230129b50c278044cb9f4aabe711697ee69 /src/main.h
parentb13b61b77b6d58c8b541bc4628b998681e94875f (diff)
downloadpianobar-windows-4458cbab76fd98989fa2d4260dd20bbbd66297a4.tar.gz
pianobar-windows-4458cbab76fd98989fa2d4260dd20bbbd66297a4.tar.bz2
pianobar-windows-4458cbab76fd98989fa2d4260dd20bbbd66297a4.zip
Switch back to libcurl
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.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h
index 12887ea..c8134ae 100644
--- a/src/main.h
+++ b/src/main.h
@@ -24,8 +24,9 @@ THE SOFTWARE.
#ifndef SRC_MAIN_H_4ZGSCG6X
#define SRC_MAIN_H_4ZGSCG6X
+#include <curl/curl.h>
+
#include <piano.h>
-#include <waitress.h>
#include "player.h"
#include "settings.h"
@@ -33,7 +34,7 @@ THE SOFTWARE.
typedef struct {
PianoHandle_t ph;
- WaitressHandle_t waith;
+ CURL *http;
player_t player;
BarSettings_t settings;
/* first item is current song */