testexecmgmt/ucc/Source/facontroller/facontroller.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 
       
    22 #ifndef __FACONTROLLER_H__
       
    23 #define __FACONTROLLER_H__
       
    24 #include <rpc/types.h>
       
    25 #include <rpc/rpc.h>
       
    26 
       
    27 #define ERR_NONE 0
       
    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_INVALID_METHOD -8
       
    36 #define ERR_CANNOT_CREATE_NEW_INSTANCE -9
       
    37 #define ERR_STUB_ALREADY_CONNECTED -10
       
    38 #define ERR_FAILED_TO_CONNECT -11
       
    39 #define ERR_STUB_NOT_CONNECTED -12
       
    40 #define ERR_INVALID_RV_POINTER -13
       
    41 #define ERR_RPC_ERROR -14
       
    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_facontroller_TComponentList(...);
       
    54 }
       
    55 #else
       
    56 bool_t xdr_facontroller_TComponentList();
       
    57 #endif
       
    58 
       
    59 #define X_MAXOPTIONTOKENSIZE 512
       
    60 #define X_MAXINTERFACENAMESIZE 64
       
    61 #define ERR_WAIT_PROCESS_ERROR -103
       
    62 #define ERR_START_PROCESS_ERROR -105
       
    63 #define ERR_STOP_PROCESS_ERROR -106
       
    64 #define ERR_DYNAMICS_CALL_FAILED -107
       
    65 #define ERR_CONFIG_FILE_ERROR -108
       
    66 #define ERR_POLICY_OUTPUT_PARSING_FAILED -110
       
    67 #define ERR_PROCESS_TERMINATED_OUTSIDE_SCOPE -111
       
    68 #define ERR_NO_MORE_INTERFACES -112
       
    69 #define ERR_CREATE_INTERFACE_ERROR -113
       
    70 #define ERR_DESTROY_INTERFACE_ERROR -114
       
    71 #define ERR_INTEGER_ALLOCATOR_SETUP_ERROR -115
       
    72 
       
    73 enum TSoliticationMode {
       
    74 	SM_SEND_NEVER = -1,
       
    75 	SM_SEND_IN_RESPONSE_TO_SOLICITATION_ONLY = 0,
       
    76 	SM_SEND_REGULAR = 1,
       
    77 };
       
    78 typedef enum TSoliticationMode TSoliticationMode;
       
    79 #ifdef __cplusplus
       
    80 extern "C" {
       
    81 bool_t xdr_facontroller_TSoliticationMode(...);
       
    82 }
       
    83 #else
       
    84 bool_t xdr_facontroller_TSoliticationMode();
       
    85 #endif
       
    86 
       
    87 
       
    88 struct TStartupInfo {
       
    89 	int iBaseInterfaceIndex;
       
    90 	int iNetworkMask;
       
    91 	int iStartHostAddressRange;
       
    92 	int iStopHostAddressRange;
       
    93 };
       
    94 typedef struct TStartupInfo TStartupInfo;
       
    95 #ifdef __cplusplus
       
    96 extern "C" {
       
    97 bool_t xdr_facontroller_TStartupInfo(...);
       
    98 }
       
    99 #else
       
   100 bool_t xdr_facontroller_TStartupInfo();
       
   101 #endif
       
   102 
       
   103 
       
   104 struct TResult {
       
   105 	int iServiceResult;
       
   106 	int iSubComponentResult;
       
   107 	int iData0;
       
   108 	int iData1;
       
   109 };
       
   110 typedef struct TResult TResult;
       
   111 #ifdef __cplusplus
       
   112 extern "C" {
       
   113 bool_t xdr_facontroller_TResult(...);
       
   114 }
       
   115 #else
       
   116 bool_t xdr_facontroller_TResult();
       
   117 #endif
       
   118 
       
   119 
       
   120 struct TOptionDesc {
       
   121 	int iAgentID;
       
   122 	char iOptionFilename[X_MAXOPTIONTOKENSIZE];
       
   123 	char iOptionToken[X_MAXOPTIONTOKENSIZE];
       
   124 	char iOptionValue[X_MAXOPTIONTOKENSIZE];
       
   125 	char iOptionBlockStart[X_MAXOPTIONTOKENSIZE];
       
   126 	char iOptionBlockEnd[X_MAXOPTIONTOKENSIZE];
       
   127 };
       
   128 typedef struct TOptionDesc TOptionDesc;
       
   129 #ifdef __cplusplus
       
   130 extern "C" {
       
   131 bool_t xdr_facontroller_TOptionDesc(...);
       
   132 }
       
   133 #else
       
   134 bool_t xdr_facontroller_TOptionDesc();
       
   135 #endif
       
   136 
       
   137 
       
   138 struct TTimeoutRequest {
       
   139 	int iAgentID;
       
   140 	int iTimeout;
       
   141 };
       
   142 typedef struct TTimeoutRequest TTimeoutRequest;
       
   143 #ifdef __cplusplus
       
   144 extern "C" {
       
   145 bool_t xdr_facontroller_TTimeoutRequest(...);
       
   146 }
       
   147 #else
       
   148 bool_t xdr_facontroller_TTimeoutRequest();
       
   149 #endif
       
   150 
       
   151 
       
   152 struct TGetTunnelRequest {
       
   153 	int iAgentID;
       
   154 	int iMobileNodeAddress;
       
   155 };
       
   156 typedef struct TGetTunnelRequest TGetTunnelRequest;
       
   157 #ifdef __cplusplus
       
   158 extern "C" {
       
   159 bool_t xdr_facontroller_TGetTunnelRequest(...);
       
   160 }
       
   161 #else
       
   162 bool_t xdr_facontroller_TGetTunnelRequest();
       
   163 #endif
       
   164 
       
   165 
       
   166 struct TStartAgentRequest {
       
   167 	int iAgentID;
       
   168 	char iLowerInterface[X_MAXINTERFACENAMESIZE];
       
   169 	TSoliticationMode iSolicitationMode;
       
   170 	int iSolicitationInterval;
       
   171 };
       
   172 typedef struct TStartAgentRequest TStartAgentRequest;
       
   173 #ifdef __cplusplus
       
   174 extern "C" {
       
   175 bool_t xdr_facontroller_TStartAgentRequest(...);
       
   176 }
       
   177 #else
       
   178 bool_t xdr_facontroller_TStartAgentRequest();
       
   179 #endif
       
   180 
       
   181 
       
   182 struct TFaStatusInfo {
       
   183 	TResult iCallResult;
       
   184 	int iTunnelCount;
       
   185 	int iPendingRegistrationRequests;
       
   186 	int iRequestsRejected;
       
   187 	int iRequestsAccepted;
       
   188 	int iReplysAccepted;
       
   189 	int iReplysRejected;
       
   190 	int iDiscardedUnknownExtension;
       
   191 	int iDiscardedMalformed;
       
   192 	int iDiscardedVendor;
       
   193 	int iAdvertisementsSent;
       
   194 };
       
   195 typedef struct TFaStatusInfo TFaStatusInfo;
       
   196 #ifdef __cplusplus
       
   197 extern "C" {
       
   198 bool_t xdr_facontroller_TFaStatusInfo(...);
       
   199 }
       
   200 #else
       
   201 bool_t xdr_facontroller_TFaStatusInfo();
       
   202 #endif
       
   203 
       
   204 
       
   205 struct TFaTunnelID {
       
   206 	int iAgentID;
       
   207 	int iMobileNodeAddress;
       
   208 	int iHomeAgentAddress;
       
   209 	int iID;
       
   210 };
       
   211 typedef struct TFaTunnelID TFaTunnelID;
       
   212 #ifdef __cplusplus
       
   213 extern "C" {
       
   214 bool_t xdr_facontroller_TFaTunnelID(...);
       
   215 }
       
   216 #else
       
   217 bool_t xdr_facontroller_TFaTunnelID();
       
   218 #endif
       
   219 
       
   220 
       
   221 struct TFaTunnelInfo {
       
   222 	TResult iCallResult;
       
   223 	u_int iMobileNodeAddress;
       
   224 	u_int iCareofAddress;
       
   225 	u_int iHomeAgentAddress;
       
   226 	int iPrivateHomeAgentID;
       
   227 	int iCreationTime;
       
   228 	int iExpirationTime;
       
   229 	int iRefreshTime;
       
   230 	int iLastTimestamp;
       
   231 	int iSPI;
       
   232 	int iTimeout;
       
   233 };
       
   234 typedef struct TFaTunnelInfo TFaTunnelInfo;
       
   235 #ifdef __cplusplus
       
   236 extern "C" {
       
   237 bool_t xdr_facontroller_TFaTunnelInfo(...);
       
   238 }
       
   239 #else
       
   240 bool_t xdr_facontroller_TFaTunnelInfo();
       
   241 #endif
       
   242 
       
   243 
       
   244 typedef struct {
       
   245 	u_int TFaTunnelList_len;
       
   246 	TFaTunnelID *TFaTunnelList_val;
       
   247 } TFaTunnelList;
       
   248 #ifdef __cplusplus
       
   249 extern "C" {
       
   250 bool_t xdr_facontroller_TFaTunnelList(...);
       
   251 }
       
   252 #else
       
   253 bool_t xdr_facontroller_TFaTunnelList();
       
   254 #endif
       
   255 
       
   256 
       
   257 #define FACONTROLLER ((u_long)0x34630207)
       
   258 #define FACONTROLLER_VERSION ((u_long)7)
       
   259 #define SS_STARTUPRPCSERVICE ((u_long)1)
       
   260 #ifdef __cplusplus
       
   261 extern "C" {
       
   262 extern int *ss_startuprpcservice_7( TStartupInfo * arg, CLIENT *cl );
       
   263 }
       
   264 #else
       
   265 extern int *ss_startuprpcservice_7();
       
   266 #endif /* __cplusplus */
       
   267 #define SC_SHUTDOWNRPCSERVICE ((u_long)2)
       
   268 #ifdef __cplusplus
       
   269 extern "C" {
       
   270 extern int *sc_shutdownrpcservice_7( int * arg, CLIENT *cl );
       
   271 }
       
   272 #else
       
   273 extern int *sc_shutdownrpcservice_7();
       
   274 #endif /* __cplusplus */
       
   275 #define LIST_DEVICES ((u_long)30)
       
   276 #ifdef __cplusplus
       
   277 extern "C" {
       
   278 extern TComponentList *list_devices_7( void * arg, CLIENT *cl );
       
   279 }
       
   280 #else
       
   281 extern TComponentList *list_devices_7();
       
   282 #endif /* __cplusplus */
       
   283 #define CSTR_CREATEAGENT ((u_long)31)
       
   284 #ifdef __cplusplus
       
   285 extern "C" {
       
   286 extern TResult *cstr_createagent_7( void * arg, CLIENT *cl );
       
   287 }
       
   288 #else
       
   289 extern TResult *cstr_createagent_7();
       
   290 #endif /* __cplusplus */
       
   291 #define DSTR_REMOVEAGENT ((u_long)32)
       
   292 #ifdef __cplusplus
       
   293 extern "C" {
       
   294 extern int *dstr_removeagent_7( int * arg, CLIENT *cl );
       
   295 }
       
   296 #else
       
   297 extern int *dstr_removeagent_7();
       
   298 #endif /* __cplusplus */
       
   299 #define STARTMOBILEAGENT ((u_long)3)
       
   300 #ifdef __cplusplus
       
   301 extern "C" {
       
   302 extern TResult *startmobileagent_7( TStartAgentRequest * arg, CLIENT *cl );
       
   303 }
       
   304 #else
       
   305 extern TResult *startmobileagent_7();
       
   306 #endif /* __cplusplus */
       
   307 #define STOPMOBILEAGENT ((u_long)4)
       
   308 #ifdef __cplusplus
       
   309 extern "C" {
       
   310 extern TResult *stopmobileagent_7( int * arg, CLIENT *cl );
       
   311 }
       
   312 #else
       
   313 extern TResult *stopmobileagent_7();
       
   314 #endif /* __cplusplus */
       
   315 #define GETMOBILEAGENTSTATUS ((u_long)5)
       
   316 #ifdef __cplusplus
       
   317 extern "C" {
       
   318 extern TResult *getmobileagentstatus_7( int * arg, CLIENT *cl );
       
   319 }
       
   320 #else
       
   321 extern TResult *getmobileagentstatus_7();
       
   322 #endif /* __cplusplus */
       
   323 #define SETSINGLEOPTION ((u_long)6)
       
   324 #ifdef __cplusplus
       
   325 extern "C" {
       
   326 extern TResult *setsingleoption_7( TOptionDesc * arg, CLIENT *cl );
       
   327 }
       
   328 #else
       
   329 extern TResult *setsingleoption_7();
       
   330 #endif /* __cplusplus */
       
   331 #define REMOVESINGLEOPTION ((u_long)33)
       
   332 #ifdef __cplusplus
       
   333 extern "C" {
       
   334 extern TResult *removesingleoption_7( TOptionDesc * arg, CLIENT *cl );
       
   335 }
       
   336 #else
       
   337 extern TResult *removesingleoption_7();
       
   338 #endif /* __cplusplus */
       
   339 #define ADDLISTOPTION ((u_long)7)
       
   340 #ifdef __cplusplus
       
   341 extern "C" {
       
   342 extern TResult *addlistoption_7( TOptionDesc * arg, CLIENT *cl );
       
   343 }
       
   344 #else
       
   345 extern TResult *addlistoption_7();
       
   346 #endif /* __cplusplus */
       
   347 #define REMOVELISTOPTION ((u_long)8)
       
   348 #ifdef __cplusplus
       
   349 extern "C" {
       
   350 extern TResult *removelistoption_7( TOptionDesc * arg, CLIENT *cl );
       
   351 }
       
   352 #else
       
   353 extern TResult *removelistoption_7();
       
   354 #endif /* __cplusplus */
       
   355 #define GETSTATUS ((u_long)9)
       
   356 #ifdef __cplusplus
       
   357 extern "C" {
       
   358 extern TFaStatusInfo *getstatus_7( int * arg, CLIENT *cl );
       
   359 }
       
   360 #else
       
   361 extern TFaStatusInfo *getstatus_7();
       
   362 #endif /* __cplusplus */
       
   363 #define DESTROYTUNNELID ((u_long)11)
       
   364 #ifdef __cplusplus
       
   365 extern "C" {
       
   366 extern TResult *destroytunnelid_7( TFaTunnelID * arg, CLIENT *cl );
       
   367 }
       
   368 #else
       
   369 extern TResult *destroytunnelid_7();
       
   370 #endif /* __cplusplus */
       
   371 #define LISTTUNNELS ((u_long)12)
       
   372 #ifdef __cplusplus
       
   373 extern "C" {
       
   374 extern TFaTunnelList *listtunnels_7( int * arg, CLIENT *cl );
       
   375 }
       
   376 #else
       
   377 extern TFaTunnelList *listtunnels_7();
       
   378 #endif /* __cplusplus */
       
   379 #define GETTUNNELINFO ((u_long)15)
       
   380 #ifdef __cplusplus
       
   381 extern "C" {
       
   382 extern TFaTunnelInfo *gettunnelinfo_7( TGetTunnelRequest * arg, CLIENT *cl );
       
   383 }
       
   384 #else
       
   385 extern TFaTunnelInfo *gettunnelinfo_7();
       
   386 #endif /* __cplusplus */
       
   387 #define SETTIMEOUT ((u_long)13)
       
   388 #ifdef __cplusplus
       
   389 extern "C" {
       
   390 extern void *settimeout_7( TTimeoutRequest * arg, CLIENT *cl );
       
   391 }
       
   392 #else
       
   393 extern void *settimeout_7();
       
   394 #endif /* __cplusplus */
       
   395 
       
   396 #endif /* __FACONTROLLER_H__ */