|
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 __UUINTERFACE_H__ |
|
22 #define __UUINTERFACE_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_INVALID_SERVICE -15 |
|
42 #define ERR_INVALIDARG -50 |
|
43 #define ERR_INVALIDSTATE -51 |
|
44 #define ERR_GENERAL -52 |
|
45 #define INFO_MAXIMUM_OBJECTS 256 |
|
46 |
|
47 typedef struct { |
|
48 u_int TComponentList_len; |
|
49 int *TComponentList_val; |
|
50 } TComponentList; |
|
51 #ifdef __cplusplus |
|
52 extern "C" { |
|
53 bool_t xdr_uuinterface_TComponentList(...); |
|
54 } |
|
55 #else |
|
56 bool_t xdr_uuinterface_TComponentList(); |
|
57 #endif |
|
58 |
|
59 #define X_MAX_ADDRESS_LENGTH 64 |
|
60 #define X_TCP 6 |
|
61 #define X_UDP 17 |
|
62 #define ERR_FAILEDTOEXECUTECOMMAND -100 |
|
63 #define ERR_PROCESSEXECUTEFAILED -101 |
|
64 #define ERR_PORTNOTSPECIFIED -103 |
|
65 |
|
66 struct TStartupInfo { |
|
67 int iEmpty; |
|
68 }; |
|
69 typedef struct TStartupInfo TStartupInfo; |
|
70 #ifdef __cplusplus |
|
71 extern "C" { |
|
72 bool_t xdr_uuinterface_TStartupInfo(...); |
|
73 } |
|
74 #else |
|
75 bool_t xdr_uuinterface_TStartupInfo(); |
|
76 #endif |
|
77 |
|
78 |
|
79 struct TConfigValue { |
|
80 char iSourceAddress[X_MAX_ADDRESS_LENGTH]; |
|
81 char iDestinationAddress[X_MAX_ADDRESS_LENGTH]; |
|
82 int iProtocol; |
|
83 int iSrcPort; |
|
84 int iDstPort; |
|
85 int iValueIntegerPart; |
|
86 int iValueFractionPart; |
|
87 int iSigmaIntegerPart; |
|
88 int iSigmaFractionPart; |
|
89 int iCorrelationIntegerPart; |
|
90 int iCorrelationFractionPart; |
|
91 int iMaximumValueIntegerPart; |
|
92 int iMaximumValueFractionPart; |
|
93 int iCongestionIntegerPart; |
|
94 int iCongestionFractionPart; |
|
95 }; |
|
96 typedef struct TConfigValue TConfigValue; |
|
97 #ifdef __cplusplus |
|
98 extern "C" { |
|
99 bool_t xdr_uuinterface_TConfigValue(...); |
|
100 } |
|
101 #else |
|
102 bool_t xdr_uuinterface_TConfigValue(); |
|
103 #endif |
|
104 |
|
105 |
|
106 struct TResult { |
|
107 int iStandardResult; |
|
108 int iExtendedCode; |
|
109 int iSystemError; |
|
110 }; |
|
111 typedef struct TResult TResult; |
|
112 #ifdef __cplusplus |
|
113 extern "C" { |
|
114 bool_t xdr_uuinterface_TResult(...); |
|
115 } |
|
116 #else |
|
117 bool_t xdr_uuinterface_TResult(); |
|
118 #endif |
|
119 |
|
120 |
|
121 #define UUINTERFACE ((u_long)0x34630202) |
|
122 #define UUINTERFACEVER ((u_long)2) |
|
123 #define SS_STARTUPRPCSERVICE ((u_long)1) |
|
124 #ifdef __cplusplus |
|
125 extern "C" { |
|
126 extern int *ss_startuprpcservice_2( TStartupInfo * arg, CLIENT *cl ); |
|
127 } |
|
128 #else |
|
129 extern int *ss_startuprpcservice_2(); |
|
130 #endif /* __cplusplus */ |
|
131 #define SC_SHUTDOWNRPCSERVICE ((u_long)2) |
|
132 #ifdef __cplusplus |
|
133 extern "C" { |
|
134 extern int *sc_shutdownrpcservice_2( int * arg, CLIENT *cl ); |
|
135 } |
|
136 #else |
|
137 extern int *sc_shutdownrpcservice_2(); |
|
138 #endif /* __cplusplus */ |
|
139 #define LIST_DEVICES ((u_long)30) |
|
140 #ifdef __cplusplus |
|
141 extern "C" { |
|
142 extern TComponentList *list_devices_2( void * arg, CLIENT *cl ); |
|
143 } |
|
144 #else |
|
145 extern TComponentList *list_devices_2(); |
|
146 #endif /* __cplusplus */ |
|
147 #define ST_SETDELAY ((u_long)3) |
|
148 #ifdef __cplusplus |
|
149 extern "C" { |
|
150 extern TResult *st_setdelay_2( TConfigValue * arg, CLIENT *cl ); |
|
151 } |
|
152 #else |
|
153 extern TResult *st_setdelay_2(); |
|
154 #endif /* __cplusplus */ |
|
155 #define ST_SETDROPPERCENTAGE ((u_long)4) |
|
156 #ifdef __cplusplus |
|
157 extern "C" { |
|
158 extern TResult *st_setdroppercentage_2( TConfigValue * arg, CLIENT *cl ); |
|
159 } |
|
160 #else |
|
161 extern TResult *st_setdroppercentage_2(); |
|
162 #endif /* __cplusplus */ |
|
163 #define ST_SETDUPLICATEPERCENTAGE ((u_long)5) |
|
164 #ifdef __cplusplus |
|
165 extern "C" { |
|
166 extern TResult *st_setduplicatepercentage_2( TConfigValue * arg, CLIENT *cl ); |
|
167 } |
|
168 #else |
|
169 extern TResult *st_setduplicatepercentage_2(); |
|
170 #endif /* __cplusplus */ |
|
171 #define ST_SETBANDWIDTH ((u_long)6) |
|
172 #ifdef __cplusplus |
|
173 extern "C" { |
|
174 extern TResult *st_setbandwidth_2( TConfigValue * arg, CLIENT *cl ); |
|
175 } |
|
176 #else |
|
177 extern TResult *st_setbandwidth_2(); |
|
178 #endif /* __cplusplus */ |
|
179 #define ST_SETDRD ((u_long)7) |
|
180 #ifdef __cplusplus |
|
181 extern "C" { |
|
182 extern TResult *st_setdrd_2( TConfigValue * arg, CLIENT *cl ); |
|
183 } |
|
184 #else |
|
185 extern TResult *st_setdrd_2(); |
|
186 #endif /* __cplusplus */ |
|
187 #define ST_CLEARSETTINGS ((u_long)8) |
|
188 #ifdef __cplusplus |
|
189 extern "C" { |
|
190 extern TResult *st_clearsettings_2( TConfigValue * arg, CLIENT *cl ); |
|
191 } |
|
192 #else |
|
193 extern TResult *st_clearsettings_2(); |
|
194 #endif /* __cplusplus */ |
|
195 #define ST_STOPSERVICE ((u_long)9) |
|
196 #ifdef __cplusplus |
|
197 extern "C" { |
|
198 extern TResult *st_stopservice_2( void * arg, CLIENT *cl ); |
|
199 } |
|
200 #else |
|
201 extern TResult *st_stopservice_2(); |
|
202 #endif /* __cplusplus */ |
|
203 #define ST_RESET ((u_long)10) |
|
204 #ifdef __cplusplus |
|
205 extern "C" { |
|
206 extern TResult *st_reset_2( void * arg, CLIENT *cl ); |
|
207 } |
|
208 #else |
|
209 extern TResult *st_reset_2(); |
|
210 #endif /* __cplusplus */ |
|
211 |
|
212 #endif /* __UUINTERFACE_H__ */ |