Lines Matching defs:DNSServiceRefDeallocate

446 // Return a connected service ref (deallocate with DNSServiceRefDeallocate)
936 // The Callback can call DNSServiceRefDeallocate which in turn frees sdr and all the records.
948 // If DNSServiceRefDeallocate was called in the callback, morebytes will be zero. As the sdRef
950 // call the callback with a subordinate sdRef the application can call DNSServiceRefDeallocate
951 // on the main sdRef and DNSServiceRefDeallocate handles this case by walking all the sdRefs and
954 // If DNSServiceRefDeallocate was not called in the callback, then set moreptr to NULL so that
1071 // CAUTION: We have to handle the case where the client calls DNSServiceRefDeallocate from within the callback function.
1072 // To do this we set moreptr to point to morebytes. If the client does call DNSServiceRefDeallocate(),
1087 // (b) morebytes was 1 above, and we set sdRef->moreptr, but the operation was cancelled (with DNSServiceRefDeallocate()),
1097 void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdRef)
1099 if (!sdRef) { syslog(LOG_WARNING, "dnssd_clientstub DNSServiceRefDeallocate called with NULL DNSServiceRef"); return; }
1103 syslog(LOG_WARNING, "dnssd_clientstub DNSServiceRefDeallocate called with invalid DNSServiceRef %p %08X %08X", sdRef, sdRef->sockfd, sdRef->validator);
1137 // assume that DNSServiceRefDeallocate is called from the serial queue
1163 // but the application might call DNSServiceRefDeallocate with the main sdRef from
1185 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1189 if (err) { DNSServiceRefDeallocate(tmp); return err; }
1192 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1196 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1197 DNSServiceRefDeallocate(tmp);
1218 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1222 if (err) { DNSServiceRefDeallocate(tmp); return err; }
1225 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1227 DNSServiceRefDeallocate(tmp);
1327 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1336 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1391 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1400 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1500 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1508 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1552 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1560 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1575 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1580 DNSServiceRefDeallocate(tmp);
1639 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1654 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1692 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1698 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1718 // WARNING: Don't touch op or sdr after this -- client may have called DNSServiceRefDeallocate
1764 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1767 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1793 DNSServiceRefDeallocate(*sdRef);
1804 DNSServiceRefDeallocate(*sdRef);
1815 DNSServiceRefDeallocate(*sdRef);
1825 DNSServiceRefDeallocate(*sdRef);
2099 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
2110 DNSServiceRefDeallocate(tmp);
2175 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
2187 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }