|
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 /* Default timeout can be changed using clnt_control() */ |
|
25 static struct timeval TIMEOUT = { 25, 0 }; |
|
26 |
|
27 int * |
|
28 ss_startuprpcservice_2(argp, clnt) |
|
29 TStartupInfo *argp; |
|
30 CLIENT *clnt; |
|
31 { |
|
32 static int res; |
|
33 |
|
34 bzero((char *)&res, sizeof(res)); |
|
35 clnt_call(clnt, SS_STARTUPRPCSERVICE, xdr_uuinterface_TStartupInfo, argp, xdr_int, &res, TIMEOUT); |
|
36 return (&res); |
|
37 } |
|
38 |
|
39 |
|
40 int * |
|
41 sc_shutdownrpcservice_2(argp, clnt) |
|
42 int *argp; |
|
43 CLIENT *clnt; |
|
44 { |
|
45 static int res; |
|
46 |
|
47 bzero((char *)&res, sizeof(res)); |
|
48 clnt_call(clnt, SC_SHUTDOWNRPCSERVICE, xdr_int, argp, xdr_int, &res, TIMEOUT); |
|
49 return (&res); |
|
50 } |
|
51 |
|
52 |
|
53 TComponentList * |
|
54 list_devices_2(argp, clnt) |
|
55 void *argp; |
|
56 CLIENT *clnt; |
|
57 { |
|
58 static TComponentList res; |
|
59 |
|
60 bzero((char *)&res, sizeof(res)); |
|
61 clnt_call(clnt, LIST_DEVICES, xdr_void, argp, xdr_uuinterface_TComponentList, &res, TIMEOUT); |
|
62 return (&res); |
|
63 } |
|
64 |
|
65 |
|
66 TResult * |
|
67 st_setdelay_2(argp, clnt) |
|
68 TConfigValue *argp; |
|
69 CLIENT *clnt; |
|
70 { |
|
71 static TResult res; |
|
72 |
|
73 bzero((char *)&res, sizeof(res)); |
|
74 clnt_call(clnt, ST_SETDELAY, xdr_uuinterface_TConfigValue, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
75 return (&res); |
|
76 } |
|
77 |
|
78 |
|
79 TResult * |
|
80 st_setdroppercentage_2(argp, clnt) |
|
81 TConfigValue *argp; |
|
82 CLIENT *clnt; |
|
83 { |
|
84 static TResult res; |
|
85 |
|
86 bzero((char *)&res, sizeof(res)); |
|
87 clnt_call(clnt, ST_SETDROPPERCENTAGE, xdr_uuinterface_TConfigValue, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
88 return (&res); |
|
89 } |
|
90 |
|
91 |
|
92 TResult * |
|
93 st_setduplicatepercentage_2(argp, clnt) |
|
94 TConfigValue *argp; |
|
95 CLIENT *clnt; |
|
96 { |
|
97 static TResult res; |
|
98 |
|
99 bzero((char *)&res, sizeof(res)); |
|
100 clnt_call(clnt, ST_SETDUPLICATEPERCENTAGE, xdr_uuinterface_TConfigValue, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
101 return (&res); |
|
102 } |
|
103 |
|
104 |
|
105 TResult * |
|
106 st_setbandwidth_2(argp, clnt) |
|
107 TConfigValue *argp; |
|
108 CLIENT *clnt; |
|
109 { |
|
110 static TResult res; |
|
111 |
|
112 bzero((char *)&res, sizeof(res)); |
|
113 clnt_call(clnt, ST_SETBANDWIDTH, xdr_uuinterface_TConfigValue, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
114 return (&res); |
|
115 } |
|
116 |
|
117 |
|
118 TResult * |
|
119 st_setdrd_2(argp, clnt) |
|
120 TConfigValue *argp; |
|
121 CLIENT *clnt; |
|
122 { |
|
123 static TResult res; |
|
124 |
|
125 bzero((char *)&res, sizeof(res)); |
|
126 clnt_call(clnt, ST_SETDRD, xdr_uuinterface_TConfigValue, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
127 return (&res); |
|
128 } |
|
129 |
|
130 |
|
131 TResult * |
|
132 st_clearsettings_2(argp, clnt) |
|
133 TConfigValue *argp; |
|
134 CLIENT *clnt; |
|
135 { |
|
136 static TResult res; |
|
137 |
|
138 bzero((char *)&res, sizeof(res)); |
|
139 clnt_call(clnt, ST_CLEARSETTINGS, xdr_uuinterface_TConfigValue, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
140 return (&res); |
|
141 } |
|
142 |
|
143 |
|
144 TResult * |
|
145 st_stopservice_2(argp, clnt) |
|
146 void *argp; |
|
147 CLIENT *clnt; |
|
148 { |
|
149 static TResult res; |
|
150 |
|
151 bzero((char *)&res, sizeof(res)); |
|
152 clnt_call(clnt, ST_STOPSERVICE, xdr_void, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
153 return (&res); |
|
154 } |
|
155 |
|
156 |
|
157 TResult * |
|
158 st_reset_2(argp, clnt) |
|
159 void *argp; |
|
160 CLIENT *clnt; |
|
161 { |
|
162 static TResult res; |
|
163 |
|
164 bzero((char *)&res, sizeof(res)); |
|
165 clnt_call(clnt, ST_RESET, xdr_void, argp, xdr_uuinterface_TResult, &res, TIMEOUT); |
|
166 return (&res); |
|
167 } |
|
168 |