summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml6
-rw-r--r--contrib/src/evws/evws.c19
2 files changed, 25 insertions, 0 deletions
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);