From 741ba0cee9f8338fba928898e2ec14f002f47c75 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 18 Sep 2011 21:14:50 +0200 Subject: waitress: beautify typedefs --- src/libwaitress/waitress.h | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'src') 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 *); -- cgit v1.2.3