javacommons/comms/ipclib/clientserver/src.s60/common.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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: Comms helper functions and constants
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef COMMON_H
       
    19 #define COMMON_H
       
    20 
       
    21 #include "transport.h"
       
    22 
       
    23 namespace java
       
    24 {
       
    25 namespace comms
       
    26 {
       
    27 
       
    28 const TInt KCommsStackSize = 0x5000;
       
    29 
       
    30 enum ECommsOperations
       
    31 {
       
    32     ESend,
       
    33     EReceive,
       
    34     ECancelReceive
       
    35 };
       
    36 
       
    37 // delete must be used to free allocated memory
       
    38 HBufC8* messageToDes(const ipcMessage_t& aMsg);
       
    39 
       
    40 // delete[] must be used to free allocated memory
       
    41 char* desToMessage(const TDesC8& aDes);
       
    42 
       
    43 } // namespace comms
       
    44 } // namespace java
       
    45 
       
    46 #endif // COMMON_H