summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libwaitress/waitress.h30
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 *);