diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-09-18 21:14:50 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-11-09 20:10:03 +0100 |
commit | 741ba0cee9f8338fba928898e2ec14f002f47c75 (patch) | |
tree | 0b231511416af9de8e4c325dfa63337f316f71fd | |
parent | 41b4447b602a56e8438bcf8fb3c9d73c2aa4ece2 (diff) | |
download | pianobar-windows-741ba0cee9f8338fba928898e2ec14f002f47c75.tar.gz pianobar-windows-741ba0cee9f8338fba928898e2ec14f002f47c75.tar.bz2 pianobar-windows-741ba0cee9f8338fba928898e2ec14f002f47c75.zip |
waitress: beautify typedefs
-rw-r--r-- | src/libwaitress/waitress.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/libwaitress/waitress.h b/src/libwaitress/waitress.h index 7ef86a1..67c12d6 100644 --- a/src/libwaitress/waitress.h +++ b/src/libwaitress/waitress.h @@ -29,9 +29,15 @@ THE SOFTWARE. #define WAITRESS_BUFFER_SIZE 10*1024 -typedef enum {WAITRESS_METHOD_GET = 0, WAITRESS_METHOD_POST} WaitressMethod_t; +typedef enum { + WAITRESS_METHOD_GET = 0, + WAITRESS_METHOD_POST, +} WaitressMethod_t; -typedef enum {WAITRESS_CB_RET_ERR, WAITRESS_CB_RET_OK} WaitressCbReturn_t; +typedef enum { + WAITRESS_CB_RET_ERR, + WAITRESS_CB_RET_OK, +} WaitressCbReturn_t; typedef struct { char *url; /* splitted url, unusable */ @@ -56,12 +62,20 @@ typedef struct { int socktimeout; } WaitressHandle_t; -typedef enum {WAITRESS_RET_ERR = 0, WAITRESS_RET_OK, WAITRESS_RET_STATUS_UNKNOWN, - WAITRESS_RET_NOTFOUND, WAITRESS_RET_FORBIDDEN, WAITRESS_RET_CONNECT_REFUSED, - WAITRESS_RET_SOCK_ERR, WAITRESS_RET_GETADDR_ERR, - WAITRESS_RET_CB_ABORT, - WAITRESS_RET_PARTIAL_FILE, WAITRESS_RET_TIMEOUT, WAITRESS_RET_READ_ERR, - WAITRESS_RET_CONNECTION_CLOSED +typedef enum { + WAITRESS_RET_ERR = 0, + WAITRESS_RET_OK, + WAITRESS_RET_STATUS_UNKNOWN, + WAITRESS_RET_NOTFOUND, + WAITRESS_RET_FORBIDDEN, + WAITRESS_RET_CONNECT_REFUSED, + WAITRESS_RET_SOCK_ERR, + WAITRESS_RET_GETADDR_ERR, + WAITRESS_RET_CB_ABORT, + WAITRESS_RET_PARTIAL_FILE, + WAITRESS_RET_TIMEOUT, + WAITRESS_RET_READ_ERR, + WAITRESS_RET_CONNECTION_CLOSED, } WaitressReturn_t; void WaitressInit (WaitressHandle_t *); |