X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=73ee06be294862d89b944128c0bf37bf453e69cb;hb=27feca449ac9a0693b37ff22a900f2534c244387;hp=ebbeeb6869dea9b91a63e7ac327d57c32347d845;hpb=966f2102168cad95b8aa1bc83241b4b6730ab1e2;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/models/notification_request.go b/E2Manager/models/notification_request.go index ebbeeb6..73ee06b 100644 --- a/E2Manager/models/notification_request.go +++ b/E2Manager/models/notification_request.go @@ -13,26 +13,38 @@ // 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 "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 +}