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