X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Include%2Fmsgb.h;h=35f55eec5edf2f75b2fc95db223a2959b286c9ee;hb=e93798699eccb72af04938fc9b0d7a836e284488;hp=903bc35d0b168d71a46a3db0210ed125938e3bfa;hpb=94f13ab3e8da393eb27ccc561d31b447b1367c56;p=scp%2Focu%2F5gnr.git diff --git a/Include/msgb.h b/Include/msgb.h index 903bc35..35f55ee 100644 --- a/Include/msgb.h +++ b/Include/msgb.h @@ -1,9 +1,21 @@ /****************************************************************************** -############################################################################### -# Copyright (c) [2017-2020] [ICT/CAS] # -# Licensed under the ORAN Software License v1.0 (License) # -############################################################################### -******************************************************************************/ +* +* Copyright (c) 2020 ICT/CAS. +* +* Licensed under the O-RAN Software License, Version 1.0 (the "Software License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* https://www.o-ran.org/software +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* 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. +* +*******************************************************************************/ + #ifndef MSGB_H #define MSGB_H @@ -14,7 +26,7 @@ extern ULONG gMsgbFreeCount; -typedef struct +typedef struct { UINT16 maxHeadLen; /* Head域预留的长度 */ UINT16 maxDataLen; /* Data域预留的长度 */ @@ -43,7 +55,7 @@ UINT8 *msgbTailPullWithDebug(MsgbBuff_t *pMsgBuff, UINT32 len,unsigned char *fun #define msgbAlloc( dataLen, maxHeadLen, moduleId) msgbAllocWithDebug( dataLen, maxHeadLen, moduleId,(UCHAR *)__func__,__LINE__) - + #define msgbData(pMsgBuff) msgbDataWithDebug(pMsgBuff,(UCHAR *)__func__,__LINE__) @@ -78,4 +90,3 @@ extern UINT16 msgbTailLeftRoom(MsgbBuff_t *pMsgBuff); #define msgbTailPull(pMsgBuff, len) msgbTailPullWithDebug(pMsgBuff, len,(UCHAR *)__func__,__LINE__) #endif /* MSGB_H */ -