1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
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 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 * express or implied.
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
17 */
18 // ----------------------------------------------------------------------
19 //
20 // This Software is an original work of authorship of PacketVideo Corporation.
21 // Portions of the Software were developed in collaboration with NTT DoCoMo,
22 // Inc. or were derived from the public domain or materials licensed from
23 // third parties. Title and ownership, including all intellectual property
24 // rights in and to the Software shall remain with PacketVideo Corporation
25 // and NTT DoCoMo, Inc.
26 //
27 // -----------------------------------------------------------------------
28 /*****************************************************************************/
29 /* file name : tsc_rme.c */
30 /* file contents : Terminal State Control routine */
31 /* draw : '96.10.04 */
32 /*---------------------------------------------------------------------------*/
33 /* amendment */
34 /* Copyright (C) 1996 NTT DoCoMo */
35 /*****************************************************************************/
36 #include "tsc_sub.h"
37 #include "h245def.h"
38 #include "tscmain.h"
39
40 /*****************************************************************************/
41 /* function name : Tsc_RmeSendReq */
42 /* function outline : Tsc_RmeSendReq procedure */
43 /* function discription : Tsc_RmeSendReq( void ) */
44 /* input data : None */
45 /* output data : None */
46 /* draw time : '96.10.09 */
47 /*---------------------------------------------------------------------------*/
48 /* amendent career (x) : */
49 /* */
50 /* Copyright (C) 1996 NTT DoCoMo */
51 /*****************************************************************************/
RmeSendReq()52 OSCL_EXPORT_REF void TSC_324m::RmeSendReq()
53 {
54 PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_STACK_TRACE,
55 (0, "TSC_324m::RmeSendReq\n"));
56 S_ControlMsgHeader infHeader;
57 Tsc_SendDataSet(&infHeader,
58 H245_PRIMITIVE,
59 E_PtvId_Rme_Send_Req,
60 0, 0, NULL, 0);
61 iH245->DispatchControlMessage(&infHeader);
62 }
63
64
65 /*****************************************************************************/
66 /* function name : Tsc_RmeSendRps */
67 /* function outline : Tsc_RmeSendRps procedure */
68 /* function discription : Tsc_RmeSendRps( void ) */
69 /* input data : None */
70 /* output data : None */
71 /* draw time : '96.10.09 */
72 /*---------------------------------------------------------------------------*/
73 /* amendent career (x) : */
74 /* */
75 /* Copyright (C) 1996 NTT DoCoMo */
76 /*****************************************************************************/
RmeSendRps()77 void TSC_324m::RmeSendRps()
78 {
79 S_ControlMsgHeader infHeader;
80 Tsc_SendDataSet(&infHeader,
81 H245_PRIMITIVE,
82 E_PtvId_Rme_Send_Rps,
83 0, 0, NULL, 0);
84 iH245->DispatchControlMessage(&infHeader);
85 }
86
87
88 /*****************************************************************************/
89 /* function name : Tsc_RmeRjtReq */
90 /* function outline : Tsc_RmeRjtReq procedure */
91 /* function discription : Tsc_RmeRjtReq( void ) */
92 /* input data : None */
93 /* output data : None */
94 /* draw time : '96.10.09 */
95 /*---------------------------------------------------------------------------*/
96 /* amendent career (x) : */
97 /* */
98 /* Copyright (C) 1996 NTT DoCoMo */
99 /*****************************************************************************/
RmeRjtReq()100 void TSC_324m::RmeRjtReq()
101 {
102 S_ControlMsgHeader infHeader;
103 S_RmeRejectCause parameter;
104
105 // REJECT.request primitive - Parameter[CAUSE]
106 parameter.index = 0; // unspecifiedCause
107
108 Tsc_SendDataSet(&infHeader,
109 H245_PRIMITIVE,
110 E_PtvId_Rme_Rjt_Req,
111 0,
112 0,
113 (uint8*)¶meter,
114 sizeof(S_RmeRejectCause));
115 iH245->DispatchControlMessage(&infHeader);
116 }
117