Home | History | Annotate | Download | only in mDNSShared

Lines Matching defs:DNSServiceRefDeallocate

415 // Return a connected service ref (deallocate with DNSServiceRefDeallocate)
855 // The Callback can call DNSServiceRefDeallocate which in turn frees sdr and all the records.
867 // If DNSServiceRefDeallocate was called in the callback, morebytes will be zero. It means
869 // DNSServiceRefDeallocate on the first sdRef frees all other sdrefs.
982 // CAUTION: We have to handle the case where the client calls DNSServiceRefDeallocate from within the callback function.
983 // To do this we set moreptr to point to morebytes. If the client does call DNSServiceRefDeallocate(),
998 // (b) morebytes was 1 above, and we set sdRef->moreptr, but the operation was cancelled (with DNSServiceRefDeallocate()),
1008 void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdRef)
1010 if (!sdRef) { syslog(LOG_WARNING, "dnssd_clientstub DNSServiceRefDeallocate called with NULL DNSServiceRef"); return; }
1014 syslog(LOG_WARNING, "dnssd_clientstub DNSServiceRefDeallocate called with invalid DNSServiceRef %p %08X %08X", sdRef, sdRef->sockfd, sdRef->validator);
1048 // assume that DNSServiceRefDeallocate is called from the serial queue
1088 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1093 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1097 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1098 DNSServiceRefDeallocate(tmp);
1173 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1182 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1232 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1241 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1328 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1336 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1375 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1383 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1422 DNSServiceRefDeallocate(*sdRef);
1429 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1444 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1449 DNSServiceRefDeallocate(tmp);
1505 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1520 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1558 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1564 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1585 // WARNING: Don't touch op or sdr after this -- client may have called DNSServiceRefDeallocate
1608 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1611 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1861 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1872 DNSServiceRefDeallocate(tmp);
1936 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1948 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }