#include "messenger.hpp"
+namespace xapp {
+
+
/*
This is the default health check function that we provide (user
may override it). It will respond to health check messages by
The mr paramter is obviously ignored, but to add this as a callback
the function sig must match.
*/
-void Health_ck_cb( Messenger& mr, Message& mbuf, int mtype, int sid, int len, Msg_component payload, void* data ) {
+void Health_ck_cb( Message& mbuf, int mtype, int sid, int len, Msg_component payload, void* data ) {
unsigned char response[128];
snprintf( (char* ) response, sizeof( response ), "OK\n" );
mbuf.Send_response( RIC_HEALTH_CHECK_RESP, sid, strlen( (char *) response )+1, response );
}
+
+
+} // namespace