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