multimediacommscontroller/tsrc/rtpservicestub/src/RtpAPI_STUB.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2002-2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include "rtpapi.h"
       
    25 
       
    26 /*****************************************************************************/ 
       
    27 /****************************** API FUNCTIONS   ******************************/ 
       
    28 /*****************************************************************************/ 
       
    29 // ---------------------------------------------------------------------------
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 CRtpAPI::CRtpAPI( void )
       
    35     {
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // Symbian 2nd phase constructor can leave.
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 void CRtpAPI::ConstructL( MRtpErrNotify& /*aErrNotify*/ )
       
    43     {
       
    44     //iManager = CRtpManager::NewL( aErrNotify );
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // Two-phased constructor.
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 EXPORT_C CRtpAPI* CRtpAPI::NewL( MRtpErrNotify& aErrNotify )
       
    52     {
       
    53     CRtpAPI* self = new ( ELeave ) CRtpAPI;
       
    54 
       
    55     CleanupStack::PushL( self );
       
    56     self->ConstructL( aErrNotify );   
       
    57     CleanupStack::Pop();  //self
       
    58 
       
    59     return self;
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // Destructor
       
    64 // ---------------------------------------------------------------------------
       
    65 //
       
    66 CRtpAPI::~CRtpAPI( void )
       
    67     {
       
    68     //delete iManager;
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // TInt CRtpAPI::OpenL()
       
    73 // 
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 EXPORT_C TInt CRtpAPI::OpenL( const TRtpSdesParams& /*aSdesInfo*/,
       
    77                               const TDesC* /*aRtpPacketDll*/,
       
    78                               const RSocketServ* /*aSocketServPtr*/,
       
    79                               const RConnection* /*aConnPtr*/ )
       
    80     {
       
    81     /**
       
    82     RSocketServ* socketServPtr = const_cast<RSocketServ*>( aSocketServPtr );
       
    83 	RConnection* connPtr       = const_cast<RConnection*>( aConnPtr );
       
    84 	
       
    85     return iManager->OpenL( aSdesInfo, aRtpPacketDll, socketServPtr, connPtr );
       
    86      */
       
    87     return KErrNone;
       
    88     }
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // CRtpAPI::StartConnection()
       
    92 // Synchronous version.
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 EXPORT_C TInt CRtpAPI::StartConnection( TInt /*aIapId*/ )
       
    96     {
       
    97     // return iManager->StartConnection( aIapId );
       
    98     return KErrNone;
       
    99     }
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // CRtpAPI::StartConnection()
       
   103 // Asynchronous version.
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 EXPORT_C TInt CRtpAPI::StartConnection( TRequestStatus& aStatus, TInt /*aIapId*/ )
       
   107     {
       
   108     //
       
   109     // return iManager->StartConnection( aStatus, aIapId );
       
   110     TRequestStatus* status = &aStatus;
       
   111     User::RequestComplete( status, KErrNone );
       
   112     return KErrNone;
       
   113     }
       
   114 
       
   115 // ---------------------------------------------------------------------------
       
   116 // CRtpAPI::CancelStart()
       
   117 // 
       
   118 // ---------------------------------------------------------------------------
       
   119 //
       
   120 EXPORT_C void CRtpAPI::CancelStart()
       
   121     {
       
   122     //iManager->CancelStart();
       
   123     }
       
   124 
       
   125 // ---------------------------------------------------------------------------
       
   126 // CRtpAPI::Close()
       
   127 // 
       
   128 // ---------------------------------------------------------------------------
       
   129 //
       
   130 EXPORT_C void CRtpAPI::Close( void )
       
   131     {
       
   132     //iManager->Close();
       
   133     }
       
   134 
       
   135 // ---------------------------------------------------------------------------
       
   136 // CRtpAPI::SetLocalSdes()
       
   137 // 
       
   138 // ---------------------------------------------------------------------------
       
   139 //
       
   140 EXPORT_C void CRtpAPI::SetLocalSdes( const TRtpSdesParams& /*aSdesInfo*/ )
       
   141     {
       
   142     //iManager->SetLocalSdes( aSdesInfo );
       
   143     }
       
   144 
       
   145 // ---------------------------------------------------------------------------
       
   146 // CRtpAPI::Version()
       
   147 // 
       
   148 // ---------------------------------------------------------------------------
       
   149 //
       
   150 EXPORT_C TVersion CRtpAPI::Version() const
       
   151     {
       
   152     return TVersion(2, 0, 0);
       
   153     }
       
   154 
       
   155 // ---------------------------------------------------------------------------
       
   156 // TInetAddr& CRtpAPI::GetLocalIPAddressL()
       
   157 // 
       
   158 // ---------------------------------------------------------------------------
       
   159 //
       
   160 EXPORT_C TInetAddr& CRtpAPI::GetLocalIPAddressL()
       
   161     {
       
   162     TInetAddr adressi;
       
   163     adressi.SetAddress( INET_ADDR( 127,0,0,1 ) );
       
   164     return adressi;
       
   165     // return iManager->GetLocalIPAddressL();
       
   166     }
       
   167     
       
   168  
       
   169 
       
   170 /*****************************************************************************/ 
       
   171 /***************************** SESSION FUNCTIONS  ****************************/ 
       
   172 /*****************************************************************************/ 
       
   173 // ---------------------------------------------------------------------------
       
   174 // TRtpId CRtpAPI::CreateSessionL()
       
   175 // 
       
   176 // ---------------------------------------------------------------------------
       
   177 //
       
   178 EXPORT_C TRtpId CRtpAPI::CreateSessionL( const TCreateSessionParams& aSessionParams,
       
   179                                          TUint& /*aPort*/,
       
   180                                          TBool /*aEnableRtcp*/,
       
   181                                          const TRtcpParams* /*aRtcpParams*/ )
       
   182     {
       
   183     
       
   184     // return iManager->CreateSessionL( aSessionParams, aPort, aEnableRtcp, aRtcpParams );
       
   185     TRtpId rtpid( 1 );
       
   186     iReserved4 = aSessionParams.iSocketBufSize;
       
   187     return rtpid;
       
   188     }
       
   189 
       
   190 // ---------------------------------------------------------------------------
       
   191 // TRtpId CRtpAPI::CreateSessionL()
       
   192 // 
       
   193 // ---------------------------------------------------------------------------
       
   194 //
       
   195 EXPORT_C TRtpId CRtpAPI::CreateSessionL( const TCreateSessionParams& aSessionParams,
       
   196                                          TUint& /*aPort*/,
       
   197                                          TBool /*aEnableRtcp*/,
       
   198                                          const TRtcpParams* /*aRtcpParams*/,
       
   199                                          CSRTPSession& /*aSession*/ )
       
   200     {
       
   201     TRtpId rtpid( 1 );
       
   202     iReserved3 = ETrue;
       
   203     iReserved4 = aSessionParams.iSocketBufSize;
       
   204     return rtpid;
       
   205     }
       
   206 
       
   207 // ---------------------------------------------------------------------------
       
   208 // TInt CRtpAPI::SetRemoteAddress()
       
   209 // 
       
   210 // ---------------------------------------------------------------------------
       
   211 //
       
   212 EXPORT_C TInt CRtpAPI::SetRemoteAddress( TRtpId /*aSessionId*/, const TInetAddr& /*aRemoteAddr*/ )
       
   213     {
       
   214     // return iManager->SetRemoteAddress( aSessionId, const_cast< TInetAddr& >( aRemoteAddr ) );
       
   215     return KErrNone;
       
   216     }
       
   217 
       
   218 
       
   219 // ---------------------------------------------------------------------------
       
   220 // TInt CRtpAPI::SetRemoteRtcpAddress()
       
   221 // 
       
   222 // ---------------------------------------------------------------------------
       
   223 //
       
   224 EXPORT_C TInt CRtpAPI::SetRemoteRtcpAddress( TRtpId /*aSessionId*/, const TInetAddr& /*aRemoteRtcpAddr*/ )
       
   225     {
       
   226     // return iManager->SetRemoteRtcpAddress( aSessionId, const_cast< TInetAddr& >( aRemoteRtcpAddr ) );
       
   227     return KErrNone;
       
   228     }
       
   229     
       
   230 // ---------------------------------------------------------------------------
       
   231 // TInt CRtpAPI::StartSession()
       
   232 // 
       
   233 // ---------------------------------------------------------------------------
       
   234 //
       
   235 EXPORT_C TInt CRtpAPI::StartSession( TRtpId /*aSessionId*/ )
       
   236     {
       
   237     // return iManager->StartSession( aSessionId );
       
   238     return KErrNone;
       
   239     }
       
   240 
       
   241 // ---------------------------------------------------------------------------
       
   242 // CRtpAPI::CloseSession()
       
   243 // 
       
   244 // ---------------------------------------------------------------------------
       
   245 //
       
   246 EXPORT_C void CRtpAPI::CloseSession( TRtpId /*aSessionId*/ )
       
   247     {
       
   248     //iManager->CloseSession( aSessionId );
       
   249     }
       
   250 
       
   251 // ---------------------------------------------------------------------------
       
   252 // TRtpId CRTPAPI::GetSessionId()
       
   253 // 
       
   254 // ---------------------------------------------------------------------------
       
   255 //
       
   256 EXPORT_C TRtpId CRtpAPI::GetSessionId( TRtpId /*aStreamId*/ )
       
   257     {
       
   258     // return iManager->GetSessionId( aStreamId );
       
   259     TRtpId rtpid(1);
       
   260     return rtpid;
       
   261     }
       
   262     
       
   263 
       
   264 
       
   265 
       
   266 
       
   267 /*****************************************************************************/ 
       
   268 /****************************** STREAM FUNCTIONS  ****************************/ 
       
   269 /*****************************************************************************/ 
       
   270 // ---------------------------------------------------------------------------
       
   271 // TRtpId CRtpAPI::CreateReceiveStreamL()
       
   272 // 
       
   273 // ---------------------------------------------------------------------------
       
   274 //
       
   275 EXPORT_C TRtpId CRtpAPI::CreateReceiveStreamL( TRtpId /*aSessionId*/, 
       
   276                                                const TRcvStreamParams& /*aParams*/ )
       
   277     {
       
   278     // return iManager->CreateReceiveStreamL( aSessionId, aParams );
       
   279     TRtpId rtpid(2);
       
   280     return rtpid;
       
   281     }
       
   282 
       
   283 // ---------------------------------------------------------------------------
       
   284 // TRtpId CRtpAPI::CreateTransmitStreamL()
       
   285 // 
       
   286 // ---------------------------------------------------------------------------
       
   287 //
       
   288 EXPORT_C TRtpId CRtpAPI::CreateTransmitStreamL( TRtpId /*aSessionId*/, 
       
   289                                                 const TTranStreamParams& /*aParams*/, 
       
   290                                                 TRtpSSRC& /*aSSRC*/ )
       
   291     {
       
   292     // return iManager->CreateTransmitStreamL( aSessionId, aParams, aSSRC );
       
   293     TRtpId rtpid(3);
       
   294     return rtpid;
       
   295     }
       
   296 
       
   297 // ---------------------------------------------------------------------------
       
   298 // TRtpId CRtpAPI::CreateTransmitStreamExtL()
       
   299 // 
       
   300 // ---------------------------------------------------------------------------
       
   301 //
       
   302 EXPORT_C TRtpId CRtpAPI::CreateTransmitStreamExtL( TRtpId /*aSessionId*/,
       
   303                                                    const TTranStreamParams& /*aParams*/,
       
   304                                                    const TRtpSSRC /*aSSRC*/ )
       
   305     {
       
   306     // return iManager->CreateTransmitStreamExtL( aSessionId, aParams, aSSRC );
       
   307     TRtpId rtpid(0);
       
   308     return rtpid;
       
   309     }
       
   310 
       
   311 // ---------------------------------------------------------------------------
       
   312 // CRtpAPI::CloseStream()
       
   313 // 
       
   314 // ---------------------------------------------------------------------------
       
   315 //
       
   316 EXPORT_C void CRtpAPI::CloseStream( TRtpId /*aStreamId*/ )
       
   317     {
       
   318     //iManager->CloseStream( aStreamId );
       
   319     }
       
   320     
       
   321 // ---------------------------------------------------------------------------
       
   322 // TInt CRtpAPI::GetStreamStatistics()
       
   323 // 
       
   324 // ---------------------------------------------------------------------------
       
   325 //
       
   326 EXPORT_C TInt CRtpAPI::GetStreamStatistics( TRtpId /*aStreamId*/, TRtpPeerStat& /*aStat*/ )
       
   327     {
       
   328     // return iManager->GetStreamStatistics( aStreamId, aStat );
       
   329     return KErrNone;
       
   330     }
       
   331     
       
   332 
       
   333 
       
   334 /*****************************************************************************/ 
       
   335 /****************************** RTP FUNCTIONS  *******************************/ 
       
   336 /*****************************************************************************/ 
       
   337 // ---------------------------------------------------------------------------
       
   338 // TInt CRtpAPI::RegisterRtpObserver()
       
   339 // 
       
   340 // ---------------------------------------------------------------------------
       
   341 //
       
   342 EXPORT_C TInt CRtpAPI::RegisterRtpObserver( TRtpId /*aSessionId*/, MRtpObserver& /*aObserver*/ )
       
   343     {
       
   344     //return iManager->RegisterRtpObserver( aSessionId, aObserver );
       
   345     return 0;
       
   346     }
       
   347 
       
   348 // ---------------------------------------------------------------------------
       
   349 // CRtpAPI::UnregisterRtpObserver()
       
   350 // 
       
   351 // ---------------------------------------------------------------------------
       
   352 //
       
   353 EXPORT_C void CRtpAPI::UnregisterRtpObserver( TRtpId /*aSessionId*/ )
       
   354     {
       
   355     //iManager->UnregisterRtpObserver( aSessionId );
       
   356     }
       
   357 
       
   358 
       
   359 // ---------------------------------------------------------------------------
       
   360 // RSocket* CRtpAPI::GetRtpSocket()
       
   361 // 
       
   362 // ---------------------------------------------------------------------------
       
   363 //
       
   364 EXPORT_C RSocket* CRtpAPI::GetRtpSocket( TRtpId /*aSessionId*/ )
       
   365     {
       
   366     // return iManager->GetRtpSocket( aSessionId );
       
   367     return NULL;
       
   368     }
       
   369 
       
   370 // ---------------------------------------------------------------------------
       
   371 // TInt CRtpAPI::SendRtpPacket()
       
   372 // 
       
   373 // ---------------------------------------------------------------------------
       
   374 //
       
   375 EXPORT_C TInt CRtpAPI::SendRtpPacket( TRtpId /*aTranStreamId*/,
       
   376                                       const TRtpSendHeader& /*aHeaderInfo*/,
       
   377                                       const TDesC8& /*aPayloadData*/ )
       
   378     {
       
   379     // return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData );
       
   380     return KErrNone;
       
   381     }
       
   382 
       
   383 // ---------------------------------------------------------------------------
       
   384 // TInt CRtpAPI::SendRtpPacket()
       
   385 // 
       
   386 // ---------------------------------------------------------------------------
       
   387 //
       
   388 EXPORT_C TInt CRtpAPI::SendRtpPacket( TRtpId /*aTranStreamId*/,
       
   389                                       TRtpSequence /*aSequenceNum*/,
       
   390                                       const TRtpSendHeader& /*aHeaderInfo*/,
       
   391                                       const TDesC8& /*aPayloadData*/,
       
   392                                       TRequestStatus& aStatus )
       
   393     {
       
   394     // return iManager->SendRtpPacket( aTranStreamId, aSequenceNum, aHeaderInfo, 
       
   395     //                              aPayloadData, aStatus );
       
   396     TRequestStatus* status = &aStatus;
       
   397     User::RequestComplete( status, KErrNone );
       
   398 
       
   399     return KErrNone;
       
   400     }
       
   401 
       
   402 // ---------------------------------------------------------------------------
       
   403 // TInt CRtpAPI::SendRtpPacket()
       
   404 // 
       
   405 // ---------------------------------------------------------------------------
       
   406 //
       
   407 EXPORT_C TInt CRtpAPI::SendRtpPacket( TRtpId /*aTranStreamId*/,
       
   408                                       const TRtpSendHeader& /*aHeaderInfo*/,
       
   409                                       const TDesC8& /*aPayloadData*/,
       
   410                                       TRequestStatus& aStatus )
       
   411     {
       
   412     // return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData, aStatus );
       
   413     
       
   414     TRequestStatus* status = &aStatus;
       
   415     User::RequestComplete( status, KErrNone );
       
   416     
       
   417     return KErrNone;
       
   418     }
       
   419 
       
   420 // ---------------------------------------------------------------------------
       
   421 // void CancelSend( TRtpId aSessionId )
       
   422 // 
       
   423 // ---------------------------------------------------------------------------
       
   424 //
       
   425 EXPORT_C void CRtpAPI::CancelSend( TRtpId /*aSessionId*/ )
       
   426     {
       
   427     //iManager->CancelSend( aSessionId );
       
   428     }
       
   429 
       
   430 
       
   431 
       
   432 /*****************************************************************************/ 
       
   433 /****************************** RTCP FUNCTIONS  ******************************/ 
       
   434 /*****************************************************************************/ 
       
   435 // ---------------------------------------------------------------------------
       
   436 // TInt CRtpAPI::RegisterRtcpObserver()
       
   437 // 
       
   438 // ---------------------------------------------------------------------------
       
   439 //
       
   440 EXPORT_C TInt CRtpAPI::RegisterRtcpObserver( TRtpId /*aSessionId*/, MRtcpObserver& /*aObserver*/ )
       
   441     {
       
   442     // return iManager->RegisterRtcpObserver( aSessionId, aObserver );
       
   443     return KErrNone;
       
   444     }
       
   445 
       
   446 // ---------------------------------------------------------------------------
       
   447 // CRtpAPI::UnregisterRtcpObserver()
       
   448 // 
       
   449 // ---------------------------------------------------------------------------
       
   450 //
       
   451 EXPORT_C void CRtpAPI::UnregisterRtcpObserver( TRtpId /*aSessionId*/ )
       
   452     {
       
   453     //iManager->UnregisterRtcpObserver( aSessionId );
       
   454     }
       
   455 
       
   456 
       
   457 // ---------------------------------------------------------------------------
       
   458 // TInt CRtpAPI::SetNonRTPDataObserver()
       
   459 // 
       
   460 // ---------------------------------------------------------------------------
       
   461 //
       
   462 EXPORT_C TInt CRtpAPI::SetNonRTPDataObserver( TRtpId /*aSessionId*/, 
       
   463                                     MNonRTPDataObserver* /*aNonRTPDataObserver*/ )
       
   464     {
       
   465     return KErrNone;
       
   466     }
       
   467 
       
   468 // ---------------------------------------------------------------------------
       
   469 // RSocket* CRtpAPI::GetRtcpSocket()
       
   470 // 
       
   471 // ---------------------------------------------------------------------------
       
   472 //
       
   473 EXPORT_C RSocket* CRtpAPI::GetRtcpSocket( TRtpId /*aSessionId*/ )
       
   474     {
       
   475     //return iManager->GetRtcpSocket( aSessionId );
       
   476     return NULL;
       
   477     }
       
   478 
       
   479 
       
   480 // ---------------------------------------------------------------------------
       
   481 // TInt CRtpAPI::SetRtcpParameters()
       
   482 // 
       
   483 // ---------------------------------------------------------------------------
       
   484 //
       
   485 EXPORT_C TInt CRtpAPI::SetRtcpParameters( TRtpId /*aSessionId*/,
       
   486                                           const TRtcpParams& /*aRtcpParams*/ )
       
   487     {
       
   488     // return iManager->SetRtcpParameters( aSessionId, aRtcpParams );
       
   489     return KErrNone;
       
   490     }
       
   491 
       
   492 
       
   493 // ---------------------------------------------------------------------------
       
   494 // TInt CRtpAPI::SendRtcpByePacket()
       
   495 // 
       
   496 // ---------------------------------------------------------------------------
       
   497 //
       
   498 EXPORT_C TInt CRtpAPI::SendRtcpByePacket( TRtpId /*aTranStreamId*/,
       
   499                                           const TDesC8& /*aReason*/ )
       
   500     {
       
   501     //return iManager->SendRtcpByePacket( aTranStreamId, aReason );
       
   502     return KErrNone;
       
   503     }
       
   504 
       
   505 // ---------------------------------------------------------------------------
       
   506 // TInt CRtpAPI::SendRtcpAppPacket()
       
   507 // 
       
   508 // ---------------------------------------------------------------------------
       
   509 //
       
   510 EXPORT_C TInt CRtpAPI::SendRtcpAppPacket( TRtpId /*aTranStreamId*/,
       
   511                                           const TRtcpApp& /*aApp*/ )
       
   512     {
       
   513     //return iManager->SendRtcpAppPacket( aTranStreamId, aApp );
       
   514     return KErrNone;
       
   515     }
       
   516 
       
   517 // ---------------------------------------------------------------------------
       
   518 // TInt CRtpAPI::SendRtcpSrPacket()
       
   519 // 
       
   520 // ---------------------------------------------------------------------------
       
   521 //
       
   522 EXPORT_C TInt CRtpAPI::SendRtcpSrPacket( TRtpId /*aTranStreamId*/ )
       
   523     {
       
   524     //return iManager->SendRtcpSrPacket( aTranStreamId );
       
   525     return KErrNone;
       
   526     }
       
   527 
       
   528 // ---------------------------------------------------------------------------
       
   529 // TInt CRtpAPI::SendRtcpRrPacket()
       
   530 // 
       
   531 // ---------------------------------------------------------------------------
       
   532 //
       
   533 EXPORT_C TInt CRtpAPI::SendRtcpRrPacket( TRtpId /*aTranStreamId*/ )
       
   534     {
       
   535     //return iManager->SendRtcpRrPacket( aTranStreamId );
       
   536     return KErrNone;
       
   537     }
       
   538 
       
   539 EXPORT_C void CRtpAPI::SendDataL( TRtpId /*aSessionId*/,
       
   540                                 TBool /*aUseRTPSocket*/,
       
   541                                 const TDesC8& /*aData*/,
       
   542                                 TRequestStatus& aStatus )
       
   543     {
       
   544     TRequestStatus* status = &aStatus;
       
   545     User::RequestComplete( status, KErrNone );
       
   546     }
       
   547 
       
   548 // ---------------------------------------------------------------------------
       
   549 // TInt CRtpAPI::SuspendRtcpSending()
       
   550 //
       
   551 // ---------------------------------------------------------------------------
       
   552 //
       
   553 EXPORT_C TInt CRtpAPI::SuspendRtcpSending( TRtpId /*aSessionId*/,
       
   554                                            TBool /*aAutoSending*/ )
       
   555     {
       
   556     //return iManager->SuspendRtcpSending( aSessionId, aAutoSending );
       
   557     return KErrNone;
       
   558     }
       
   559         
       
   560 // ---------------------------------------------------------------------------
       
   561 // TInt CRtpAPI::IsRtcpSendingSuspended()
       
   562 //
       
   563 // ---------------------------------------------------------------------------
       
   564 //
       
   565 EXPORT_C TInt CRtpAPI::IsRtcpSendingSuspended( TRtpId /*aSessionId*/,
       
   566                                                TBool& /*aAutoSending*/ )
       
   567     {
       
   568     //return iManager->IsRtcpSendingSuspended( aSessionId, aAutoSending );
       
   569     return KErrNone;
       
   570     }
       
   571 
       
   572 /*****************************************************************************/ 
       
   573 /***************************** SAMPLING FUNCTIONS ****************************/ 
       
   574 /*****************************************************************************/ 
       
   575 // ---------------------------------------------------------------------------
       
   576 // TUint32 CRtpAPI::GetSamplingRate()
       
   577 // 
       
   578 // ---------------------------------------------------------------------------
       
   579 //
       
   580 EXPORT_C TUint32 CRtpAPI::GetSamplingRate( TUint8 /*aPayloadType*/ )
       
   581     {
       
   582     //return iManager->GetSamplingRate( aPayloadType );
       
   583     return KErrNone;
       
   584     }
       
   585 
       
   586 // ---------------------------------------------------------------------------
       
   587 // TInt CRtpAPI::SetSamplingRate()
       
   588 // 
       
   589 // ---------------------------------------------------------------------------
       
   590 //
       
   591 EXPORT_C TInt CRtpAPI::SetSamplingRate( TUint8 /*aPayloadType*/, TUint32 /*aSampleRate*/ )
       
   592     {
       
   593     //return iManager->SetSamplingRate( aPayloadType, aSampleRate );
       
   594     return KErrNone;
       
   595     }
       
   596 
       
   597 
       
   598 /*****************************************************************************/ 
       
   599 /***************************** CUSTOM FUNCTIONS ******************************/ 
       
   600 /*****************************************************************************/ 
       
   601 // ---------------------------------------------------------------------------
       
   602 // TInt CRtpAPI::CustomCommandSync()
       
   603 // 
       
   604 // ---------------------------------------------------------------------------
       
   605 //
       
   606 EXPORT_C TInt CRtpAPI::CustomCommandSync( TInt aFunction,
       
   607                                           const TDesC8& /*aInputData1*/,
       
   608                                           const TDesC8& /*aInputData2*/,
       
   609                                           TDes8& /*aOutputData*/ )
       
   610     {
       
   611     if ( aFunction == 3 )
       
   612         {
       
   613         return iReserved3;
       
   614         }
       
   615     if ( aFunction == 4 )
       
   616         {
       
   617         return iReserved4;
       
   618         }
       
   619     return KErrNotSupported;
       
   620     }
       
   621 
       
   622 // ---------------------------------------------------------------------------
       
   623 // TInt CRtpAPI::CustomCommandAsync()
       
   624 // 
       
   625 // ---------------------------------------------------------------------------
       
   626 //
       
   627 EXPORT_C TInt CRtpAPI::CustomCommandAsync( TInt /*aFunction*/,
       
   628                                            const TDesC8& /*aInputData1*/,
       
   629                                            const TDesC8& /*aInputData2*/,
       
   630                                            TDes8& /*aOutputData*/,
       
   631                                            TRequestStatus& /*aStatus*/ )
       
   632     {
       
   633     return KErrNotSupported;
       
   634     }
       
   635 
       
   636 
       
   637 /*****************************************************************************/ 
       
   638 /******************************** DLL FUNCTIONS ******************************/ 
       
   639 /*****************************************************************************/ 
       
   640 #if !defined ( EKA2 ) && !defined ( RTP_UNIT_TEST )
       
   641 // ---------------------------------------------------------------------------
       
   642 // All E32 DLLs need an entry point...
       
   643 // DLL entry point
       
   644 // ---------------------------------------------------------------------------
       
   645 //
       
   646 GLDEF_C TInt E32Dll( TDllReason /*aReason*/ )
       
   647     {
       
   648     return ( KErrNone );
       
   649     }
       
   650 #endif
       
   651 
       
   652 //  End of File