C struct construct question

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Apr 18 06:50:12 UTC 2006


Hi all,

I found an unusual C construct in Asterisk source code and I am looking 
for an explanation. Of course I cannot find one online. Here is a quote:

static const struct ast_channel_tech local_tech = {
         .type = type,
         .description = tdesc,
         .capabilities = -1,
         .requester = local_request,
         .send_digit = local_digit,
 	.call = local_call,
         .hangup = local_hangup,
         .answer = local_answer,
         .read = local_read,
         .write = local_write,
         .exception = local_read,
         .indicate = local_indicate,
         .fixup = local_fixup,
         .send_html = local_sendhtml, 
};

how does this work ? References ?

thanks,
Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list