Lines Matching defs:sdref
97 static void register_host_record_completion(DNSServiceRef sdref, DNSRecordRef rref,
100 static void register_instance_completion(DNSServiceRef sdref, DNSServiceFlags flags, DNSServiceErrorType error_code,
122 server_state->shared_registration_txn->sdref, record->rref, 0);
132 server_state->shared_registration_txn->sdref, record, record->rref, err);
698 DNSServiceRef sdref = txn == NULL ? NULL : txn->sdref;
699 INFO("shared registration failed: txn %p sdref %p", server_state->shared_registration_txn, sdref);
711 DNSServiceRef sdref;
712 int err = DNSServiceCreateConnection(&sdref);
716 server_state->shared_registration_txn = ioloop_dnssd_txn_add(sdref, server_state, NULL, shared_registration_fail);
720 DNSServiceRefDeallocate(sdref);
723 dns_service_op_not_to_be_freed = server_state->shared_registration_txn->sdref;
724 INFO("server_state->shared_registration_txn = %p sdref = %p", server_state->shared_registration_txn, sdref);
763 if (instance != NULL && instance->txn != NULL && instance->txn->sdref != NULL &&
766 INFO("forgetting sdref %p on " PUB_S_SRP " %p " PRI_S_SRP " instance " PRI_S_SRP " . " PRI_S_SRP,
767 instance->txn->sdref,
769 instance->txn->sdref = NULL;
807 INFO("server_state->shared_registration_txn = %p sdref = %p",
808 server_state->shared_registration_txn, server_state->shared_registration_txn->sdref);
1986 register_instance_completion(DNSServiceRef sdref, DNSServiceFlags flags, DNSServiceErrorType error_code,
1990 (void)sdref;
2192 DNSServiceRef service_ref = server_state->shared_registration_txn->sdref;
2224 "(instance %p sdref %p)", instance->instance_name,
2357 register_host_record_completion(DNSServiceRef sdref, DNSRecordRef rref,
2363 (void)sdref;
2636 const DNSServiceRef service_ref = host->server_state->shared_registration_txn->sdref;
2718 if (instance->txn->sdref == NULL) {
2719 ERROR("sdref is NULL when updating instance TSR.");
2727 err = dns_service_update_record(instance->host->server_state, instance->txn->sdref,
2735 INFO("updated TXT record for " PRI_S_SRP " . " PRI_S_SRP " (instance %p sdref %p).",
2736 instance->instance_name, instance->service_type, instance, instance->txn->sdref);
2768 instance->txn->sdref, NULL, 0, 0, NULL, 0, attr);
2771 INFO("DNSServiceUpdateRecord for " PRI_S_SRP ", TSR set to " PUB_S_SRP " (instance %p sdref %p)",
2772 instance->host == NULL ? "<null>" : instance->host->name, time_buf, instance, instance->txn->sdref);
2775 INFO("DNSServiceUpdateRecord for instance " PRI_S_SRP ", TSR failed: %d (instance %p sdref %p)",
2776 instance->instance_name, err, instance, instance->txn->sdref);
2822 if (shared_txn->sdref == NULL) {
2823 ERROR("shared_txn->sdref is NULL when we update host TSR.");
2845 shared_txn->sdref, record->rref, 0, 0, NULL, 0, attr);
2987 if (instance->txn->sdref != NULL) {
3000 // the sdref is no longer valid.
3003 instance->txn->sdref = NULL;
3053 if (host_instance->txn != NULL && host_instance->txn->sdref != NULL && host->server_state != NULL &&
4233 dns_service_op_not_to_be_freed = srp_servers->shared_registration_txn->sdref;