X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=73ee06be294862d89b944128c0bf37bf453e69cb;hb=901061622d0e36739e5803d1423c1e1da8d627ab;hp=b275587035857723cbe15e3a8400b066f97eaf2c;hpb=372a275602ae05da22130a4601709291c7fbbaa6;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 +}