diff options
author | 2022-10-16 00:14:07 -0700 | |
---|---|---|
committer | 2022-10-16 00:14:07 -0700 | |
commit | 94091a752206a1c0a14b12ff91345f951ad0dbe4 (patch) | |
tree | f3cf08cea96c24d5b0989709eeba828888f63974 | |
parent | 2852520d9047bbdb172fc4afa29dfe4d97c2a501 (diff) | |
download | bun-94091a752206a1c0a14b12ff91345f951ad0dbe4.tar.gz bun-94091a752206a1c0a14b12ff91345f951ad0dbe4.tar.zst bun-94091a752206a1c0a14b12ff91345f951ad0dbe4.zip |
Make more sure we know what the types we are sending are
-rw-r--r-- | src/deps/_libusockets.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/deps/_libusockets.h b/src/deps/_libusockets.h index 157275686..8981ce884 100644 --- a/src/deps/_libusockets.h +++ b/src/deps/_libusockets.h @@ -19,7 +19,7 @@ typedef struct StringPointer { extern "C" { #endif -typedef enum { +enum uws_compress_options_t : int32_t { /* These are not actual compression options */ _COMPRESSOR_MASK = 0x00FF, _DECOMPRESSOR_MASK = 0x0F00, @@ -49,18 +49,18 @@ typedef enum { DEDICATED_COMPRESSOR_256KB = 15 << 4 | 8, /* Same as 256kb */ DEDICATED_COMPRESSOR = 15 << 4 | 8 -} uws_compress_options_t; +}; -typedef enum { +enum uws_opcode_t : int32_t { CONTINUATION = 0, TEXT = 1, BINARY = 2, CLOSE = 8, PING = 9, PONG = 10 -} uws_opcode_t; +}; -typedef enum { BACKPRESSURE, SUCCESS, DROPPED } uws_sendstatus_t; +enum uws_sendstatus_t : uint32_t { BACKPRESSURE, SUCCESS, DROPPED }; typedef struct { |