diff options
author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2019-02-10 22:35:18 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-14 00:35:45 +1100 |
commit | bc4f8b438b56cf1b4f6b44febcd0d83599cbbd68 (patch) | |
tree | 48a549df981c2471d12cdbe9f135f90b37cf9878 /extmod/moduwebsocket.h | |
parent | d1acca3c71780545e067e85b444b495cc9801b2b (diff) |
extmod/moduwebsocket: Refactor `websocket` to `uwebsocket`.
As mentioned in #4450, `websocket` was experimental with a single intended
user, `webrepl`. Therefore, we'll make this change without a weak
link `websocket` -> `uwebsocket`.
Diffstat (limited to 'extmod/moduwebsocket.h')
-rw-r--r-- | extmod/moduwebsocket.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extmod/moduwebsocket.h b/extmod/moduwebsocket.h new file mode 100644 index 000000000..c1ea291ed --- /dev/null +++ b/extmod/moduwebsocket.h @@ -0,0 +1,10 @@ +#ifndef MICROPY_INCLUDED_EXTMOD_MODUWEBSOCKET_H +#define MICROPY_INCLUDED_EXTMOD_MODUWEBSOCKET_H + +#define FRAME_OPCODE_MASK 0x0f +enum { + FRAME_CONT, FRAME_TXT, FRAME_BIN, + FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG +}; + +#endif // MICROPY_INCLUDED_EXTMOD_MODUWEBSOCKET_H |