summaryrefslogtreecommitdiff
path: root/libwardrobe/src/wardrobe.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-22 11:37:40 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-22 11:37:40 +0200
commit7758eeaaafb49bb8c2ced598f3a9480978ba8265 (patch)
tree0d44bffb008937e8b8cfe6fce10936326b887f21 /libwardrobe/src/wardrobe.h
parentab38ac31d09f85ceb4e47f4a18e3d71f59c2c9d4 (diff)
downloadpianobar-7758eeaaafb49bb8c2ced598f3a9480978ba8265.tar.gz
pianobar-7758eeaaafb49bb8c2ced598f3a9480978ba8265.tar.bz2
pianobar-7758eeaaafb49bb8c2ced598f3a9480978ba8265.zip
wardrobe: Data types must be public
Diffstat (limited to 'libwardrobe/src/wardrobe.h')
-rw-r--r--libwardrobe/src/wardrobe.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libwardrobe/src/wardrobe.h b/libwardrobe/src/wardrobe.h
index 926f4df..aeeda87 100644
--- a/libwardrobe/src/wardrobe.h
+++ b/libwardrobe/src/wardrobe.h
@@ -22,6 +22,27 @@ THE SOFTWARE.
/* public api, not stable yet */
+#include <curl/curl.h>
+
+typedef struct {
+ char *user;
+ char *password;
+ char authToken[100];
+ char postUrl[1024];
+ CURL *ch;
+} WardrobeHandle_t;
+
+typedef struct {
+ char *artist;
+ char *title;
+ time_t started;
+ time_t length;
+} WardrobeSong_t;
+
+typedef enum {WARDROBE_RET_ERR, WARDROBE_RET_OK,
+ WARDROBE_RET_CLIENT_BANNED, WARDROBE_RET_BADAUTH,
+ WARDROBE_RET_BADTIME, WARDROBE_RET_BADSESSION} WardrobeReturn_t;
+
void WardrobeInit (WardrobeHandle_t *wh);
void WardrobeSongInit (WardrobeSong_t *ws);
void WardrobeSongDestroy (WardrobeSong_t *ws);