Lines Matching refs:disp_source
145 dispatch_source_t disp_source; member
410 if (x->disp_source) dispatch_release(x->disp_source); in FreeDNSServiceOp()
411 x->disp_source = NULL; in FreeDNSServiceOp()
480 sdr->disp_source = NULL; in ConnectToServer()
930 if (sdRef->disp_source) in DNSServiceProcessResult()
932 dispatch_source_cancel(sdRef->disp_source); in DNSServiceProcessResult()
933 dispatch_release(sdRef->disp_source); in DNSServiceProcessResult()
934 sdRef->disp_source = NULL; in DNSServiceProcessResult()
970 if (sdRef->disp_source) in DNSServiceProcessResult()
972 dispatch_source_cancel(sdRef->disp_source); in DNSServiceProcessResult()
973 dispatch_release(sdRef->disp_source); in DNSServiceProcessResult()
974 sdRef->disp_source = NULL; in DNSServiceProcessResult()
1051 if (sdRef->disp_source) in DNSServiceRefDeallocate()
1061 dispatch_source_cancel(sdRef->disp_source); in DNSServiceRefDeallocate()
1062 dispatch_release(sdRef->disp_source); in DNSServiceRefDeallocate()
1063 sdRef->disp_source = NULL; in DNSServiceRefDeallocate()
1978 if (service->disp_source) in DNSServiceSetDispatchQueue()
1983 service->disp_source = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ, dnssd_fd, 0, queue); in DNSServiceSetDispatchQueue()
1984 if (!service->disp_source) in DNSServiceSetDispatchQueue()
1990 dispatch_source_set_event_handler(service->disp_source, ^{DNSServiceProcessResult(service);}); in DNSServiceSetDispatchQueue()
1991 dispatch_source_set_cancel_handler(service->disp_source, ^{dnssd_close(dnssd_fd);}); in DNSServiceSetDispatchQueue()
1992 dispatch_resume(service->disp_source); in DNSServiceSetDispatchQueue()