I like to use an array of interfaces which is defined in one file and will be used in a main file. As far as I know I have to prototype the interface in my .h file for that reason. I want to use n client tasks which are linked to one server task.
The following prototypes worked just fine:
Code: Select all
interface my_interface;
void client_task(client interface my_interface i);
Code: Select all
void server_task(server interface my_interface i[n], unsigned n);