mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
wslay: Sync with upstream 0e7d106ff from godot.
This commit is contained in:
parent
5868fa025f
commit
a96e650b7e
2
thirdparty/README.md
vendored
2
thirdparty/README.md
vendored
@ -449,7 +449,7 @@ folder.
|
|||||||
## wslay
|
## wslay
|
||||||
|
|
||||||
- Upstream: https://github.com/tatsuhiro-t/wslay
|
- Upstream: https://github.com/tatsuhiro-t/wslay
|
||||||
- Version: 1.1.1+git (45d22583b488f79d5a4e598cc7675c191c5ab53f, 2021)
|
- Version: 1.1.1+git (0e7d106ff89ad6638090fd811a9b2e4c5dda8d40, 2022)
|
||||||
- License: MIT
|
- License: MIT
|
||||||
|
|
||||||
File extracted from upstream release tarball:
|
File extracted from upstream release tarball:
|
||||||
|
12
thirdparty/wslay/config.h
vendored
12
thirdparty/wslay/config.h
vendored
@ -1,10 +1,18 @@
|
|||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
// -- PANDEMONIUM start --
|
/* This configuration file is custom written for Godot.
|
||||||
|
* When updating the library, generate it with CMake upstream and compare
|
||||||
|
* the contents to see if new options should be backported here.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Those are handled in our SCsub.
|
||||||
|
/* #undef HAVE_ARPA_INET_H */
|
||||||
|
/* #undef HAVE_NETINET_IN_H */
|
||||||
|
/* #undef HAVE_WINSOCK2_H */
|
||||||
|
|
||||||
#ifdef BIG_ENDIAN_ENABLED
|
#ifdef BIG_ENDIAN_ENABLED
|
||||||
#define WORDS_BIGENDIAN
|
#define WORDS_BIGENDIAN
|
||||||
#endif
|
#endif
|
||||||
// -- PANDEMONIUM end --
|
|
||||||
|
|
||||||
#endif /* CONFIG_H */
|
#endif /* CONFIG_H */
|
||||||
|
4
thirdparty/wslay/patches/msvcfix.diff
vendored
4
thirdparty/wslay/patches/msvcfix.diff
vendored
@ -6,12 +6,12 @@ index 77a4e8253f..ac6873613f 100644
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
+/* PANDEMONIUM ADDITTION */
|
+/* GODOT ADDITTION */
|
||||||
+#if defined(_MSC_VER)
|
+#if defined(_MSC_VER)
|
||||||
+#include <BaseTsd.h>
|
+#include <BaseTsd.h>
|
||||||
+typedef SSIZE_T ssize_t;
|
+typedef SSIZE_T ssize_t;
|
||||||
+#endif
|
+#endif
|
||||||
+/* PANDEMONIUM END */
|
+/* GODOT END */
|
||||||
+
|
+
|
||||||
/*
|
/*
|
||||||
* wslay/wslayver.h is generated from wslay/wslayver.h.in by
|
* wslay/wslayver.h is generated from wslay/wslayver.h.in by
|
||||||
|
12
thirdparty/wslay/wslay/wslay.h
vendored
12
thirdparty/wslay/wslay/wslay.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAY_H
|
|
||||||
#define WSLAY_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAY_H
|
||||||
|
#define WSLAY_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -35,12 +33,12 @@ extern "C" {
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* PANDEMONIUM ADDITTION */
|
/* GODOT ADDITTION */
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <BaseTsd.h>
|
#include <BaseTsd.h>
|
||||||
typedef SSIZE_T ssize_t;
|
typedef SSIZE_T ssize_t;
|
||||||
#endif
|
#endif
|
||||||
/* PANDEMONIUM END */
|
/* GODOT END */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* wslay/wslayver.h is generated from wslay/wslayver.h.in by
|
* wslay/wslayver.h is generated from wslay/wslayver.h.in by
|
||||||
@ -487,7 +485,7 @@ void wslay_event_config_set_max_recv_msg_length(wslay_event_context_ptr ctx,
|
|||||||
uint64_t val);
|
uint64_t val);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sets callbacks to ctx. The callbacks previouly set by this function
|
* Sets callbacks to ctx. The callbacks previously set by this function
|
||||||
* or wslay_event_context_server_init() or
|
* or wslay_event_context_server_init() or
|
||||||
* wslay_event_context_client_init() are replaced with callbacks.
|
* wslay_event_context_client_init() are replaced with callbacks.
|
||||||
*/
|
*/
|
||||||
|
6
thirdparty/wslay/wslay/wslayver.h
vendored
6
thirdparty/wslay/wslay/wslayver.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAYVER_H
|
|
||||||
#define WSLAYVER_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAYVER_H
|
||||||
|
#define WSLAYVER_H
|
||||||
|
|
||||||
/* Version number of wslay release */
|
/* Version number of wslay release */
|
||||||
#define WSLAY_VERSION "1.1.1"
|
#define WSLAY_VERSION "1.1.1"
|
||||||
|
6
thirdparty/wslay/wslay_event.h
vendored
6
thirdparty/wslay/wslay_event.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAY_EVENT_H
|
|
||||||
#define WSLAY_EVENT_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAY_EVENT_H
|
||||||
|
#define WSLAY_EVENT_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
|
2
thirdparty/wslay/wslay_frame.c
vendored
2
thirdparty/wslay/wslay_frame.c
vendored
@ -109,7 +109,7 @@ ssize_t wslay_frame_send(wslay_frame_context_ptr ctx,
|
|||||||
int flags = 0;
|
int flags = 0;
|
||||||
if (iocb->data_length > 0) {
|
if (iocb->data_length > 0) {
|
||||||
flags |= WSLAY_MSG_MORE;
|
flags |= WSLAY_MSG_MORE;
|
||||||
};
|
}
|
||||||
r = ctx->callbacks.send_callback(ctx->oheadermark, (size_t)len, flags,
|
r = ctx->callbacks.send_callback(ctx->oheadermark, (size_t)len, flags,
|
||||||
ctx->user_data);
|
ctx->user_data);
|
||||||
if (r > 0) {
|
if (r > 0) {
|
||||||
|
6
thirdparty/wslay/wslay_frame.h
vendored
6
thirdparty/wslay/wslay_frame.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAY_FRAME_H
|
|
||||||
#define WSLAY_FRAME_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAY_FRAME_H
|
||||||
|
#define WSLAY_FRAME_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
|
6
thirdparty/wslay/wslay_macro.h
vendored
6
thirdparty/wslay/wslay_macro.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAY_MACRO_H
|
|
||||||
#define WSLAY_MACRO_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAY_MACRO_H
|
||||||
|
#define WSLAY_MACRO_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
6
thirdparty/wslay/wslay_net.h
vendored
6
thirdparty/wslay/wslay_net.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAY_NET_H
|
|
||||||
#define WSLAY_NET_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAY_NET_H
|
||||||
|
#define WSLAY_NET_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
|
6
thirdparty/wslay/wslay_queue.h
vendored
6
thirdparty/wslay/wslay_queue.h
vendored
@ -1,5 +1,3 @@
|
|||||||
#ifndef WSLAY_QUEUE_H
|
|
||||||
#define WSLAY_QUEUE_H
|
|
||||||
/*
|
/*
|
||||||
* Wslay - The WebSocket Library
|
* Wslay - The WebSocket Library
|
||||||
*
|
*
|
||||||
@ -24,8 +22,8 @@
|
|||||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef WSLAY_QUEUE_H
|
||||||
|
#define WSLAY_QUEUE_H
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user