diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-03-12 12:33:33 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-03-16 15:24:49 +0100 |
commit | 97d9c978334236f9ba190da342eb11f645ccde03 (patch) | |
tree | 2212e21160d364c31b7c9667c15f6944fa05de87 /libwaitress/src/waitress.h | |
parent | 13bd3c8253a5c2998ce85a084a854f7a3d0ba7f5 (diff) | |
download | pianobar-97d9c978334236f9ba190da342eb11f645ccde03.tar.gz pianobar-97d9c978334236f9ba190da342eb11f645ccde03.tar.bz2 pianobar-97d9c978334236f9ba190da342eb11f645ccde03.zip |
waitress: Replaced callback magic numbers
Diffstat (limited to 'libwaitress/src/waitress.h')
-rw-r--r-- | libwaitress/src/waitress.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libwaitress/src/waitress.h b/libwaitress/src/waitress.h index 5fa1874..ed5679f 100644 --- a/libwaitress/src/waitress.h +++ b/libwaitress/src/waitress.h @@ -34,6 +34,8 @@ THE SOFTWARE. typedef enum {WAITRESS_METHOD_GET = 0, WAITRESS_METHOD_POST} WaitressMethod_t; +typedef enum {WAITRESS_CB_RET_ERR, WAITRESS_CB_RET_OK} WaitressCbReturn_t; + typedef struct { char host[WAITRESS_HOST_SIZE]; char port[WAITRESS_PORT_SIZE]; @@ -47,7 +49,7 @@ typedef struct { char proxyPort[WAITRESS_PORT_SIZE]; /* extra data handed over to callback function */ void *data; - char (*callback) (void *, size_t, void *); + WaitressCbReturn_t (*callback) (void *, size_t, void *); int socktimeout; } WaitressHandle_t; |