multimediacommscontroller/mmccrtpsourcesink/inc/mccrtpdefs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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:    Provides general definitions for Mcc rtpsourcesink
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MCCRTPDEFS_H
       
    22 #define MCCRTPDEFS_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // CONSTANTS
       
    28 const TUint32 KRtpStandByTimer = 30000000; // 30 seconds 
       
    29 
       
    30 // MACROS
       
    31 
       
    32 #ifdef _DEBUG
       
    33 #include <e32svr.h>
       
    34 #define TRACE_RTCP_RECEIVER
       
    35 #define TRACE_RTP_SINK
       
    36 #define TRACE_RTP_SOURCE
       
    37 #define TRACE_RTP_INTERFACE
       
    38 #define TRACE_RTP_CRYPTO_ADAPTER
       
    39 #endif
       
    40 
       
    41 #ifdef  TRACE_RTP_CRYPTO_ADAPTER
       
    42 #define TRACE_RTP_CRYPTO_ADAPTER_PRINT(a) { _LIT( KName, a); RDebug::Print(KName); }
       
    43 #define TRACE_RTP_CRYPTO_ADAPTER_PRINT2(a, b) { _LIT( KName, a); RDebug::Print(KName, b); }
       
    44 #else
       
    45 #define TRACE_RTP_CRYPTO_ADAPTER_PRINT(a)
       
    46 #define TRACE_RTP_CRYPTO_ADAPTER_PRINT2(a, b)
       
    47 #endif
       
    48 
       
    49 #ifdef  TRACE_RTCP_RECEIVER
       
    50 #define TRACE_RTCP_RECEIVER_PRINT(a) { _LIT( KName, a); RDebug::Print(KName); }
       
    51 #define TRACE_RTCP_RECEIVER_PRINT2(a, b) { _LIT( KName, a); RDebug::Print(KName, b); }
       
    52 #define TRACE_RTCP_RECEIVER_PRINT3(a, b, c) { _LIT( KName, a); RDebug::Print(KName, b, c); }
       
    53 #else
       
    54 #define TRACE_RTCP_RECEIVER_PRINT(a)
       
    55 #define TRACE_RTCP_RECEIVER_PRINT2(a, b)
       
    56 #define TRACE_RTCP_RECEIVER_PRINT3(a, b, c)
       
    57 #endif
       
    58 
       
    59 #ifdef  TRACE_RTP_SINK
       
    60 #define TRACE_RTP_SINK_PRINT(a) { _LIT( KName, a); RDebug::Print(KName); }
       
    61 #define TRACE_RTP_SINK_PRINT2(a, b) { _LIT( KName, a); RDebug::Print(KName, b); }
       
    62 #define TRACE_RTP_SINK_PRINT3(a, b, c) { _LIT( KName, a); RDebug::Print(KName, b, c); }
       
    63 #else
       
    64 #define TRACE_RTP_SINK_PRINT(a)
       
    65 #define TRACE_RTP_SINK_PRINT2(a, b)
       
    66 #define TRACE_RTP_SINK_PRINT3(a, b, c)
       
    67 #endif
       
    68 
       
    69 #ifdef  TRACE_RTP_SOURCE
       
    70 #define TRACE_RTP_SOURCE_PRINT(a) { _LIT( KName, a); RDebug::Print(KName); }
       
    71 #define TRACE_RTP_SOURCE_PRINT2(a, b) { _LIT( KName, a); RDebug::Print(KName, b); }
       
    72 #define TRACE_RTP_SOURCE_PRINT3(a, b, c) { _LIT( KName, a); RDebug::Print(KName, b, c); }
       
    73 #else
       
    74 #define TRACE_RTP_SOURCE_PRINT(a)
       
    75 #define TRACE_RTP_SOURCE_PRINT2(a, b)
       
    76 #define TRACE_RTP_SOURCE_PRINT3(a, b, c)
       
    77 #endif
       
    78 
       
    79 #ifdef  TRACE_RTP_INTERFACE
       
    80 #define TRACE_RTP_INTERFACE_PRINT(a) { _LIT( KName, a); RDebug::Print(KName); }
       
    81 #define TRACE_RTP_INTERFACE_PRINT2(a, b) { _LIT( KName, a); RDebug::Print(KName, b); }
       
    82 #define TRACE_RTP_INTERFACE_PRINT3(a, b, c) { _LIT( KName, a); RDebug::Print(KName, b, c); }
       
    83 #else
       
    84 #define TRACE_RTP_INTERFACE_PRINT(a)
       
    85 #define TRACE_RTP_INTERFACE_PRINT2(a, b)
       
    86 #define TRACE_RTP_INTERFACE_PRINT3(a, b, c)
       
    87 #endif
       
    88 
       
    89 // FUNCTION PROTOTYPES
       
    90 
       
    91 // FORWARD DECLARATIONS
       
    92 
       
    93 #endif      // MCCRTPDEFS_H
       
    94             
       
    95 // End of File