testexecmgmt/ucc/Source/HostExecuteAsync/hostexecuteasync.x
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 * Standard Interface Values
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "../include/penstd.x"
       
    21 
       
    22 
       
    23 /*******************************************************************************
       
    24  *
       
    25  * Constants
       
    26  *
       
    27  ******************************************************************************/
       
    28 const MAXCOMMANDLINE		= 1024;
       
    29 
       
    30 
       
    31 /*******************************************************************************
       
    32  *
       
    33  * Constants
       
    34  *
       
    35  ******************************************************************************/
       
    36 const ERR_WAIT_PROCESS_ERROR			= -103;
       
    37 const ERR_START_PROCESS_ERROR			= -105;
       
    38 const ERR_STOP_PROCESS_ERROR			= -106;
       
    39 const ERR_PROCESS_TERMINATED_OUTSIDE_SCOPE		= -111;
       
    40 
       
    41 
       
    42 /*******************************************************************************
       
    43  *
       
    44  * Types
       
    45  *
       
    46  ******************************************************************************/
       
    47 struct TResult {
       
    48 	int iStandardResult;
       
    49 	int iExtendedCode;
       
    50 	int iSystemError;
       
    51 };
       
    52 
       
    53 struct THostExecuteAsyncProcessInfo {
       
    54 	int iErrorCode;
       
    55 	int iErrorDetail;
       
    56 	char iCommandLine[MAXCOMMANDLINE];
       
    57 	int iProcessStatus;
       
    58 	int iProcessExitReason;
       
    59 	int iExitCode;
       
    60 };
       
    61 typedef opaque TVarData<>;
       
    62 
       
    63 
       
    64 struct TStartupInfo {
       
    65 	int iDummy;
       
    66 };
       
    67 
       
    68 /*******************************************************************************
       
    69  *
       
    70  * Interface
       
    71  *
       
    72  ******************************************************************************/
       
    73 program HOSTEXECUTEASYNC {
       
    74 	version HOSTEXECUTEASYNC_VERSION
       
    75 	{
       
    76 		/* Initialise the service */
       
    77 		int SS_STARTUPRPCSERVICE( TStartupInfo )		= 1;
       
    78 		int SC_SHUTDOWNRPCSERVICE( int )				= 2;
       
    79 		TComponentList LIST_DEVICES( void )				= 30;
       
    80 
       
    81 		/* Create instances */
       
    82 		TResult CSTR_STARTPROCESS( string )				= 31;
       
    83 		TResult DSTR_REMOVEPROCESS( int )				= 32;
       
    84 		
       
    85 		/* Operate on the instance */
       
    86 		TResult KILLPROCESS( int )							= 5;
       
    87 		TResult STOPPROCESS( int )							= 6;
       
    88 		THostExecuteAsyncProcessInfo GETPROCESSINFO( int )	= 7;
       
    89 		TVarData GETSTANDARDOUTPUT( int )					= 8;
       
    90 		TVarData GETSTANDARDERROR( int )					= 9;	
       
    91 	} = 9; 
       
    92 } = 0x34630209;