X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=73ee06be294862d89b944128c0bf37bf453e69cb;hb=10ba684801bb3497a7c30422e8b33eaa02675aed;hp=b275587035857723cbe15e3a8400b066f97eaf2c;hpb=efcb4528362460aa2249d319c9752b63bb720fe2;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/models/notification_request.go b/E2Manager/models/notification_request.go index b275587..73ee06b 100644 --- a/E2Manager/models/notification_request.go +++ b/E2Manager/models/notification_request.go @@ -20,7 +20,10 @@ package models -import "time" +import ( + "time" + "unsafe" +) type NotificationRequest struct { RanName string @@ -28,14 +31,20 @@ type NotificationRequest struct { Payload []byte StartTime time.Time TransactionId []byte + msgSrc unsafe.Pointer } -func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId []byte) *NotificationRequest { +func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId []byte, msgSrc unsafe.Pointer) *NotificationRequest { return &NotificationRequest{ ranName, len(payload), payload, startTime, transactionId, + msgSrc, } } + +func (r NotificationRequest) GetMsgSrc() unsafe.Pointer{ + return r.msgSrc +}