testexecmgmt/ucc/Source/HostExecuteAsync/hostexecuteasync.h
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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __HOSTEXECUTEASYNC_H__
       
    22 #define __HOSTEXECUTEASYNC_H__
       
    23 #include <rpc/types.h>
       
    24 #include <rpc/rpc.h>
       
    25 
       
    26 #define ERR_NONE 0
       
    27 #define ERR_SERVICE_ALREADY_STARTED -1
       
    28 #define ERR_SERVICE_NOT_RUNNING -2
       
    29 #define ERR_ACTIVE_USER_SESSIONS -3
       
    30 #define ERR_FAILED_TO_REMOVE_ACTIVE_SESSIONS -4
       
    31 #define ERR_FAILED_TO_CREATE_COMPONENT_MANAGER -5
       
    32 #define ERR_FAILED_TO_RETRIEVE_KEY -6
       
    33 #define ERR_INSTANCE_DOES_NOT_EXIST -7
       
    34 #define ERR_INVALID_METHOD -8
       
    35 #define ERR_CANNOT_CREATE_NEW_INSTANCE -9
       
    36 #define ERR_STUB_ALREADY_CONNECTED -10
       
    37 #define ERR_FAILED_TO_CONNECT -11
       
    38 #define ERR_STUB_NOT_CONNECTED -12
       
    39 #define ERR_INVALID_RV_POINTER -13
       
    40 #define ERR_RPC_ERROR -14
       
    41 #define ERR_INVALIDARG -50
       
    42 #define ERR_INVALIDSTATE -51
       
    43 #define ERR_GENERAL -52
       
    44 #define INFO_MAXIMUM_OBJECTS 256
       
    45 
       
    46 typedef struct {
       
    47 	u_int TComponentList_len;
       
    48 	int *TComponentList_val;
       
    49 } TComponentList;
       
    50 #ifdef __cplusplus
       
    51 extern "C" {
       
    52 bool_t xdr_hostexecuteasync_TComponentList(...);
       
    53 }
       
    54 #else
       
    55 bool_t xdr_hostexecuteasync_TComponentList();
       
    56 #endif
       
    57 
       
    58 #define MAXCOMMANDLINE 1024
       
    59 #define ERR_WAIT_PROCESS_ERROR -103
       
    60 #define ERR_START_PROCESS_ERROR -105
       
    61 #define ERR_STOP_PROCESS_ERROR -106
       
    62 #define ERR_PROCESS_TERMINATED_OUTSIDE_SCOPE -111
       
    63 
       
    64 struct TResult {
       
    65 	int iStandardResult;
       
    66 	int iExtendedCode;
       
    67 	int iSystemError;
       
    68 };
       
    69 typedef struct TResult TResult;
       
    70 #ifdef __cplusplus
       
    71 extern "C" {
       
    72 bool_t xdr_hostexecuteasync_TResult(...);
       
    73 }
       
    74 #else
       
    75 bool_t xdr_hostexecuteasync_TResult();
       
    76 #endif
       
    77 
       
    78 
       
    79 struct THostExecuteAsyncProcessInfo {
       
    80 	int iErrorCode;
       
    81 	int iErrorDetail;
       
    82 	char iCommandLine[MAXCOMMANDLINE];
       
    83 	int iProcessStatus;
       
    84 	int iProcessExitReason;
       
    85 	int iExitCode;
       
    86 };
       
    87 typedef struct THostExecuteAsyncProcessInfo THostExecuteAsyncProcessInfo;
       
    88 #ifdef __cplusplus
       
    89 extern "C" {
       
    90 bool_t xdr_hostexecuteasync_THostExecuteAsyncProcessInfo(...);
       
    91 }
       
    92 #else
       
    93 bool_t xdr_hostexecuteasync_THostExecuteAsyncProcessInfo();
       
    94 #endif
       
    95 
       
    96 
       
    97 typedef struct {
       
    98 	u_int TVarData_len;
       
    99 	char *TVarData_val;
       
   100 } TVarData;
       
   101 #ifdef __cplusplus
       
   102 extern "C" {
       
   103 bool_t xdr_hostexecuteasync_TVarData(...);
       
   104 }
       
   105 #else
       
   106 bool_t xdr_hostexecuteasync_TVarData();
       
   107 #endif
       
   108 
       
   109 
       
   110 struct TStartupInfo {
       
   111 	int iDummy;
       
   112 };
       
   113 typedef struct TStartupInfo TStartupInfo;
       
   114 #ifdef __cplusplus
       
   115 extern "C" {
       
   116 bool_t xdr_hostexecuteasync_TStartupInfo(...);
       
   117 }
       
   118 #else
       
   119 bool_t xdr_hostexecuteasync_TStartupInfo();
       
   120 #endif
       
   121 
       
   122 
       
   123 #define HOSTEXECUTEASYNC ((u_long)0x34630209)
       
   124 #define HOSTEXECUTEASYNC_VERSION ((u_long)9)
       
   125 #define SS_STARTUPRPCSERVICE ((u_long)1)
       
   126 #ifdef __cplusplus
       
   127 extern "C" {
       
   128 extern int *ss_startuprpcservice_9( TStartupInfo * arg, CLIENT *cl );
       
   129 }
       
   130 #else
       
   131 extern int *ss_startuprpcservice_9();
       
   132 #endif /* __cplusplus */
       
   133 #define SC_SHUTDOWNRPCSERVICE ((u_long)2)
       
   134 #ifdef __cplusplus
       
   135 extern "C" {
       
   136 extern int *sc_shutdownrpcservice_9( int * arg, CLIENT *cl );
       
   137 }
       
   138 #else
       
   139 extern int *sc_shutdownrpcservice_9();
       
   140 #endif /* __cplusplus */
       
   141 #define LIST_DEVICES ((u_long)30)
       
   142 #ifdef __cplusplus
       
   143 extern "C" {
       
   144 extern TComponentList *list_devices_9( void * arg, CLIENT *cl );
       
   145 }
       
   146 #else
       
   147 extern TComponentList *list_devices_9();
       
   148 #endif /* __cplusplus */
       
   149 #define CSTR_STARTPROCESS ((u_long)31)
       
   150 #ifdef __cplusplus
       
   151 extern "C" {
       
   152 extern TResult *cstr_startprocess_9( char ** arg, CLIENT *cl );
       
   153 }
       
   154 #else
       
   155 extern TResult *cstr_startprocess_9();
       
   156 #endif /* __cplusplus */
       
   157 #define DSTR_REMOVEPROCESS ((u_long)32)
       
   158 #ifdef __cplusplus
       
   159 extern "C" {
       
   160 extern TResult *dstr_removeprocess_9( int * arg, CLIENT *cl );
       
   161 }
       
   162 #else
       
   163 extern TResult *dstr_removeprocess_9();
       
   164 #endif /* __cplusplus */
       
   165 #define KILLPROCESS ((u_long)5)
       
   166 #ifdef __cplusplus
       
   167 extern "C" {
       
   168 extern TResult *killprocess_9( int * arg, CLIENT *cl );
       
   169 }
       
   170 #else
       
   171 extern TResult *killprocess_9();
       
   172 #endif /* __cplusplus */
       
   173 #define STOPPROCESS ((u_long)6)
       
   174 #ifdef __cplusplus
       
   175 extern "C" {
       
   176 extern TResult *stopprocess_9( int * arg, CLIENT *cl );
       
   177 }
       
   178 #else
       
   179 extern TResult *stopprocess_9();
       
   180 #endif /* __cplusplus */
       
   181 #define GETPROCESSINFO ((u_long)7)
       
   182 #ifdef __cplusplus
       
   183 extern "C" {
       
   184 extern THostExecuteAsyncProcessInfo *getprocessinfo_9( int * arg, CLIENT *cl );
       
   185 }
       
   186 #else
       
   187 extern THostExecuteAsyncProcessInfo *getprocessinfo_9();
       
   188 #endif /* __cplusplus */
       
   189 #define GETSTANDARDOUTPUT ((u_long)8)
       
   190 #ifdef __cplusplus
       
   191 extern "C" {
       
   192 extern TVarData *getstandardoutput_9( int * arg, CLIENT *cl );
       
   193 }
       
   194 #else
       
   195 extern TVarData *getstandardoutput_9();
       
   196 #endif /* __cplusplus */
       
   197 #define GETSTANDARDERROR ((u_long)9)
       
   198 #ifdef __cplusplus
       
   199 extern "C" {
       
   200 extern TVarData *getstandarderror_9( int * arg, CLIENT *cl );
       
   201 }
       
   202 #else
       
   203 extern TVarData *getstandarderror_9();
       
   204 #endif /* __cplusplus */
       
   205 
       
   206 #endif /* __HOSTEXECUTEASYNC_H__ */