зеркало из https://github.com/mozilla/pjs.git
Properly export public sockstub functions for Linux....
This commit is contained in:
Родитель
9810b8b405
Коммит
2fbb4828ac
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче