From ae9000b37409a7e329e6f60ea0f2c57a88f481c9 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Fri, 31 Jan 2014 15:28:03 +0100 Subject: Added support for travis-ci --- .travis.yml | 6 ++++++ contrib/src/evws/evws.c | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..45283f5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: cpp +compiler: + - gcc + - clang +# Change this to your needs +script: mkdir build && cd build && cmake .. && make diff --git a/contrib/src/evws/evws.c b/contrib/src/evws/evws.c index a2cc992..24aec30 100644 --- a/contrib/src/evws/evws.c +++ b/contrib/src/evws/evws.c @@ -517,6 +517,25 @@ struct evws_connection* evws_connection_new(struct evws *ws, evutil_socket_t fd) return conn; } +#if 0 +struct evws_connection* evws_connection_upgrade(struct evws *ws, struct bufferevent *bufev) { + struct evws_connection* conn = calloc(1, sizeof(struct evws_connection)); + conn->ws = ws; + conn->fd = 0; + conn->uri = ((void*)0); + +// conn->bufev = bufferevent_socket_new(ws->base, fd, BEV_OPT_CLOSE_ON_FREE); + conn->bufev = bufev; + conn->state = 0; + conn->frame = ((void*)0); + + (&conn->headers)->tqh_first = NULL; + (&conn->headers)->tqh_last = &(((&conn->headers))->tqh_first); + + return conn; +} +#endif + void evws_connection_free(struct evws_connection *conn) { struct evws_header *header; bufferevent_free(conn->bufev); -- cgit v0.12