presentfile :/usr/include/asterisk/channel.h
in my func i want to use below …
struct ast_channel_iterator *iter = NULL;
struct ast_channel *c=NULL;
char copy_myappl[40];
size_t copy_appl_size = sizeof(copy_myappl);
for (; (c = ast_channel_iterator_next(iter)); ast_channel_unref(c))
{
snprintf(copy_myappl, sizeof(copy_myappl), "%s", c->appl );
}
—issue–
error: dereferencing pointer to incomplete type at this line snprintf(copy_myappl, sizeof(copy_myappl), “%s”, c->appl );