summaryrefslogtreecommitdiff
path: root/libpiano/src/http.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-06-28 21:02:47 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-06-28 21:04:29 +0200
commit2c7a776e8882b7896090a24dc09ccd42e6f8a6ca (patch)
treedec27dc70d4bf6d77e268dfe7933c84818bab90d /libpiano/src/http.c
parent07f712797df608f20f2dc119d41e3325cb20a99d (diff)
downloadpianobar-2c7a776e8882b7896090a24dc09ccd42e6f8a6ca.tar.gz
pianobar-2c7a776e8882b7896090a24dc09ccd42e6f8a6ca.tar.bz2
pianobar-2c7a776e8882b7896090a24dc09ccd42e6f8a6ca.zip
Finally clean up curl garbage
I missed some #includes. Documentation had to be updated, too.
Diffstat (limited to 'libpiano/src/http.c')
-rw-r--r--libpiano/src/http.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/libpiano/src/http.c b/libpiano/src/http.c
index 5c74d26..6173c89 100644
--- a/libpiano/src/http.c
+++ b/libpiano/src/http.c
@@ -29,14 +29,12 @@ THE SOFTWARE.
#include "http.h"
-/* FIXME: we may use a callback given by the library client here. would be
- * more flexible... */
/* post data to url and receive answer as string
- * @param initialized curl handle
- * @param call this url
- * @param post this data
- * @param put received data here, memory is allocated by this function
- * @return nothing yet
+ * @param initialized waitress handle
+ * @param null-terminated post data string
+ * @param receive buffer
+ * @param buffer size
+ * @return _RET_OK or _RET_NET_ERROR
*/
PianoReturn_t PianoHttpPost (WaitressHandle_t *waith, const char *postData,
char *retData, size_t retDataSize) {
@@ -50,11 +48,11 @@ PianoReturn_t PianoHttpPost (WaitressHandle_t *waith, const char *postData,
return PIANO_RET_NET_ERROR;
}
-/* get data
- * @param initialized curl handle
- * @param call this url
- * @param put received data here, memory is allocated by this function
- * @return nothing yet
+/* http get request, return server response body
+ * @param initialized waitress handle
+ * @param receive buffer
+ * @param buffer size
+ * @return _RET_OK or _RET_NET_ERROR
*/
PianoReturn_t PianoHttpGet (WaitressHandle_t *waith, char *retData,
size_t retDataSize) {