Add API allowing xAPPs to send alarm messages
[ric-plt/xapp-frame-cpp.git] / src / messaging / default_cb.cpp
index d7cfdbf..2156ad3 100644 (file)
@@ -38,6 +38,9 @@
 
 #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