MCPcopy Create free account
hub / github.com/cutdigital/mcut / myCallbackFunction

Function myCallbackFunction

tutorials/EventCallback/EventCallback.cpp:64–73  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
64McVoid 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
75McInt32 main()
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected