X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Bouncer%2Fe2sm_rc%2Fwrapper.h;fp=Bouncer%2Fe2sm_rc%2Fwrapper.h;h=64cf78d7e6ffdb9d0992b0189b280988e6755fb6;hb=fbc7e3ad84fc7269233a2f0b5d416cb1c6f8a6ea;hp=0000000000000000000000000000000000000000;hpb=eb27c05c05b5042d115480c40cffa16e7d473d80;p=ric-app%2Fbouncer.git diff --git a/Bouncer/e2sm_rc/wrapper.h b/Bouncer/e2sm_rc/wrapper.h new file mode 100755 index 0000000..64cf78d --- /dev/null +++ b/Bouncer/e2sm_rc/wrapper.h @@ -0,0 +1,70 @@ +#ifndef _WRAPPER_H_ +#define _WRAPPER_H_ + +#include "BOOLEAN.h" +#include "NativeReal.h" +#include "REAL.h" +#include "OCTET_STRING.h" +#include "E2SM-RC-ControlHeader-Format1.h" +#include "E2SM-RC-ControlHeader.h" +#include "E2SM-RC-ControlMessage-Format1.h" +#include "E2SM-RC-ControlMessage.h" +#include "E2SM-RC-RANFunctionDefinition.h" +#include "INTEGER.h" +#include "NativeInteger.h" +#include "OPEN_TYPE.h" +#include "PrintableString.h" +#include "RANParameter-ID.h" +#include "RANParameter-LIST.h" +#include "RANParameter-Name.h" +#include "RANParameter-STRUCTURE.h" +#include "RANParameter-Value.h" +#include "RANParameter-ValueType.h" +#include "RANfunction-Name.h" +#include "RIC-ControlAction-ID.h" +#include "RIC-ControlAction-Name.h" +#include "RIC-Format-Type.h" +#include "RIC-Style-Name.h" +#include "RIC-Style-Type.h" +#include "RANParameter-ValueType-Choice-ElementFalse.h" +#include "RANParameter-ValueType-Choice-Structure.h" +#include "UEID.h" +#include "UEID-GNB.h" +#include "UEID-GNB-CU-F1AP-ID-List.h" +#include "UEID-GNB-CU-CP-E1AP-ID-List.h" +#include "UEID-GNB-CU-CP-F1AP-ID-Item.h" +#include "UEID-GNB-CU-CP-E1AP-ID-Item.h" +#include "E2SM-RC-ControlMessage-Format1-Item.h" +#include "RANParameter-STRUCTURE-Item.h" +#include "E2SM-RC-ControlOutcome.h" +#include "E2SM-RC-ControlOutcome-Format1.h" +#include "E2SM-RC-ControlOutcome-Format1-Item.h" +#include "NR-CGI.h" + + +long F1AP_id[1]; +long E1AP_id[1]; +struct uEID { + long amf_UE_NGAP_Id; + //size_t amf_UE_NGAP_Id_size; + const char* pLMNIdentity; + size_t pLMNIdentity_size; + const char* aMFRegionID; + size_t aMFRegionID_size; + const char* aMFSetID; + size_t aMFSetID_size; + const char* aMFPointer; + size_t aMFPointer_size; +}; + + +extern ssize_t e2sm_encode_ric_control_header(void *buffer, size_t buf_size,struct uEID *in,long f1AP[],size_t f1AP_len,long e1AP[],size_t e1Ap_len,long ricControlStyleType, long ricControlActionID, void *ranParameterValue, size_t ranParameterValue_size); + +extern ssize_t e2sm_encode_ric_control_message(void *buffer, size_t buf_size, long targetPrimaryCell, long targetCell, long nrOrEUtraCell, long nrCGIOrECGI, void *ranParameterValue, size_t ranParameterValue_size); + +extern E2SM_RC_ControlOutcome_t* e2sm_decode_ric_call_process_outcome(void *buffer, size_t buf_size); +extern void e2sm_free_ric_call_process_outcome(E2SM_RC_ControlOutcome_t* controlOutcome) ; +extern ssize_t e2sm_encode_nrcgi(NR_CGI_t *nr_cgi, void* ranParameterValue, size_t ranParameterValue_size, + ulong lNRCellId,uint8_t* buffer, size_t buf_size); + +#endif /* _WRAPPER_H_ */