anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2019-present, Infosys Limited. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | /****************************************************************************** |
| 16 | * |
| 17 | * This is an auto generated file. |
| 18 | * Please do not edit this file. |
| 19 | * All edits to be made through template source file |
| 20 | * <TOP-DIR/scripts/GtpV2StackCodeGen/tts/stacktemplate.h.tt> |
| 21 | ******************************************************************************/ |
| 22 | #ifndef GTPV2STACK_H_ |
| 23 | #define GTPV2STACK_H_ |
| 24 | |
| 25 | #include <sstream> |
| 26 | #include <basicTypes.h> |
| 27 | #include <msgBuffer.h> |
| 28 | #include "msgClasses/gtpV2MsgDataTypes.h" |
| 29 | |
| 30 | class GtpV2Stack { |
| 31 | public: |
| 32 | GtpV2Stack(); |
| 33 | virtual ~GtpV2Stack(); |
| 34 | |
| 35 | // Public datastructures that hold decoded data or data to be encoded |
| 36 | CreateSessionRequestMsgData createSessionRequestStackData; |
| 37 | CreateSessionResponseMsgData createSessionResponseStackData; |
| 38 | ModifyBearerRequestMsgData modifyBearerRequestStackData; |
| 39 | ModifyBearerResponseMsgData modifyBearerResponseStackData; |
| 40 | DeleteSessionRequestMsgData deleteSessionRequestStackData; |
| 41 | DeleteSessionResponseMsgData deleteSessionResponseStackData; |
| 42 | ReleaseAccessBearersRequestMsgData releaseAccessBearersRequestStackData; |
| 43 | ReleaseAccessBearersResponseMsgData releaseAccessBearersResponseStackData; |
| 44 | CreateBearerRequestMsgData createBearerRequestStackData; |
| 45 | CreateBearerResponseMsgData createBearerResponseStackData; |
| 46 | DeleteBearerRequestMsgData deleteBearerRequestStackData; |
| 47 | DeleteBearerResponseMsgData deleteBearerResponseStackData; |
| 48 | DownlinkDataNotificationMsgData downlinkDataNotificationStackData; |
| 49 | DownlinkDataNotificationAcknowledgeMsgData downlinkDataNotificationAcknowledgeStackData; |
| 50 | DownlinkDataNotificationFailureIndicationMsgData downlinkDataNotificationFailureIndicationStackData; |
| 51 | |
| 52 | bool encodeMessage(GtpV2MessageHeader& msgHeader, MsgBuffer& buffer, |
| 53 | void* data_p = NULL); |
| 54 | bool decodeGtpMessageHeader(GtpV2MessageHeader& msgHeader, MsgBuffer& buffer); |
| 55 | bool decodeMessage(GtpV2MessageHeader& msgHeader, MsgBuffer& buffer, |
| 56 | void* data_p = NULL); |
| 57 | void display_v(Uint8 msgType, Debug& stream, void* data_p = NULL); |
| 58 | }; |
| 59 | |
| 60 | #endif /* GTPV2STACK_H_ */ |