• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_clc.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_clc.h"
37 #include    "tsc_sub.h"     /* Sub Routine Information Header                */
38 #include    "h245def.h"
39 
40 
41 /*****************************************************************************/
42 /*  function name        : Tsc_ClcClsRps                                     */
43 /*  function outline     : Tsc_ClcClsRps procedure                           */
44 /*  function discription : Tsc_ClcClsRps( void )                             */
45 /*  input data           : None                                              */
46 /*  output data          : None                                              */
47 /*  draw time            : '96.10.09                                         */
48 /*---------------------------------------------------------------------------*/
49 /*  amendent career (x)   :                                                   */
50 /*                                                                           */
51 /*              Copyright (C) 1996 NTT DoCoMo                                */
52 /*****************************************************************************/
ClcClsReq(uint32 Lcn)53 void TSC_clc::ClcClsReq(uint32 Lcn)
54 {
55     S_ControlMsgHeader infHeader;
56     Tsc_SendDataSet(&infHeader, H245_PRIMITIVE, E_PtvId_Clc_Cls_Req, Lcn, 0, NULL, 0);
57     iH245->DispatchControlMessage(&infHeader);
58 }
59 
60 
61 /*****************************************************************************/
62 /*  function name        : Tsc_ClcClsRps                                     */
63 /*  function outline     : Tsc_ClcClsRps procedure                           */
64 /*  function discription : Tsc_ClcClsRps( uint32 )                             */
65 /*  input data           : None                                              */
66 /*  output data          : None                                              */
67 /*  draw time            : '96.10.09                                         */
68 /*---------------------------------------------------------------------------*/
69 /*  amendent career (x)   :                                                   */
70 /*                                                                           */
71 /*              Copyright (C) 1996 NTT DoCoMo                                */
72 /*****************************************************************************/
ClcClsRps(uint32 Lcn)73 void TSC_clc::ClcClsRps(uint32 Lcn)
74 {
75     S_ControlMsgHeader infHeader;
76     Tsc_SendDataSet(&infHeader, H245_PRIMITIVE, E_PtvId_Clc_Cls_Rps, Lcn, 0, NULL, 0);
77     iH245->DispatchControlMessage(&infHeader);
78 }
79 
80 /*****************************************************************************/
81 /*  function name        : Tsc_ClcRjtReq                                     */
82 /*  function outline     : Tsc_ClcRjtReq procedure                           */
83 /*  function discription : Tsc_ClcRjtReq( void )                             */
84 /*  input data           : None                                              */
85 /*  output data          : None                                              */
86 /*  draw time            : '96.10.09                                         */
87 /*---------------------------------------------------------------------------*/
88 /*  amendent career (x)   :                                                   */
89 /*                                                                           */
90 /*              Copyright (C) 1996 NTT DoCoMo                                */
91 /*****************************************************************************/
ClcRjtReq(uint32 Lcn)92 void TSC_clc::ClcRjtReq(uint32 Lcn)
93 {
94     S_ControlMsgHeader infHeader;
95     S_RccRejectCause parameter;
96 
97     // REJECT.request primitive - Parameter[CAUSE]
98     parameter.index = 0;  // unspecified
99     Tsc_SendDataSet(&infHeader, H245_PRIMITIVE, E_PtvId_Clc_Rjt_Req, Lcn, 0,
100                     (uint8*)&parameter, sizeof(S_RccRejectCause));
101     iH245->DispatchControlMessage(&infHeader);
102 }
103