Skip to content

Commit

Permalink
Merge pull request #758 from Berthalamew/curl
Browse files Browse the repository at this point in the history
update miniupnpc libs
  • Loading branch information
Berthalamew authored Dec 5, 2024
2 parents fb9355b + 4c11887 commit bd18917
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 222 deletions.
54 changes: 0 additions & 54 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/codelength.h

This file was deleted.

20 changes: 0 additions & 20 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/connecthostport.h

This file was deleted.

17 changes: 0 additions & 17 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/minisoap.h

This file was deleted.

58 changes: 0 additions & 58 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/minissdpc.h

This file was deleted.

21 changes: 12 additions & 9 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/miniupnpc.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* $Id: miniupnpc.h,v 1.58 2021/03/02 23:49:52 nanard Exp $ */
/* $Id: miniupnpc.h,v 1.66 2024/06/08 22:13:14 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* Project: miniupnp
* http://miniupnp.free.fr/
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* Author: Thomas Bernard
* Copyright (c) 2005-2021 Thomas Bernard
* Copyright (c) 2005-2024 Thomas Bernard
* This software is subjects to the conditions detailed
* in the LICENCE file provided within this distribution */
#ifndef MINIUPNPC_H_INCLUDED
Expand All @@ -20,8 +20,8 @@
#define UPNPDISCOVER_MEMORY_ERROR (-102)

/* versions : */
#define MINIUPNPC_VERSION "2.2.2"
#define MINIUPNPC_API_VERSION 17
#define MINIUPNPC_VERSION "2.2.8"
#define MINIUPNPC_API_VERSION 18

/* Source port:
Using "1" as an alias for 1900 for backwards compatibility
Expand Down Expand Up @@ -108,9 +108,11 @@ struct UPNPUrls {
* return values :
* 0 = NO IGD found
* 1 = A valid connected IGD has been found
* 2 = A valid IGD has been found but it reported as
* 2 = A valid connected IGD has been found but its
* IP address is reserved (non routable)
* 3 = A valid IGD has been found but it reported as
* not connected
* 3 = an UPnP device has been found but was not recognized as an IGD
* 4 = an UPnP device has been found but was not recognized as an IGD
*
* In any non zero return case, the urls and data structures
* passed as parameters are set. Donc forget to call FreeUPNPUrls(urls) to
Expand All @@ -119,8 +121,9 @@ struct UPNPUrls {
MINIUPNP_LIBSPEC int
UPNP_GetValidIGD(struct UPNPDev * devlist,
struct UPNPUrls * urls,
struct IGDdatas * data,
char * lanaddr, int lanaddrlen);
struct IGDdatas * data,
char * lanaddr, int lanaddrlen,
char * wanaddr, int wanaddrlen);

/* UPNP_GetIGDFromUrl()
* Used when skipping the discovery process.
Expand Down
37 changes: 0 additions & 37 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/minixml.h

This file was deleted.

21 changes: 0 additions & 21 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/receivedata.h

This file was deleted.

4 changes: 2 additions & 2 deletions xlive/3rdparty/miniupnpc/include/miniupnpc/upnpdev.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* $Id: upnpdev.h,v 1.3 2020/05/29 15:57:42 nanard Exp $ */
/* $Id: upnpdev.h,v 1.4 2021/08/21 09:45:01 nanard Exp $ */
/* Project : miniupnp
* Web : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* Author : Thomas BERNARD
* copyright (c) 2005-2020 Thomas Bernard
* copyright (c) 2005-2021 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENSE file. */
#ifndef UPNPDEV_H_INCLUDED
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed xlive/3rdparty/miniupnpc/lib/libminiupnpc.lib
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions xlive/Project_Cartographer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<IntDir>.\Release\</IntDir>
<LinkIncremental>false</LinkIncremental>
<IncludePath>$(IncludePath)</IncludePath>
<LibraryPath>$(WindowsSDK_LibraryPath_x86);$(DXSDK_DIR)Lib\x86;3rdparty/directx/lib;3rdparty/discord/lib;3rdparty/libcurl/lib/nghttp2/;3rdparty/libcurl/lib/wolfssl/;3rdparty/libcurl/lib/curl/release;3rdparty/miniupnpc/lib;3rdparty/detours/lib.X86;$(LibraryPath)</LibraryPath>
<LibraryPath>$(WindowsSDK_LibraryPath_x86);$(DXSDK_DIR)Lib\x86;3rdparty/directx/lib;3rdparty/discord/lib;3rdparty/libcurl/lib/nghttp2/;3rdparty/libcurl/lib/wolfssl/;3rdparty/libcurl/lib/curl/release;3rdparty/miniupnpc/lib/release;3rdparty/detours/lib.X86;$(LibraryPath)</LibraryPath>
<ExternalIncludePath>$(ExternalIncludePath);$(DXSDK_DIR)Include</ExternalIncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
Expand All @@ -60,7 +60,7 @@
<LinkIncremental>true</LinkIncremental>
<LibraryPath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;.\libs;..\protobuf-2.6.1\vsprojects\Debug;$(LibraryPath)</LibraryPath>
<IncludePath>C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;.\;..\protobuf-2.6.1;$(IncludePath)</IncludePath>
<LibraryPath>$(WindowsSDK_LibraryPath_x86);$(DXSDK_DIR)Lib\x86;3rdparty/directx/lib;3rdparty/discord/lib;3rdparty/libcurl/lib/nghttp2/;3rdparty/libcurl/lib/wolfssl/;3rdparty/libcurl/lib/curl/debug/;3rdparty/miniupnpc/lib;3rdparty/detours/lib.X86;$(LibraryPath)</LibraryPath>
<LibraryPath>$(WindowsSDK_LibraryPath_x86);$(DXSDK_DIR)Lib\x86;3rdparty/directx/lib;3rdparty/discord/lib;3rdparty/libcurl/lib/nghttp2/;3rdparty/libcurl/lib/wolfssl/;3rdparty/libcurl/lib/curl/debug/;3rdparty/miniupnpc/lib/debug;3rdparty/detours/lib.X86;$(LibraryPath)</LibraryPath>
<IncludePath>$(IncludePath)</IncludePath>
<ExternalIncludePath>$(ExternalIncludePath);$(DXSDK_DIR)Include</ExternalIncludePath>
</PropertyGroup>
Expand Down
3 changes: 1 addition & 2 deletions xlive/XLive/xnet/upnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Utils::UPnPResult ModuleUPnP::UPnPForwardPort(bool tcp, int externalport, int in
if (upnpDiscoverError != UPNPDISCOVER_SUCCESS || upnpDevice == nullptr)
return Utils::UPnPResult(Utils::UPnPErrorType::DiscoveryError, upnpDiscoverError);

int ret = UPNP_GetValidIGD(upnpDevice, &urls, &data,
lanaddr, sizeof(lanaddr));
int ret = UPNP_GetValidIGD(upnpDevice, &urls, &data, lanaddr, sizeof(lanaddr), NULL, 0);

if (ret != Utils::UPNP_IGD_VALID_CONNECTED)
return Utils::UPnPResult(Utils::UPnPErrorType::IGDError, ret);
Expand Down

0 comments on commit bd18917

Please sign in to comment.