X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmessaging%2Fdefault_cb.cpp;h=2156ad32eae3864f2fbc9dabc6a1405bb7736ee2;hb=368cf5e2adaaf24b82d4ac28638f06a1aa2ccfae;hp=d7cfdbf7b45e2ac90a044a1ca96c7082a679bbc8;hpb=8cb3c6f5d5062b83f17a5739e0671490beb543de;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/messaging/default_cb.cpp b/src/messaging/default_cb.cpp index d7cfdbf..2156ad3 100644 --- a/src/messaging/default_cb.cpp +++ b/src/messaging/default_cb.cpp @@ -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 @@ -46,9 +49,12 @@ 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