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 |
* Standard Interface Values
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
#include "../include/penstd.x"
|
|
21 |
|
|
22 |
/*******************************************************************************
|
|
23 |
*
|
|
24 |
* Constants
|
|
25 |
*
|
|
26 |
******************************************************************************/
|
|
27 |
const X_MAX_ADDRESS_LENGTH = 64;
|
|
28 |
|
|
29 |
const X_TCP = 6;
|
|
30 |
const X_UDP = 17;
|
|
31 |
|
|
32 |
/*******************************************************************************
|
|
33 |
*
|
|
34 |
* Error codes
|
|
35 |
*
|
|
36 |
******************************************************************************/
|
|
37 |
const ERR_FAILEDTOEXECUTECOMMAND = -100;
|
|
38 |
const ERR_PROCESSEXECUTEFAILED = -101;
|
|
39 |
|
|
40 |
const ERR_PORTNOTSPECIFIED = -103;
|
|
41 |
|
|
42 |
/*******************************************************************************
|
|
43 |
*
|
|
44 |
* Types
|
|
45 |
*
|
|
46 |
******************************************************************************/
|
|
47 |
struct TStartupInfo {
|
|
48 |
int iEmpty;
|
|
49 |
};
|
|
50 |
|
|
51 |
struct TConfigValue
|
|
52 |
{
|
|
53 |
char iSourceAddress[X_MAX_ADDRESS_LENGTH];
|
|
54 |
char iDestinationAddress[X_MAX_ADDRESS_LENGTH];
|
|
55 |
int iProtocol;
|
|
56 |
int iSrcPort;
|
|
57 |
int iDstPort;
|
|
58 |
int iValueIntegerPart;
|
|
59 |
int iValueFractionPart;
|
|
60 |
int iSigmaIntegerPart;
|
|
61 |
int iSigmaFractionPart;
|
|
62 |
int iCorrelationIntegerPart;
|
|
63 |
int iCorrelationFractionPart;
|
|
64 |
int iMaximumValueIntegerPart;
|
|
65 |
int iMaximumValueFractionPart;
|
|
66 |
int iCongestionIntegerPart;
|
|
67 |
int iCongestionFractionPart;
|
|
68 |
};
|
|
69 |
|
|
70 |
struct TResult {
|
|
71 |
int iStandardResult;
|
|
72 |
int iExtendedCode;
|
|
73 |
int iSystemError;
|
|
74 |
};
|
|
75 |
|
|
76 |
/*******************************************************************************
|
|
77 |
*
|
|
78 |
* Interface
|
|
79 |
*
|
|
80 |
******************************************************************************/
|
|
81 |
program UUINTERFACE {
|
|
82 |
version UUINTERFACEVER {
|
|
83 |
|
|
84 |
/* Service Management */
|
|
85 |
int SS_STARTUPRPCSERVICE( TStartupInfo ) = 1;
|
|
86 |
int SC_SHUTDOWNRPCSERVICE( int ) = 2;
|
|
87 |
TComponentList LIST_DEVICES( void ) = 30;
|
|
88 |
|
|
89 |
/* Custom Interface */
|
|
90 |
TResult ST_SETDELAY( TConfigValue ) = 3;
|
|
91 |
TResult ST_SETDROPPERCENTAGE( TConfigValue ) = 4;
|
|
92 |
TResult ST_SETDUPLICATEPERCENTAGE( TConfigValue ) = 5;
|
|
93 |
TResult ST_SETBANDWIDTH( TConfigValue ) = 6;
|
|
94 |
TResult ST_SETDRD ( TConfigValue ) = 7;
|
|
95 |
TResult ST_CLEARSETTINGS( TConfigValue ) = 8;
|
|
96 |
TResult ST_STOPSERVICE( void ) = 9;
|
|
97 |
TResult ST_RESET( void ) = 10;
|
|
98 |
} = 2;
|
|
99 |
} =0x34630202;
|