mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Properly export public sockstub functions for Linux....
This commit is contained in:
parent
fc6eca7dcc
commit
969509e5c8
@ -171,6 +171,7 @@ net_RemoveSocketToHashTable(URL_Struct* URL_s)
|
||||
nsSockStub_unlock();
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
PUBLIC PRFileDesc *
|
||||
NET_GetSocketToHashTable(URL_Struct_* URL_s)
|
||||
{
|
||||
@ -182,7 +183,9 @@ NET_GetSocketToHashTable(URL_Struct_* URL_s)
|
||||
SockStubConData * cd = (SockStubConData *)ce->con_data;
|
||||
return cd->sock;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
PUBLIC int32
|
||||
NET_FreeSocket(URL_Struct_* URL_s)
|
||||
{
|
||||
@ -201,6 +204,7 @@ NET_FreeSocket(URL_Struct_* URL_s)
|
||||
|
||||
return STATUS (net_ProcessSockStub(ce));
|
||||
}
|
||||
}
|
||||
|
||||
/* begins the connect process
|
||||
*
|
||||
|
@ -29,10 +29,10 @@ extern "C" void
|
||||
NET_InitSockStubProtocol(void);
|
||||
|
||||
/* XXX: Hack the following is a realy hack. Should go away */
|
||||
PUBLIC PRFileDesc *
|
||||
extern "C" PRFileDesc *
|
||||
NET_GetSocketToHashTable(URL_Struct_* URL_s);
|
||||
|
||||
PUBLIC int32
|
||||
extern "C" int32
|
||||
NET_FreeSocket(URL_Struct_* URL_s);
|
||||
|
||||
#endif /* SOCKSTUB_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user