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 |
#include <rpc/rpc.h>
|
|
22 |
#include "uuinterface.h"
|
|
23 |
|
|
24 |
|
|
25 |
bool_t
|
|
26 |
xdr_uuinterface_TComponentList(xdrs, objp)
|
|
27 |
XDR *xdrs;
|
|
28 |
TComponentList *objp;
|
|
29 |
{
|
|
30 |
if (!xdr_array(xdrs, (char **)&objp->TComponentList_val, (u_int *)&objp->TComponentList_len, ~0, sizeof(int), (void*)xdr_int)) {
|
|
31 |
return (FALSE);
|
|
32 |
}
|
|
33 |
return (TRUE);
|
|
34 |
}
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
bool_t
|
|
40 |
xdr_uuinterface_TStartupInfo(xdrs, objp)
|
|
41 |
XDR *xdrs;
|
|
42 |
TStartupInfo *objp;
|
|
43 |
{
|
|
44 |
if (!xdr_int(xdrs, &objp->iEmpty)) {
|
|
45 |
return (FALSE);
|
|
46 |
}
|
|
47 |
return (TRUE);
|
|
48 |
}
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
bool_t
|
|
54 |
xdr_uuinterface_TConfigValue(xdrs, objp)
|
|
55 |
XDR *xdrs;
|
|
56 |
TConfigValue *objp;
|
|
57 |
{
|
|
58 |
if (!xdr_vector(xdrs, (char *)objp->iSourceAddress, X_MAX_ADDRESS_LENGTH, sizeof(char), (void*)xdr_char)) {
|
|
59 |
return (FALSE);
|
|
60 |
}
|
|
61 |
if (!xdr_vector(xdrs, (char *)objp->iDestinationAddress, X_MAX_ADDRESS_LENGTH, sizeof(char), (void*)xdr_char)) {
|
|
62 |
return (FALSE);
|
|
63 |
}
|
|
64 |
if (!xdr_int(xdrs, &objp->iProtocol)) {
|
|
65 |
return (FALSE);
|
|
66 |
}
|
|
67 |
if (!xdr_int(xdrs, &objp->iSrcPort)) {
|
|
68 |
return (FALSE);
|
|
69 |
}
|
|
70 |
if (!xdr_int(xdrs, &objp->iDstPort)) {
|
|
71 |
return (FALSE);
|
|
72 |
}
|
|
73 |
if (!xdr_int(xdrs, &objp->iValueIntegerPart)) {
|
|
74 |
return (FALSE);
|
|
75 |
}
|
|
76 |
if (!xdr_int(xdrs, &objp->iValueFractionPart)) {
|
|
77 |
return (FALSE);
|
|
78 |
}
|
|
79 |
if (!xdr_int(xdrs, &objp->iSigmaIntegerPart)) {
|
|
80 |
return (FALSE);
|
|
81 |
}
|
|
82 |
if (!xdr_int(xdrs, &objp->iSigmaFractionPart)) {
|
|
83 |
return (FALSE);
|
|
84 |
}
|
|
85 |
if (!xdr_int(xdrs, &objp->iCorrelationIntegerPart)) {
|
|
86 |
return (FALSE);
|
|
87 |
}
|
|
88 |
if (!xdr_int(xdrs, &objp->iCorrelationFractionPart)) {
|
|
89 |
return (FALSE);
|
|
90 |
}
|
|
91 |
if (!xdr_int(xdrs, &objp->iMaximumValueIntegerPart)) {
|
|
92 |
return (FALSE);
|
|
93 |
}
|
|
94 |
if (!xdr_int(xdrs, &objp->iMaximumValueFractionPart)) {
|
|
95 |
return (FALSE);
|
|
96 |
}
|
|
97 |
if (!xdr_int(xdrs, &objp->iCongestionIntegerPart)) {
|
|
98 |
return (FALSE);
|
|
99 |
}
|
|
100 |
if (!xdr_int(xdrs, &objp->iCongestionFractionPart)) {
|
|
101 |
return (FALSE);
|
|
102 |
}
|
|
103 |
return (TRUE);
|
|
104 |
}
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
bool_t
|
|
110 |
xdr_uuinterface_TResult(xdrs, objp)
|
|
111 |
XDR *xdrs;
|
|
112 |
TResult *objp;
|
|
113 |
{
|
|
114 |
if (!xdr_int(xdrs, &objp->iStandardResult)) {
|
|
115 |
return (FALSE);
|
|
116 |
}
|
|
117 |
if (!xdr_int(xdrs, &objp->iExtendedCode)) {
|
|
118 |
return (FALSE);
|
|
119 |
}
|
|
120 |
if (!xdr_int(xdrs, &objp->iSystemError)) {
|
|
121 |
return (FALSE);
|
|
122 |
}
|
|
123 |
return (TRUE);
|
|
124 |
}
|
|
125 |
|
|
126 |
|