VirtualBox

source: vbox/trunk/src/VBox/Main/webservice/split-soapC.sed@ 20958

Last change on this file since 20958 was 20267, checked in by vboxsync, 16 years ago

Main: completed scriptable changes
Make VBox buildable on SMB share exported by Win box.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 7.4 KB
Line 
1# $Id: split-soapC.sed 20267 2009-06-04 11:27:27Z vboxsync $
2## @file
3# Sed script for splitting up the monsterous soapC.cpp
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22#
23# This implementations uses ranges.
24#
25# Since the ranges have an inclusive end criteria, we have to repeate
26# each location three times to make it work. It's a bit annoying but
27# it is much shorter than an approach using the hold space as a state
28# variable...
29#
30
31# Initialize the files.
321 b begin
33:begin_return
34
35:range1
361,/^SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element/ {
37 /^SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element/b banner2
38 w soapC-1.cpp
39 b done
40}
41
42:range2
43/^SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element/,/^SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete/ {
44 /^SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete/b banner3
45 w soapC-2.cpp
46 b done
47}
48
49:range3
50/^SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete/,/^SOAP_FMAC3 void\* SOAP_FMAC4 soap_class_id_enter/ {
51 /^SOAP_FMAC3 void\* SOAP_FMAC4 soap_class_id_enter/b banner4
52 w soapC-3.cpp
53 b done
54}
55
56:range4
57/^SOAP_FMAC3 void\* SOAP_FMAC4 soap_class_id_enter/,/^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IUSBDeviceFilter_USCOREsetMaskedInterfaces/ {
58 /^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IUSBDeviceFilter_USCOREsetMaskedInterfaces/b banner5
59 w soapC-4.cpp
60 b done
61}
62
63:range5
64/^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IUSBDeviceFilter_USCOREsetMaskedInterfaces/,/^void _vbox__IUSBDevice_USCOREgetRemoteResponse::soap_default/ {
65 /^void _vbox__IUSBDevice_USCOREgetRemoteResponse::soap_default/b banner6
66 w soapC-5.cpp
67 b done
68}
69
70:range6
71/^void _vbox__IUSBDevice_USCOREgetRemoteResponse::soap_default/,/^int _vbox__INetworkAdapter_USCOREdetachResponse::soap_out/ {
72 /^int _vbox__INetworkAdapter_USCOREdetachResponse::soap_out/b banner7
73 w soapC-6.cpp
74 b done
75}
76
77:range7
78/^int _vbox__INetworkAdapter_USCOREdetachResponse::soap_out/,/^void _vbox__IFloppyDrive_USCOREgetHostDriveResponse::soap_default/ {
79 /^void _vbox__IFloppyDrive_USCOREgetHostDriveResponse::soap_default/b banner8
80 w soapC-7.cpp
81 b done
82}
83
84:range8
85/^void _vbox__IFloppyDrive_USCOREgetHostDriveResponse::soap_default/,/^void _vbox__IMedium_USCOREsetLocationResponse::soap_default/ {
86 /^void _vbox__IMedium_USCOREsetLocationResponse::soap_default/b banner9
87 w soapC-8.cpp
88 b done
89}
90
91:range9
92/^void _vbox__IMedium_USCOREsetLocationResponse::soap_default/,/^void _vbox__ISystemProperties_USCOREgetMaxVDISizeResponse::soap_serialize/ {
93 /^void _vbox__ISystemProperties_USCOREgetMaxVDISizeResponse::soap_serialize/b banner10
94 w soapC-9.cpp
95 b done
96}
97
98:range10
99/^void _vbox__ISystemProperties_USCOREgetMaxVDISizeResponse::soap_serialize/,/^int _vbox__IConsole_USCOREdiscardCurrentSnapshotAndState::soap_out/ {
100 /^int _vbox__IConsole_USCOREdiscardCurrentSnapshotAndState::soap_out/b banner11
101 w soapC-10.cpp
102 b done
103}
104
105:range11
106/^int _vbox__IConsole_USCOREdiscardCurrentSnapshotAndState::soap_out/,/^void _vbox__IMachine_USCOREgetNextExtraDataKeyResponse::soap_default/ {
107 /^void _vbox__IMachine_USCOREgetNextExtraDataKeyResponse::soap_default/b banner12
108 w soapC-11.cpp
109 b done
110}
111
112:range12
113/^void _vbox__IMachine_USCOREgetNextExtraDataKeyResponse::soap_default/,/^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IMachine_USCOREgetVRAMSizeResponse/ {
114 /^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IMachine_USCOREgetVRAMSizeResponse/b banner13
115 w soapC-12.cpp
116 b done
117}
118
119:range13
120/^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IMachine_USCOREgetVRAMSizeResponse/,/^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IVirtualBox_USCOREgetNextExtraDataKey/ {
121 /^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IVirtualBox_USCOREgetNextExtraDataKey/b banner14
122 w soapC-13.cpp
123 b done
124}
125
126:range14
127/^SOAP_FMAC3 int SOAP_FMAC4 soap_out__vbox__IVirtualBox_USCOREgetNextExtraDataKey/,/^SOAP_FMAC3 int SOAP_FMAC4 soap_out___vbox__IVRDPServer_USCOREgetReuseSingleConnection/ {
128 /^SOAP_FMAC3 int SOAP_FMAC4 soap_out___vbox__IVRDPServer_USCOREgetReuseSingleConnection/b banner15
129 w soapC-14.cpp
130 b done
131}
132
133:range15
134/^SOAP_FMAC3 int SOAP_FMAC4 soap_out___vbox__IVRDPServer_USCOREgetReuseSingleConnection/,/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___vbox__IFloppyDrive_USCOREgetHostDrive/ {
135 /^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___vbox__IFloppyDrive_USCOREgetHostDrive/b banner16
136 w soapC-15.cpp
137 b done
138}
139
140:range16
141/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___vbox__IFloppyDrive_USCOREgetHostDrive/,/^SOAP_FMAC3 void SOAP_FMAC4 soap_default___vbox__IMachine_USCOREgetHWVirtExNestedPagingEnabled/ {
142 /^SOAP_FMAC3 void SOAP_FMAC4 soap_default___vbox__IMachine_USCOREgetHWVirtExNestedPagingEnabled/b banner17
143 w soapC-16.cpp
144 b done
145}
146
147:range17
148/^SOAP_FMAC3 void SOAP_FMAC4 soap_default___vbox__IMachine_USCOREgetHWVirtExNestedPagingEnabled/,/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IDVDDrive_USCOREgetPassthrough/ {
149 /^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IDVDDrive_USCOREgetPassthrough/b banner18
150 w soapC-17.cpp
151 b done
152}
153
154:range18
155/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IDVDDrive_USCOREgetPassthrough/,/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IConsole_USCOREpowerButtonResponse/ {
156 /^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IConsole_USCOREpowerButtonResponse/b banner19
157 w soapC-18.cpp
158 b done
159}
160
161:range19
162/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IConsole_USCOREpowerButtonResponse/,/^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IVirtualBox_USCOREsetExtraData/ {
163 /^SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_vbox__IVirtualBox_USCOREsetExtraData/b banner20
164 w soapC-19.cpp
165 b done
166}
167
168# the rest goes into the 20th file.
169:range20
170w soapC-20.cpp
171b done
172
173
174##
175# Subroutine called on the first line.
176:begin
177x
178s/^.*$/\#include \"soapH\.h\"/
179w soapC-2.cpp
180w soapC-3.cpp
181w soapC-4.cpp
182w soapC-5.cpp
183w soapC-6.cpp
184w soapC-7.cpp
185w soapC-8.cpp
186w soapC-9.cpp
187w soapC-10.cpp
188w soapC-11.cpp
189w soapC-12.cpp
190w soapC-13.cpp
191w soapC-14.cpp
192w soapC-15.cpp
193w soapC-16.cpp
194w soapC-17.cpp
195w soapC-18.cpp
196w soapC-19.cpp
197w soapC-20.cpp
198x
199i\
200info: soapC-1.cpp
201b begin_return
202
203##
204# Subroutines for writing info: soapC-x.cpp as we leave a range.
205:banner2
206i\
207info: soapC-2.cpp
208b range2
209
210:banner3
211i\
212info: soapC-3.cpp
213b range3
214
215:banner4
216i\
217info: soapC-4.cpp
218b range4
219
220:banner5
221i\
222info: soapC-5.cpp
223b range5
224
225:banner6
226i\
227info: soapC-6.cpp
228b range6
229
230:banner7
231i\
232info: soapC-7.cpp
233b range7
234
235:banner8
236i\
237info: soapC-8.cpp
238b range8
239
240:banner9
241i\
242info: soapC-9.cpp
243b range9
244
245:banner10
246i\
247info: soapC-10.cpp
248b range10
249
250:banner11
251i\
252info: soapC-11.cpp
253b range11
254
255:banner12
256i\
257info: soapC-12.cpp
258b range12
259
260:banner13
261i\
262info: soapC-13.cpp
263b range13
264
265:banner14
266i\
267info: soapC-14.cpp
268b range14
269
270:banner15
271i\
272info: soapC-15.cpp
273b range15
274
275:banner16
276i\
277info: soapC-16.cpp
278b range16
279
280:banner17
281i\
282info: soapC-17.cpp
283b range17
284
285:banner18
286i\
287info: soapC-18.cpp
288b range18
289
290:banner19
291i\
292info: soapC-19.cpp
293b range19
294
295:banner20
296i\
297info: soapC-20.cpp
298b range20
299
300
301:done
302d
303:end
304
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette