X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=73ee06be294862d89b944128c0bf37bf453e69cb;hb=03433143048809fc17860efdce1ad92fe9eddc7e;hp=7e3892a4f74b6ab6045c7999a579afeecd43a995;hpb=2c9d450c93e4f0b312a68d39429efb685ec02022;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/models/notification_request.go b/E2Manager/models/notification_request.go index 7e3892a..73ee06b 100644 --- a/E2Manager/models/notification_request.go +++ b/E2Manager/models/notification_request.go @@ -20,22 +20,31 @@ package models -import "time" +import ( + "time" + "unsafe" +) type NotificationRequest struct { RanName string Len int Payload []byte StartTime time.Time - TransactionId string + TransactionId []byte + msgSrc unsafe.Pointer } -func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId string) *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 +}