I have a a few callback functions. i need to register them as a list. And callback all the registered functions in a main after a certain task is done.
I am new to callback functions. Please shed some insight on this
xcallback(register_callbackfunctions);
ycallback(register_callbackfunctions);
register_callbackfunctions()//not too sure what goes in as the parameters here
{
//create the list of the functions
}
int main(){
if( certain_task_is_done){
//callback all the functions in the list that was registered
}
}