This callback function will be called asynchroniously w.r.t the client application. Moreover, it is invoked by MCUT when the associated event has finished execution.
| 62 | // This callback function will be called asynchroniously w.r.t the client application. |
| 63 | // Moreover, it is invoked by MCUT when the associated event has finished execution. |
| 64 | McVoid myCallbackFunction(McEvent event, McVoid* data) |
| 65 | { |
| 66 | printf("Callback invoked!\n"); |
| 67 | |
| 68 | printf("event handle = %p\n", event); |
| 69 | |
| 70 | CallbackData* cd_ptr = (CallbackData*)data; |
| 71 | |
| 72 | printf("callback data ptr: a=%d b=%s\n", cd_ptr->a, cd_ptr->b); |
| 73 | } |
| 74 | |
| 75 | McInt32 main() |
| 76 | { |
nothing calls this directly
no outgoing calls
no test coverage detected