GUSI 2.1.6b2 update

This commit is contained in:
chombier 2001-03-28 14:21:25 +00:00
parent 49269292b0
commit ae6077f431
2 changed files with 11 additions and 0 deletions

View File

@ -318,6 +318,8 @@ done:
* Let's clear it upon kOTProviderWillClose message. * Let's clear it upon kOTProviderWillClose message.
*/ */
/* moved to GUSIPatch2.cp : 68k version no longer links otherwise */
/*
// <Asynchronous notifier function for [[GUSIOTNetDB]]>= // <Asynchronous notifier function for [[GUSIOTNetDB]]>=
inline uint32_t CompleteMask(OTEventCode code) inline uint32_t CompleteMask(OTEventCode code)
{ {
@ -372,6 +374,7 @@ pascal void GUSIOTNetDBNotify(
netdb->fAsyncError = result; netdb->fAsyncError = result;
context->Wakeup(); context->Wakeup();
} }
*/
/* /*
* we need to track open()/dup()/close()/socket() calls to close files/sockets * we need to track open()/dup()/close()/socket() calls to close files/sockets

View File

@ -61,8 +61,16 @@ inline uint32_t CompleteMask(OTEventCode code)
return 1 << (code & 0x1F); return 1 << (code & 0x1F);
} }
#if UNIVERSAL_INTERFACES_VERSION >= 0x0334
pascal void GUSIOTNetDBNotify(
void *contextPtr, OTEventCode code, OTResult result, void *cookie)
{
GUSIOTNetDB * netdb = static_cast<GUSIOTNetDB *>(contextPtr);
#else
pascal void GUSIOTNetDBNotify( pascal void GUSIOTNetDBNotify(
GUSIOTNetDB * netdb, OTEventCode code, OTResult result, void *cookie) GUSIOTNetDB * netdb, OTEventCode code, OTResult result, void *cookie)
{
#endif
{ {
GUSI_MESSAGE(("GUSIOTNetDBNotify %08x %d\n", code, result)); GUSI_MESSAGE(("GUSIOTNetDBNotify %08x %d\n", code, result));
GUSIContext * context = netdb->fCreationContext; GUSIContext * context = netdb->fCreationContext;