From b69f798c92cfe9685382a8b5594dc62db77706a7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 10 Apr 2016 13:42:51 +0300 Subject: extmod/modwebsocket.h: Split websocket-related defines for reuse. --- extmod/modwebsocket.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'extmod/modwebsocket.c') diff --git a/extmod/modwebsocket.c b/extmod/modwebsocket.c index eb11d006d..3175c6167 100644 --- a/extmod/modwebsocket.c +++ b/extmod/modwebsocket.c @@ -33,15 +33,11 @@ #include "py/obj.h" #include "py/runtime.h" #include "py/stream.h" +#include "extmod/modwebsocket.h" #if MICROPY_PY_WEBSOCKET enum { FRAME_HEADER, FRAME_OPT, PAYLOAD }; -#define FRAME_OPCODE_MASK 0x0f -enum { - FRAME_CONT, FRAME_TXT, FRAME_BIN, - FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG -}; enum { BLOCKING_WRITE = 0x80 }; -- cgit v1.2.3