1$Id: apiversions.txt,v 1.5 2014/11/17 09:41:32 nanard Exp $ 2 3Differences in API between miniUPnPc versions 4 5API version 12 6miniupnpc.h : 7 add upnpDiscoverAll() / upnpDiscoverDevice() / upnpDiscoverDevices() 8 functions 9 updated macros : 10 #define MINIUPNPC_API_VERSION 12 11 12API version 11 13 14upnpreplyparse.h / portlistingparse.h : 15 removed usage of sys/queue.h / bsdqueue.h 16 17miniupnpc.h: 18 updated macros : 19 #define MINIUPNPC_API_VERSION 11 20 21====================== miniUPnPc version 1.9 ====================== 22API version 10 23 24upnpcommands.h: 25 added argument remoteHost to UPNP_GetSpecificPortMappingEntry() 26 27miniupnpc.h: 28 updated macros : 29 #define MINIUPNPC_VERSION "1.9" 30 #define MINIUPNPC_API_VERSION 10 31 32====================== miniUPnPc version 1.8 ====================== 33API version 9 34 35miniupnpc.h: 36 updated macros : 37 #define MINIUPNPC_VERSION "1.8" 38 #define MINIUPNPC_API_VERSION 9 39 added "unsigned int scope_id;" to struct UPNPDev 40 added scope_id argument to GetUPNPUrls() 41 42 43 44====================== miniUPnPc version 1.7 ====================== 45API version 8 46 47miniupnpc.h : 48 add new macros : 49 #define MINIUPNPC_VERSION "1.7" 50 #define MINIUPNPC_API_VERSION 8 51 add rootdescURL to struct UPNPUrls 52 53 54 55====================== miniUPnPc version 1.6 ====================== 56API version 8 57 58Adding support for IPv6. 59igd_desc_parse.h : 60 struct IGDdatas_service : 61 add char presentationurl[MINIUPNPC_URL_MAXSIZE]; 62 struct IGDdatas : 63 add struct IGDdatas_service IPv6FC; 64miniupnpc.h : 65 new macros : 66 #define UPNPDISCOVER_SUCCESS (0) 67 #define UPNPDISCOVER_UNKNOWN_ERROR (-1) 68 #define UPNPDISCOVER_SOCKET_ERROR (-101) 69 #define UPNPDISCOVER_MEMORY_ERROR (-102) 70 simpleUPnPcommand() prototype changed (but is normaly not used by API users) 71 add arguments ipv6 and error to upnpDiscover() : 72 struct UPNPDev * 73 upnpDiscover(int delay, const char * multicastif, 74 const char * minissdpdsock, int sameport, 75 int ipv6, 76 int * error); 77 add controlURL_6FC member to struct UPNPUrls : 78 struct UPNPUrls { 79 char * controlURL; 80 char * ipcondescURL; 81 char * controlURL_CIF; 82 char * controlURL_6FC; 83 }; 84 85upnpcommands.h : 86 add leaseDuration argument to UPNP_AddPortMapping() 87 add desc, enabled and leaseDuration arguments to UPNP_GetSpecificPortMappingEntry() 88 add UPNP_GetListOfPortMappings() function (IGDv2) 89 add IGDv2 IPv6 related functions : 90 UPNP_GetFirewallStatus() 91 UPNP_GetOutboundPinholeTimeout() 92 UPNP_AddPinhole() 93 UPNP_UpdatePinhole() 94 UPNP_DeletePinhole() 95 UPNP_CheckPinholeWorking() 96 UPNP_GetPinholePackets() 97 98 99 100====================== miniUPnPc version 1.5 ====================== 101API version 5 102 103new function : 104int UPNPIGD_IsConnected(struct UPNPUrls *, struct IGDdatas *); 105new macro in upnpcommands.h : 106#define UPNPCOMMAND_HTTP_ERROR 107 108====================== miniUPnPc version 1.4 ====================== 109Same API as version 1.3 110 111====================== miniUPnPc version 1.3 ====================== 112API version 4 113 114Use UNSIGNED_INTEGER type for 115UPNP_GetTotalBytesSent(), UPNP_GetTotalBytesReceived(), 116UPNP_GetTotalPacketsSent(), UPNP_GetTotalPacketsReceived() 117Add remoteHost argument to UPNP_AddPortMapping() and UPNP_DeletePortMapping() 118 119====================== miniUPnPc version 1.2 ====================== 120API version 3 121 122added sameport argument to upnpDiscover() 123struct UPNPDev * 124upnpDiscover(int delay, const char * multicastif, 125 const char * minissdpdsock, int sameport); 126 127====================== miniUPnPc Version 1.1 ====================== 128Same API as 1.0 129 130 131====================== miniUPnPc Version 1.0 ====================== 132API version 2 133 134 135struct UPNPDev { 136 struct UPNPDev * pNext; 137 char * descURL; 138 char * st; 139 char buffer[2]; 140}; 141struct UPNPDev * upnpDiscover(int delay, const char * multicastif, 142 const char * minissdpdsock); 143 144