vghwinterface/vghwserialiser/inc/serializedfunctioncall.h
author Matt Plumtree <matt.plumtree@nokia.com>
Wed, 06 Oct 2010 15:43:10 +0100
branchbug235_bringup_0
changeset 51 4f400a6ea71f
parent 1 guestrendering/vghwserialiser/inc/serializedfunctioncall.h@d8d95053303a
permissions -rwxr-xr-x
Rearrange the package to put certain components into a new collection, vghwinterface. Remove unpopulated syborggraphicswrapper, as it will be integrated into the vghwapiwrapper (ne khronosapiwrapper).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     7
//
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    10
//
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    11
// Contributors:
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    12
//
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    13
// Description:
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    14
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    15
#ifndef SERIALIZEDFUNCTIONCALL_H_
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    16
#define SERIALIZEDFUNCTIONCALL_H_
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    17
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    18
#include "serializerplatform.h"
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    19
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    20
class RemoteFunctionCallData;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    21
//Copy operations for simple and array parameters
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    22
class MDataCopier
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    23
    {
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    24
public:
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    25
    virtual TInt CopyData( TUint8* aDest, const TUint8* aSource, TUint32 aSize ) = 0; 
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    26
    virtual TInt CopyVector( TUint8* aDest, const TUint8* aSource, TUint32 aSize ) = 0;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    27
    };
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    28
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    29
/**
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    30
 * Serialized function call.
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    31
 * Serializes the parameters to a given memory location. 
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    32
 */ 
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    33
class SerializedFunctionCall
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    34
    {
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    35
public:    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    36
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    37
    //Parse error
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    38
    enum TError
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    39
        {
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    40
        ESuccess,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    41
        EMoreData,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    42
        EParseError
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    43
        };
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    44
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    45
    //Parse state
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    46
    enum TParseState
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    47
        {
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    48
        EReadingApiUid,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    49
        EReadingOpCode,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    50
        EReadingTransactionId,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    51
        EReadingParameterCount,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    52
        EReadingProcessId,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    53
        EReadingThreadId,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    54
        EReadingOpType,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    55
        EReadingReturnValue,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    56
        EReadingParamDir,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    57
        EReadingParamType,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    58
        EReadingSimpleParamType,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    59
        EReadingSimpleParamData,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    60
        EReadingVectorParamType,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    61
        EReadingVectorParamDataSize,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    62
        EReadingVectorParamVectorLength,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    63
        EReadingVectorParamCallerAddress,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    64
        EReadingVectorParamData,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    65
        EReadingDone
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    66
        };
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    67
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    68
    //Constructor
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    69
	SER_IMPORT_C SerializedFunctionCall( RemoteFunctionCallData& aRFC, MDataCopier* aDataCopier = NULL );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    70
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    71
    SER_IMPORT_C void SetDataCopier( MDataCopier* aDataCopier );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    72
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    73
    //Parses a serialized function call. Updates parameter array and utilises data copier to
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    74
    // copy array parameters
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    75
    SER_IMPORT_C TInt ParseBuffer( const TUint8* aBuffer, const TInt aBufferLength );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    76
        
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    77
    //Serializes function call to a stream.
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    78
    SER_IMPORT_C TInt WriteToBuffer( TUint8* aBuffer, const TInt aStreamMaxLength, TInt aOffset = 0 );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    79
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    80
private:
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    81
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    82
    //Writes header to stream
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    83
    TInt WriteHeaderToBuffer( TUint8* aBuffer, const TInt aStreamMaxLength, TInt aOffset = 0 );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    84
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    85
    //Reads header from buffer
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    86
    TInt ReadHeaderFromBuffer( const TUint8* aBuffer, const TInt aBufferLength );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    87
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    88
    //Writes a data. Accounts destination buffer overflow and can continue write
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    89
    // from a given offset
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    90
    TInt Write( TUint8* aDest, TInt& aDestIndex, const TInt aDestSize,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    91
            const TUint8* aSource, const TInt aSize, TInt& aSourceIndex, 
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    92
            const TInt aOffset, TBool aVector );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    93
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    94
    //Serializes a simple param to a current stream
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    95
    TInt WriteParam( const TUint8* aParam, const TInt aParamSize );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    96
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    97
    //Serializes an array param to a current stream
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    98
    //TInt WriteVector( const TUint8* aParam, const TInt aParamSize );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    99
	TInt WriteVector( const TUint8* aParam, const TInt32 aDataTypeSize, const TInt aVectorSize, const TInt8 aDataTypeAlignment );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   100
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   101
    //Initialises write state
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   102
    void StartWrite( TUint8* aBuffer, const TInt aStreamMaxLength, TInt aOffset = 0 );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   103
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   104
    //Gets a direct pointer to the stream data for an array parameter
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   105
	//TUint8* ReadVector( const TInt aParamSize );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   106
	TUint8* ReadVectorPointer( const TInt32 aDataTypeSize, const TInt aVectorSize, const TInt8 aDataTypeAlignment );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   107
	
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   108
	//Reads simple parameter from a stream
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   109
    TInt ReadParam( TUint8* aParam, const TInt aParamSize );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   110
    
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   111
    //Reads an array parameter from a stream and utilises data copier for data transfer
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   112
	//TInt ReadVectorParam( TUint8* aParam, const TInt aParamSize );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   113
	TInt ReadVectorParam( TUint8* aParam, const TInt32 aDataTypeSize, const TInt aVectorSize, const TInt8 aDataTypeAlignment );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   114
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   115
    //Reads a data. Accounts source buffer overflow and can continue read
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   116
    // from a given offset
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   117
	TInt Read( TUint8* aDest, TInt& aDestIndex, const TInt aDestSize,
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   118
            const TUint8* aSource, TInt& aSourceIndex, const TInt aSourceSize, TBool aVector );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   119
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   120
    //Initialises a read state
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   121
    void StartRead( const TUint8* aBuffer, const TInt aBufferLength );
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   122
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   123
    //Last error
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   124
    TError GetLastError() { return iError; }
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   125
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   126
	RemoteFunctionCallData& GetRemoteFunctionCall() { return iRFC; }
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   127
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   128
private:
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   129
	RemoteFunctionCallData& iRFC;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   130
    MDataCopier* iDataCopier;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   131
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   132
    TError iError;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   133
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   134
	struct WriteState
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   135
		{
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   136
		//Write state
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   137
		TUint8* iBuffer;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   138
		TInt iDestIndex;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   139
		TInt iStreamMaxLength;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   140
		TInt iSourceIndex;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   141
		TInt iOffset;        
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   142
		};
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   143
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   144
	struct ReadState
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   145
		{
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   146
		//Read state
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   147
		TInt iReadDestOffset;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   148
		const TUint8* iReadBuffer;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   149
		TInt iReadBufferIndex;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   150
		TInt iReadBufferLength;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   151
		TParseState iParseState;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   152
		TInt iParamsIndex;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   153
		};
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   154
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   155
	union 
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   156
		{
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   157
		WriteState iWriteState;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   158
		ReadState iReadState;
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   159
		};
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   160
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   161
	};
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   162
d8d95053303a Bootstrap the guestvideodriver and sghwserialiser. Some stuff is still commented out. Compiles with graphics package at changeset 8d47cca9cc11
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   163
#endif