]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 7 Feb 2022 17:40:00 +0000 (09:40 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 7 Feb 2022 17:40:00 +0000 (09:40 -0800)
open-vm-tools/lib/include/asyncsocket.h

index 16f9fbb0014f9899899b693e620409c9c6e2307f..dad848093614f7b435b5d8ff493849b0507ec427 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2003-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2003-2022 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -439,6 +439,10 @@ typedef int (*AsyncWebSocketHandleUpgradeRequestFn) (AsyncSocket *asock,
                                                      const char *httpRequest,
                                                      char **httpResponse);
 
+typedef int (*AsyncWebSocketHandoffSocketFn) (AsyncSocket *asock, void *cbData,
+                                              void *buf, uint32 bufLen,
+                                              uint32 currentPos);
+
 /*
  * Listen on port and fire callback with new asock
  */
@@ -474,7 +478,9 @@ AsyncSocket *AsyncSocket_PrepareListenWebSocket(Bool useSSL,
                                                  void *clientData,
                                                  AsyncSocketPollParams *pollParams,
                                                  void *sslCtx,
-                                                 AsyncWebSocketHandleUpgradeRequestFn handleUpgradeRequestFn);
+                                                 AsyncWebSocketHandleUpgradeRequestFn handleUpgradeRequestFn,
+                                                 AsyncWebSocketHandoffSocketFn alpnCb,
+                                                 const char* alpn);
 AsyncSocket *AsyncSocket_RegisterListenWebSocket(AsyncSocket *asock,
                                                  const char *addrStr,
                                                  unsigned int port,