Hi,
in a given library I register callback functions with this function:
bool set_callback(in t index, int (*callback_func tion)(long));
I need the callback function to also pass the index which is, however,
not (re-)passed by the callback function.
Normally, I would just register callback functions for each
index I need if the amount of callback functions was known at design
time... But it isn't.
Could someone help me find the right approach to solve that problem?
Felix
in a given library I register callback functions with this function:
bool set_callback(in t index, int (*callback_func tion)(long));
I need the callback function to also pass the index which is, however,
not (re-)passed by the callback function.
Normally, I would just register callback functions for each
index I need if the amount of callback functions was known at design
time... But it isn't.
Could someone help me find the right approach to solve that problem?
Felix
Comment