Refactor a bit, put everything in uWS namespace

This commit is contained in:
Alex Hultman
2019-06-09 07:53:43 +02:00
parent 3b36ea3a45
commit 762b18459e
22 changed files with 82 additions and 69 deletions
+12 -6
View File
@@ -17,8 +17,14 @@
/* This standalone module implements deflate / inflate streams */
#ifndef PERMESSAGEDEFLATE_H
#define PERMESSAGEDEFLATE_H
#ifndef UWS_PERMESSAGEDEFLATE_H
#define UWS_PERMESSAGEDEFLATE_H
#include <zlib.h>
#include <string>
namespace uWS {
/* Do not compile this module if we don't want it */
#ifdef UWS_NO_ZLIB
struct ZlibContext {};
@@ -34,9 +40,6 @@ struct DeflationStream {
};
#else
#include <zlib.h>
#include <string>
#define LARGE_BUFFER_SIZE 1024 * 16 // todo: fix this
struct ZlibContext {
@@ -161,4 +164,7 @@ struct InflationStream {
};
#endif
#endif // PERMESSAGEDEFLATE_H
}
#endif // UWS_PERMESSAGEDEFLATE_H