S
SpreadTooThin
extern DNSServiceCreateConnection(DNSServiceRef *sdRef);
typedef struct _DNSServiceRef_t *DNSServiceRef;
This statement creates a type called DNSServiceRef, which is a pointer
to a structure???
But I have no idea what a _DNSServiceRef_t is...
DNSServiceRef r; // Is just an uninitialized pointer?
Am I correct in assuming that there is NO such structure as a
_DNSServiceRef_t or that it is meant to be 'opaque' to me?
I'm asking because I'm trying to port this c/c++ code into another
language and I need to be sure I understand the data types being
passed....
_DNSServiceRef_t i;
_DNSServiceRef_t *p = &i; // Which is the same as DNSServiceRef p =
&i;
DNSServiceCreateConnection(&p);
typedef struct _DNSServiceRef_t *DNSServiceRef;
This statement creates a type called DNSServiceRef, which is a pointer
to a structure???
But I have no idea what a _DNSServiceRef_t is...
DNSServiceRef r; // Is just an uninitialized pointer?
Am I correct in assuming that there is NO such structure as a
_DNSServiceRef_t or that it is meant to be 'opaque' to me?
I'm asking because I'm trying to port this c/c++ code into another
language and I need to be sure I understand the data types being
passed....
_DNSServiceRef_t i;
_DNSServiceRef_t *p = &i; // Which is the same as DNSServiceRef p =
&i;
DNSServiceCreateConnection(&p);