<div dir="ltr"><div><div style>Why does the definiton of SWITCH_ADD_AP has a for(;;;) looping in it?</div></div><div><br></div><div><div>#define SWITCH_ADD_API(api_int, int_name, descript, funcptr, syntax_string) \</div><div>
<span class="" style="white-space:pre">        </span>for (;;) { \</div><div><span class="" style="white-space:pre">        </span>api_int = (switch_api_interface_t *)switch_loadable_module_create_interface(*module_interface, SWITCH_API_INTERFACE); \</div>
<div><span class="" style="white-space:pre">        </span>api_int->interface_name = int_name; \</div><div><span class="" style="white-space:pre">        </span>api_int->desc = descript; \</div><div><span class="" style="white-space:pre">        </span>api_int->function = funcptr; \</div>
<div><span class="" style="white-space:pre">        </span>api_int->syntax = syntax_string; \</div><div><span class="" style="white-space:pre">        </span>break; \</div><div><span class="" style="white-space:pre">        </span>}</div></div>
<div><br></div><div style>Thanks,</div><div style><br></div><div style>Valter</div>
</div>