Lines Matching refs:object

17 	CComObject<CDNSSDService>	*	object		= NULL;  in Browse()  local
36 object = new CComObject<CDNSSDService>(); in Browse()
40 object = NULL; in Browse()
43 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in Browse()
44 hr = object->FinalConstruct(); in Browse()
46 object->AddRef(); in Browse()
48 …ifIndex, regtypeUTF8.c_str(), domainUTF8.c_str(), ( DNSServiceBrowseReply ) &BrowseReply, object ); in Browse()
51 object->SetServiceRef( sref ); in Browse()
52 object->SetListener( listener ); in Browse()
54 err = object->Run(); in Browse()
57 *browser = object; in Browse()
61 if ( err && object ) in Browse()
63 object->Release(); in Browse()
72 CComObject<CDNSSDService> * object = NULL; in Resolve() local
94 object = new CComObject<CDNSSDService>(); in Resolve()
98 object = NULL; in Resolve()
101 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in Resolve()
102 hr = object->FinalConstruct(); in Resolve()
104 object->AddRef(); in Resolve()
106 …str(), regTypeUTF8.c_str(), domainUTF8.c_str(), ( DNSServiceResolveReply ) &ResolveReply, object ); in Resolve()
109 object->SetServiceRef( sref ); in Resolve()
110 object->SetListener( listener ); in Resolve()
112 err = object->Run(); in Resolve()
115 *service = object; in Resolve()
119 if ( err && object ) in Resolve()
121 object->Release(); in Resolve()
130 CComObject<CDNSSDService> * object = NULL; in EnumerateDomains() local
140 object = new CComObject<CDNSSDService>(); in EnumerateDomains()
144 object = NULL; in EnumerateDomains()
147 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in EnumerateDomains()
148 hr = object->FinalConstruct(); in EnumerateDomains()
150 object->AddRef(); in EnumerateDomains()
152 …eEnumerateDomains( &sref, flags, ifIndex, ( DNSServiceDomainEnumReply ) &DomainEnumReply, object ); in EnumerateDomains()
155 object->SetServiceRef( sref ); in EnumerateDomains()
156 object->SetListener( listener ); in EnumerateDomains()
158 err = object->Run(); in EnumerateDomains()
161 *service = object; in EnumerateDomains()
165 if ( err && object ) in EnumerateDomains()
167 object->Release(); in EnumerateDomains()
176 CComObject<CDNSSDService> * object = NULL; in Register() local
203 object = new CComObject<CDNSSDService>(); in Register()
207 object = NULL; in Register()
210 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in Register()
211 hr = object->FinalConstruct(); in Register()
213 object->AddRef(); in Register()
225 …), hostUTF8.c_str(), port, txtLen, txtRecord, ( DNSServiceRegisterReply ) &RegisterReply, object ); in Register()
228 object->SetServiceRef( sref ); in Register()
229 object->SetListener( listener ); in Register()
231 err = object->Run(); in Register()
234 *service = object; in Register()
238 if ( err && object ) in Register()
240 object->Release(); in Register()
249 CComObject<CDNSSDService> * object = NULL; in QueryRecord() local
265 object = new CComObject<CDNSSDService>(); in QueryRecord()
269 object = NULL; in QueryRecord()
272 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in QueryRecord()
273 hr = object->FinalConstruct(); in QueryRecord()
275 object->AddRef(); in QueryRecord()
277 …int16_t ) rrtype, ( uint16_t ) rrclass, ( DNSServiceQueryRecordReply ) &QueryRecordReply, object ); in QueryRecord()
280 object->SetServiceRef( sref ); in QueryRecord()
281 object->SetListener( listener ); in QueryRecord()
283 err = object->Run(); in QueryRecord()
286 *service = object; in QueryRecord()
290 if ( err && object ) in QueryRecord()
292 object->Release(); in QueryRecord()
301 CComObject<CDNSSDService> * object = NULL; in GetAddrInfo() local
317 object = new CComObject<CDNSSDService>(); in GetAddrInfo()
321 object = NULL; in GetAddrInfo()
324 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in GetAddrInfo()
325 hr = object->FinalConstruct(); in GetAddrInfo()
327 object->AddRef(); in GetAddrInfo()
329 …x, addressFamily, hostNameUTF8.c_str(), ( DNSServiceGetAddrInfoReply ) &GetAddrInfoReply, object ); in GetAddrInfo()
332 object->SetServiceRef( sref ); in GetAddrInfo()
333 object->SetListener( listener ); in GetAddrInfo()
335 err = object->Run(); in GetAddrInfo()
338 *service = object; in GetAddrInfo()
342 if ( err && object ) in GetAddrInfo()
344 object->Release(); in GetAddrInfo()
353 CComObject<CDNSSDService> * object = NULL; in CreateConnection() local
363 object = new CComObject<CDNSSDService>(); in CreateConnection()
367 object = NULL; in CreateConnection()
370 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in CreateConnection()
371 hr = object->FinalConstruct(); in CreateConnection()
373 object->AddRef(); in CreateConnection()
378 object->SetServiceRef( sref ); in CreateConnection()
380 *service = object; in CreateConnection()
384 if ( err && object ) in CreateConnection()
386 object->Release(); in CreateConnection()
395 CComObject<CDNSSDService> * object = NULL; in NATPortMappingCreate() local
406 object = new CComObject<CDNSSDService>(); in NATPortMappingCreate()
410 object = NULL; in NATPortMappingCreate()
413 require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); in NATPortMappingCreate()
414 hr = object->FinalConstruct(); in NATPortMappingCreate()
416 object->AddRef(); in NATPortMappingCreate()
420 … internalPort, externalPort, ttl, ( DNSServiceNATPortMappingReply ) &NATPortMappingReply, object ); in NATPortMappingCreate()
423 object->SetServiceRef( sref ); in NATPortMappingCreate()
424 object->SetListener( listener ); in NATPortMappingCreate()
426 err = object->Run(); in NATPortMappingCreate()
429 *service = object; in NATPortMappingCreate()
433 if ( err && object ) in NATPortMappingCreate()
435 object->Release(); in NATPortMappingCreate()