RIC-194 Setup from RAN: On Routing Manager Failure, return Setup Failure
[ric-plt/e2mgr.git] / E2Manager / models / rmr_message.go
index ef102c4..905823e 100644 (file)
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
+
+//  This source code is part of the near-RT RIC (RAN Intelligent Controller)
+//  platform project (RICP).
+
 
 package models
 
-import (
-       "e2mgr/logger"
-)
+import "unsafe"
 
 type RmrMessage struct {
        MsgType int
        RanName string
        Payload []byte
+       XAction []byte
+       msgSrc unsafe.Pointer
 }
 
-func NewRmrMessage(msgType int, ranName string, payload []byte) *RmrMessage {
+func NewRmrMessage(msgType int, ranName string, payload []byte, xAction []byte, msgSrc unsafe.Pointer) *RmrMessage {
        return &RmrMessage{
-               MsgType: msgType,
-               RanName: ranName,
-               Payload: payload,
+               msgType,
+               ranName,
+               payload,
+               xAction,
+               msgSrc,
        }
 }
 
-func (response RmrMessage) GetMessageAsBytes(logger *logger.Logger) []byte {
-       return response.Payload
+func (m RmrMessage) GetMsgSrc() unsafe.Pointer{
+       return m.msgSrc
 }