diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-31 14:28:03 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-31 14:28:03 (GMT) |
commit | ae9000b37409a7e329e6f60ea0f2c57a88f481c9 (patch) | |
tree | ab32ceecf1e9a4deca9710283eb7d7469f59d7d2 /contrib | |
parent | 95c3505e11d22f9a022647b0c7383364682d91de (diff) | |
download | uscxml-ae9000b37409a7e329e6f60ea0f2c57a88f481c9.zip uscxml-ae9000b37409a7e329e6f60ea0f2c57a88f481c9.tar.gz uscxml-ae9000b37409a7e329e6f60ea0f2c57a88f481c9.tar.bz2 |
Added support for travis-ci
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/src/evws/evws.c | 19 |
1 files changed, 19 insertions, 0 deletions
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); |