Service callback summary …
Service callback summary …
MqContextC - the callback-function is used as a service-handle or as a event-handle …
A service is using a callback to act on an incoming service-request. The callback is linked to a MqContextC_ServiceApi_Identifer with MqServiceCreate or is used as argument to the MqSendEND_AND_CALLBACK function.
service callbacks are:
The callback return an MkErrorE and to work propper the servive allways have to return the runtime-error-code-attribute attribute and not only MK_ERROR (MkErrorE.ERROR
) or MK_OK (MkErrorE.OK
).
A Proper return can be done using the following code:
(*mkrt).error_mk.code
)MkRuntimeGetErrorCode(mkrt)
)MkErrorGetCode(MkErrorDEFAULT())
)