Commit 32f296b6 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Alexandre Julliard

Added stub and prototype for WSAJoinLeaf.

parent 7e40baad
...@@ -1582,6 +1582,24 @@ u_short WINAPI WS_htons(u_short hostshort) ...@@ -1582,6 +1582,24 @@ u_short WINAPI WS_htons(u_short hostshort)
return htons(hostshort); return htons(hostshort);
} }
/***********************************************************************
* WSAHtonl (WS2_32.46)
*/
int WINAPI WSAHtonl(SOCKET s, u_long hostlong, ulong *lpnetlong)
{
FIXME("stub.\n");
return INVALID_SOCKET;
}
/***********************************************************************
* WSAHtons (WS2_32.47)
*/
int WINAPI WSAHtons(SOCKET s, u_short hostshort, ushort *lpnetshort)
{
FIXME("stub.\n");
return INVALID_SOCKET;
}
/*********************************************************************** /***********************************************************************
* inet_addr (WINSOCK.10) * inet_addr (WINSOCK.10)
...@@ -2833,6 +2851,23 @@ SOCKET WINAPI WSASocketA(int af, int type, int protocol, ...@@ -2833,6 +2851,23 @@ SOCKET WINAPI WSASocketA(int af, int type, int protocol,
return INVALID_SOCKET; return INVALID_SOCKET;
} }
/***********************************************************************
* WSAJoinLeaf (WS2_32.58)
*
*/
SOCKET WINAPI WSAJoinLeaf(
SOCKET s,
const struct WS_sockaddr *addr,
int addrlen,
LPWSABUF lpCallerData,
LPWSABUF lpCalleeData,
LPQOS lpSQOS,
LPQOS lpGQOS,
DWORD dwFlags)
{
FIXME("stub.\n");
return INVALID_SOCKET;
}
/*********************************************************************** /***********************************************************************
* __WSAFDIsSet (WS2_32.151) * __WSAFDIsSet (WS2_32.151)
......
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
43 stub WSAGetServiceClassInfoW 43 stub WSAGetServiceClassInfoW
44 stub WSAGetServiceClassNameByClassIdA 44 stub WSAGetServiceClassNameByClassIdA
45 stub WSAGetServiceClassNameByClassIdW 45 stub WSAGetServiceClassNameByClassIdW
46 stub WSAHtonl 46 stdcall WSAHtonl(long long ptr)
47 stub WSAHtons 47 stdcall WSAHtons(long long ptr)
48 stdcall WSAInstallServiceClassA(ptr) 48 stdcall WSAInstallServiceClassA(ptr)
49 stdcall WSAInstallServiceClassW(ptr) 49 stdcall WSAInstallServiceClassW(ptr)
50 stdcall WSAIoctl(long long ptr long ptr long ptr ptr ptr) 50 stdcall WSAIoctl(long long ptr long ptr long ptr ptr ptr)
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
55 stdcall getservbyname(str str) WS_getservbyname 55 stdcall getservbyname(str str) WS_getservbyname
56 stdcall getservbyport(long str) WS_getservbyport 56 stdcall getservbyport(long str) WS_getservbyport
57 stdcall gethostname(ptr long) WS_gethostname 57 stdcall gethostname(ptr long) WS_gethostname
58 stub WSAJoinLeaf 58 stdcall WSAJoinLeaf(long ptr long ptr ptr ptr ptr long)
59 stub WSALookupServiceBeginA 59 stub WSALookupServiceBeginA
60 stub WSALookupServiceBeginW 60 stub WSALookupServiceBeginW
61 stub WSALookupServiceEnd 61 stub WSALookupServiceEnd
......
...@@ -137,6 +137,11 @@ extern "C" { ...@@ -137,6 +137,11 @@ extern "C" {
#define WSA_FLAG_MULTIPOINT_D_ROOT 0x08 #define WSA_FLAG_MULTIPOINT_D_ROOT 0x08
#define WSA_FLAG_MULTIPOINT_D_LEAF 0x10 #define WSA_FLAG_MULTIPOINT_D_LEAF 0x10
/* Constants for WSAJoinLeaf() */
#define JL_SENDER_ONLY 0x01
#define JL_RECEIVER_ONLY 0x02
#define JL_BOTH 0x04
#ifndef GUID_DEFINED #ifndef GUID_DEFINED
#include <guiddef.h> #include <guiddef.h>
...@@ -426,7 +431,7 @@ int WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA); ...@@ -426,7 +431,7 @@ int WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA);
int WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW); int WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW);
#define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass) #define WSAInstallServiceClass WINELIB_NAME_AW(WSAInstallServiceClass)
int WINAPI WSAIoctl(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE); int WINAPI WSAIoctl(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
/* WSAJoinLeaf */ SOCKET WINAPI WSAJoinLeaf(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS,DWORD);
/* WSALookupServiceBeginA */ /* WSALookupServiceBeginA */
/* WSALookupServiceBeginW */ /* WSALookupServiceBeginW */
/* WSALookupServiceEnd */ /* WSALookupServiceEnd */
...@@ -491,7 +496,7 @@ typedef int (WINAPI *LPFN_WSAHTONS)(SOCKET,u_short,u_short*); ...@@ -491,7 +496,7 @@ typedef int (WINAPI *LPFN_WSAHTONS)(SOCKET,u_short,u_short*);
typedef int (WINAPI LPFN_WSAINSTALLSERVICECLASSA)(LPWSASERVICECLASSINFOA); typedef int (WINAPI LPFN_WSAINSTALLSERVICECLASSA)(LPWSASERVICECLASSINFOA);
typedef int (WINAPI LPFN_WSAINSTALLSERVICECLASSW)(LPWSASERVICECLASSINFOW); typedef int (WINAPI LPFN_WSAINSTALLSERVICECLASSW)(LPWSASERVICECLASSINFOW);
typedef int (WINAPI *LPFN_WSAIOCTL)(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE); typedef int (WINAPI *LPFN_WSAIOCTL)(SOCKET,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
/* WSAJoinLeaf */ typedef int (WINAPI *LPFN_WSAJOINLEAF)(SOCKET,const struct WS(sockaddr)*,int,LPWSABUF,LPWSABUF,LPQOS,LPQOS,DWORD);
/* WSALookupServiceBeginA */ /* WSALookupServiceBeginA */
/* WSALookupServiceBeginW */ /* WSALookupServiceBeginW */
/* WSALookupServiceEnd */ /* WSALookupServiceEnd */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment