summaryrefslogtreecommitdiffstats
path: root/src/afb-websock.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-12 13:26:07 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-12 13:26:07 +0200
commit7a31f839633c9192c98be1061792b8482f181990 (patch)
tree277f516fc55e916608108f60fee1023c40049a0a /src/afb-websock.c
parented54e8410771ee5f13c76f968086c6aa098a750d (diff)
better naming for protocol
Change-Id: Idbcf5bd180788c8f50a7f2634c225290cf40c229 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r--src/afb-websock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c
index 45c65ba7..f9c9dd01 100644
--- a/src/afb-websock.c
+++ b/src/afb-websock.c
@@ -25,12 +25,11 @@
#include <openssl/sha.h>
#include <microhttpd.h>
-#include "afb-ws-json.h"
-
#include "afb-method.h"
#include "afb-context.h"
#include "afb-hreq.h"
#include "afb-websock.h"
+#include "afb-ws-json1.h"
/**************** WebSocket connection upgrade ****************************/
@@ -194,7 +193,7 @@ static int check_websocket_upgrade(struct MHD_Connection *con, const struct prot
}
static const struct protodef protodefs[] = {
- { "x-afb-ws-json1", (void*)afb_ws_json_create },
+ { "x-afb-ws-json1", (void*)afb_ws_json1_create },
{ NULL, NULL }
};