[Freeswitch-users] #define SWITCH_ADD_AP

Valter Nogueira valter at fastway.com.br
Tue Sep 10 23:31:34 MSD 2013


Why does the definiton of SWITCH_ADD_AP has a for(;;;) looping in it?

#define SWITCH_ADD_API(api_int, int_name, descript, funcptr, syntax_string)
\
for (;;) { \
api_int = (switch_api_interface_t
*)switch_loadable_module_create_interface(*module_interface,
SWITCH_API_INTERFACE); \
api_int->interface_name = int_name; \
api_int->desc = descript; \
api_int->function = funcptr; \
api_int->syntax = syntax_string; \
break; \
}

Thanks,

Valter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130910/fd9caaaf/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list