diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-24 13:27:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-24 13:27:50 +0300 |
commit | 541eab20530165d10592a9fda590f435c6a8b4be (patch) | |
tree | 6b0209e00cd152aabb800c184380cefe44d01a4f /include | |
parent | 0db449bf70966941453cfbb8ec05fd430a96dc12 (diff) |
obsolete code removed from NETLIBBIND
Diffstat (limited to 'include')
-rw-r--r-- | include/m_netlib.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h index 73b0ff2ff7..9bfcce8a41 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -262,23 +262,18 @@ EXTERN_C MIR_APP_DLL(int) Netlib_CloseHandle(HANDLE h); /* pExtra was added during 0.3.4+, prior its just two args, since we use the cdecl convention
it shouldnt matter */
-typedef void (*NETLIBNEWCONNECTIONPROC_V2)(HNETLIBCONN hNewConnection, DWORD dwRemoteIP, void *pExtra);
-typedef void (*NETLIBNEWCONNECTIONPROC)(HNETLIBCONN hNewConnection, DWORD dwRemoteIP);
+typedef void (*NETLIBNEWCONNECTIONPROC)(HNETLIBCONN hNewConnection, DWORD dwRemoteIP, void *pExtra);
struct NETLIBBIND
{
- union { // new code should use V2
- NETLIBNEWCONNECTIONPROC pfnNewConnection;
- NETLIBNEWCONNECTIONPROC_V2 pfnNewConnectionV2;
- };
-
+ NETLIBNEWCONNECTIONPROC pfnNewConnection;
+
// function to call when there's a new connection. Params are: the
// new connection, IP of remote machine (host byte order)
DWORD dwInternalIP; // set on return, host byte order
- WORD wPort; // set on return, host byte order
- void *pExtra; // argument is sent to callback
DWORD dwExternalIP; // set on return, host byte order
- WORD wExPort; // set on return, host byte order
+ WORD wPort, wExPort; // set on return, host byte order
+ void *pExtra; // argument is sent to callback
};
EXTERN_C MIR_APP_DLL(HNETLIBBIND) Netlib_BindPort(HNETLIBUSER nlu, NETLIBBIND *nlb);
|