diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-22 11:37:40 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-22 11:37:40 +0200 |
commit | 7758eeaaafb49bb8c2ced598f3a9480978ba8265 (patch) | |
tree | 0d44bffb008937e8b8cfe6fce10936326b887f21 /libwardrobe/src | |
parent | ab38ac31d09f85ceb4e47f4a18e3d71f59c2c9d4 (diff) | |
download | pianobar-7758eeaaafb49bb8c2ced598f3a9480978ba8265.tar.gz pianobar-7758eeaaafb49bb8c2ced598f3a9480978ba8265.tar.bz2 pianobar-7758eeaaafb49bb8c2ced598f3a9480978ba8265.zip |
wardrobe: Data types must be public
Diffstat (limited to 'libwardrobe/src')
-rw-r--r-- | libwardrobe/src/main.c | 19 | ||||
-rw-r--r-- | libwardrobe/src/wardrobe.h | 21 |
2 files changed, 21 insertions, 19 deletions
diff --git a/libwardrobe/src/main.c b/libwardrobe/src/main.c index f188d46..2da94f0 100644 --- a/libwardrobe/src/main.c +++ b/libwardrobe/src/main.c @@ -28,25 +28,6 @@ THE SOFTWARE. #include "md5.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; - #define WARDROBE_HTTP_BUFFER_SIZE 10000 void WardrobeSongInit (WardrobeSong_t *ws) { 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); |