So is there a better way to avoid these compile/build
problems without modifying the dnssd.h header? Perhaps
there's a different way to write function pointer code
than what I'm doing? My stuff is pretty boring though:
void reply_callback(
DNSServiceRef sdref,
DNSServiceFlags flags,
DNSServiceErrorType error,
const char* name,
const char* regtype,
const char* domain,
void* context)
{
fprintf(stderr, "In RegisterReply callback: flags=%d,
error=%d\n\tname=%s\n\tregtype=%s\n\tdomain=%s\n",
flags, error, name, regtype, domain);
}
dns_error = DNSServiceRegister(
&service_ref,
0, * if there is a conflict */
0,
"Mytalk",
"_http._tcp.",
NULL,
NULL,
chosen_port,
0,
NULL,
reply_callback,
NULL
);
If not, I would be happy to send my modified header
file for inclusion into the standard code base if the
changes are deemed correct.
I'm using Visual Studio .NET 2003. I'm using the
Rendezvous SDK technology preview. (I didn't build
this myself.) The dnssd.h header version is 1.22 which
seems .01 less than my CVS version (which talks about
FreeBSD fixes), so I'm expecting (hoping) my stuff to
be current enough without me having to build it.
Thanks,
Eric
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.