mupnp 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +165 -0
- data/README.md +27 -0
- data/ext/upnp_wrap.c +376 -376
- data/lib/UPnP/version.rb +3 -0
- metadata +40 -46
- data/README +0 -18
- data/Rakefile +0 -80
- data/test/UPnP/tc_upnp.rb +0 -20
data/LICENSE
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
|
+
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
6
|
+
of this license document, but changing it is not allowed.
|
7
|
+
|
8
|
+
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
11
|
+
License, supplemented by the additional permissions listed below.
|
12
|
+
|
13
|
+
0. Additional Definitions.
|
14
|
+
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
+
General Public License.
|
18
|
+
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
20
|
+
other than an Application or a Combined Work as defined below.
|
21
|
+
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
+
of using an interface provided by the Library.
|
26
|
+
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
28
|
+
Application with the Library. The particular version of the Library
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
30
|
+
Version".
|
31
|
+
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
35
|
+
based on the Application, and not on the Linked Version.
|
36
|
+
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
38
|
+
object code and/or source code for the Application, including any data
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
41
|
+
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
43
|
+
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
46
|
+
|
47
|
+
2. Conveying Modified Versions.
|
48
|
+
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
51
|
+
that uses the facility (other than as an argument passed when the
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
53
|
+
version:
|
54
|
+
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
56
|
+
ensure that, in the event an Application does not supply the
|
57
|
+
function or data, the facility still operates, and performs
|
58
|
+
whatever part of its purpose remains meaningful, or
|
59
|
+
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
61
|
+
this License applicable to that copy.
|
62
|
+
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
64
|
+
|
65
|
+
The object code form of an Application may incorporate material from
|
66
|
+
a header file that is part of the Library. You may convey such object
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
68
|
+
material is not limited to numerical parameters, data structure
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
71
|
+
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
73
|
+
Library is used in it and that the Library and its use are
|
74
|
+
covered by this License.
|
75
|
+
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
+
document.
|
78
|
+
|
79
|
+
4. Combined Works.
|
80
|
+
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
82
|
+
taken together, effectively do not restrict modification of the
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
85
|
+
the following:
|
86
|
+
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
88
|
+
the Library is used in it and that the Library and its use are
|
89
|
+
covered by this License.
|
90
|
+
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
+
document.
|
93
|
+
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
95
|
+
execution, include the copyright notice for the Library among
|
96
|
+
these notices, as well as a reference directing the user to the
|
97
|
+
copies of the GNU GPL and this license document.
|
98
|
+
|
99
|
+
d) Do one of the following:
|
100
|
+
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
+
License, and the Corresponding Application Code in a form
|
103
|
+
suitable for, and under terms that permit, the user to
|
104
|
+
recombine or relink the Application with a modified version of
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
107
|
+
Corresponding Source.
|
108
|
+
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
+
a copy of the Library already present on the user's computer
|
112
|
+
system, and (b) will operate properly with a modified version
|
113
|
+
of the Library that is interface-compatible with the Linked
|
114
|
+
Version.
|
115
|
+
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
117
|
+
be required to provide such information under section 6 of the
|
118
|
+
GNU GPL, and only to the extent that such information is
|
119
|
+
necessary to install and execute a modified version of the
|
120
|
+
Combined Work produced by recombining or relinking the
|
121
|
+
Application with a modified version of the Linked Version. (If
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
126
|
+
for conveying Corresponding Source.)
|
127
|
+
|
128
|
+
5. Combined Libraries.
|
129
|
+
|
130
|
+
You may place library facilities that are a work based on the
|
131
|
+
Library side by side in a single library together with other library
|
132
|
+
facilities that are not Applications and are not covered by this
|
133
|
+
License, and convey such a combined library under terms of your
|
134
|
+
choice, if you do both of the following:
|
135
|
+
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
137
|
+
on the Library, uncombined with any other library facilities,
|
138
|
+
conveyed under the terms of this License.
|
139
|
+
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
141
|
+
is a work based on the Library, and explaining where to find the
|
142
|
+
accompanying uncombined form of the same work.
|
143
|
+
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
+
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
148
|
+
versions will be similar in spirit to the present version, but may
|
149
|
+
differ in detail to address new problems or concerns.
|
150
|
+
|
151
|
+
Each version is given a distinguishing version number. If the
|
152
|
+
Library as you received it specifies that a certain numbered version
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
154
|
+
applies to it, you have the option of following the terms and
|
155
|
+
conditions either of that published version or of any later version
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
160
|
+
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
164
|
+
permanent authorization for you to choose that version for the
|
165
|
+
Library.
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# UPnP
|
2
|
+
|
3
|
+
The gem is based on the work of Thomas Bernard, miniupnp library
|
4
|
+
(http://miniupnp.free.fr/). The source code and his license can be found in the
|
5
|
+
ext directory.
|
6
|
+
|
7
|
+
There is a little modification in the code. In the original code there was a
|
8
|
+
compile time switch to receive answer only on the UPnP ports. It is sometimes
|
9
|
+
useful with certain firewalls to have it enabled, but it may give some problems
|
10
|
+
with Windows XP. So i have changed it in a run time switch to be passed to
|
11
|
+
upnpDiscover function. By default it wants to receive answer on the same port
|
12
|
+
(firewall friendly). If no answer are received from some devices, then maybe a
|
13
|
+
test with them off (microsoft friendly, may get blocked by firewalls).
|
14
|
+
|
15
|
+
The Windows version will be made as long as I have some volunteer that can
|
16
|
+
provide me the precompiled code for Windows. The library is in the module called
|
17
|
+
MiniUPnP, in it you can find all the library functions. The module UPnP is a
|
18
|
+
wrapper that simplify the access to the underlaying library.
|
19
|
+
|
20
|
+
The interface was automatically built with swig (http://www.swig.org/), the
|
21
|
+
interface file is upnp.i
|
22
|
+
|
23
|
+
|
24
|
+
## About
|
25
|
+
|
26
|
+
* Original Author: [Dario Meloni](mailto:mellon85@gmail.com)
|
27
|
+
* License: LGPL
|
data/ext/upnp_wrap.c
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
3
|
* Version 1.3.31
|
4
|
-
*
|
5
|
-
* This file is not intended to be easily readable and contains a number of
|
4
|
+
*
|
5
|
+
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
+
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
#define SWIGRUBY
|
@@ -20,10 +20,10 @@
|
|
20
20
|
# if (__SUNPRO_CC <= 0x560)
|
21
21
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
22
22
|
# else
|
23
|
-
# define SWIGTEMPLATEDISAMBIGUATOR
|
23
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
24
24
|
# endif
|
25
25
|
# else
|
26
|
-
# define SWIGTEMPLATEDISAMBIGUATOR
|
26
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
27
27
|
# endif
|
28
28
|
#endif
|
29
29
|
|
@@ -40,14 +40,14 @@
|
|
40
40
|
#ifndef SWIGUNUSED
|
41
41
|
# if defined(__GNUC__)
|
42
42
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
43
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
43
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
44
44
|
# else
|
45
45
|
# define SWIGUNUSED
|
46
46
|
# endif
|
47
47
|
# elif defined(__ICC)
|
48
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
48
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
49
49
|
# else
|
50
|
-
# define SWIGUNUSED
|
50
|
+
# define SWIGUNUSED
|
51
51
|
# endif
|
52
52
|
#endif
|
53
53
|
|
@@ -55,7 +55,7 @@
|
|
55
55
|
# ifdef __cplusplus
|
56
56
|
# define SWIGUNUSEDPARM(p)
|
57
57
|
# else
|
58
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
58
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
59
59
|
# endif
|
60
60
|
#endif
|
61
61
|
|
@@ -98,7 +98,7 @@
|
|
98
98
|
# define SWIGSTDCALL __stdcall
|
99
99
|
# else
|
100
100
|
# define SWIGSTDCALL
|
101
|
-
# endif
|
101
|
+
# endif
|
102
102
|
#endif
|
103
103
|
|
104
104
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -117,10 +117,10 @@
|
|
117
117
|
# if (__SUNPRO_CC <= 0x560)
|
118
118
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
119
119
|
# else
|
120
|
-
# define SWIGTEMPLATEDISAMBIGUATOR
|
120
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
121
121
|
# endif
|
122
122
|
# else
|
123
|
-
# define SWIGTEMPLATEDISAMBIGUATOR
|
123
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
124
124
|
# endif
|
125
125
|
#endif
|
126
126
|
|
@@ -137,14 +137,14 @@
|
|
137
137
|
#ifndef SWIGUNUSED
|
138
138
|
# if defined(__GNUC__)
|
139
139
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
140
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
140
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
141
141
|
# else
|
142
142
|
# define SWIGUNUSED
|
143
143
|
# endif
|
144
144
|
# elif defined(__ICC)
|
145
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
145
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
146
146
|
# else
|
147
|
-
# define SWIGUNUSED
|
147
|
+
# define SWIGUNUSED
|
148
148
|
# endif
|
149
149
|
#endif
|
150
150
|
|
@@ -152,7 +152,7 @@
|
|
152
152
|
# ifdef __cplusplus
|
153
153
|
# define SWIGUNUSEDPARM(p)
|
154
154
|
# else
|
155
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
155
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
156
156
|
# endif
|
157
157
|
#endif
|
158
158
|
|
@@ -195,7 +195,7 @@
|
|
195
195
|
# define SWIGSTDCALL __stdcall
|
196
196
|
# else
|
197
197
|
# define SWIGSTDCALL
|
198
|
-
# endif
|
198
|
+
# endif
|
199
199
|
#endif
|
200
200
|
|
201
201
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -227,7 +227,7 @@
|
|
227
227
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
228
228
|
creating a static or dynamic library from the swig runtime code.
|
229
229
|
In 99.9% of the cases, swig just needs to declare them as 'static'.
|
230
|
-
|
230
|
+
|
231
231
|
But only do this if is strictly necessary, ie, if you have problems
|
232
232
|
with your compiler or so.
|
233
233
|
*/
|
@@ -252,16 +252,16 @@
|
|
252
252
|
#define SWIG_POINTER_OWN 0x1
|
253
253
|
|
254
254
|
|
255
|
-
/*
|
255
|
+
/*
|
256
256
|
Flags/methods for returning states.
|
257
|
-
|
258
|
-
The swig conversion methods, as ConvertPtr, return and integer
|
257
|
+
|
258
|
+
The swig conversion methods, as ConvertPtr, return and integer
|
259
259
|
that tells if the conversion was successful or not. And if not,
|
260
260
|
an error code can be returned (see swigerrors.swg for the codes).
|
261
|
-
|
261
|
+
|
262
262
|
Use the following macros/flags to set or process the returning
|
263
263
|
states.
|
264
|
-
|
264
|
+
|
265
265
|
In old swig versions, you usually write code as:
|
266
266
|
|
267
267
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
@@ -294,23 +294,23 @@
|
|
294
294
|
} else {
|
295
295
|
// fail code
|
296
296
|
}
|
297
|
-
|
297
|
+
|
298
298
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
299
299
|
identify the case and take care of the deallocation. Of course that
|
300
300
|
requires also to SWIG_ConvertPtr to return new result values, as
|
301
301
|
|
302
|
-
int SWIG_ConvertPtr(obj, ptr,...) {
|
303
|
-
if (<obj is ok>) {
|
304
|
-
if (<need new object>) {
|
305
|
-
*ptr = <ptr to new allocated object>;
|
306
|
-
return SWIG_NEWOBJ;
|
307
|
-
} else {
|
308
|
-
*ptr = <ptr to old object>;
|
309
|
-
return SWIG_OLDOBJ;
|
310
|
-
}
|
311
|
-
} else {
|
312
|
-
return SWIG_BADOBJ;
|
313
|
-
}
|
302
|
+
int SWIG_ConvertPtr(obj, ptr,...) {
|
303
|
+
if (<obj is ok>) {
|
304
|
+
if (<need new object>) {
|
305
|
+
*ptr = <ptr to new allocated object>;
|
306
|
+
return SWIG_NEWOBJ;
|
307
|
+
} else {
|
308
|
+
*ptr = <ptr to old object>;
|
309
|
+
return SWIG_OLDOBJ;
|
310
|
+
}
|
311
|
+
} else {
|
312
|
+
return SWIG_BADOBJ;
|
313
|
+
}
|
314
314
|
}
|
315
315
|
|
316
316
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
@@ -324,7 +324,7 @@
|
|
324
324
|
int fooi(int);
|
325
325
|
|
326
326
|
and you call
|
327
|
-
|
327
|
+
|
328
328
|
food(1) // cast rank '1' (1 -> 1.0)
|
329
329
|
fooi(1) // cast rank '0'
|
330
330
|
|
@@ -332,10 +332,10 @@
|
|
332
332
|
|
333
333
|
|
334
334
|
*/
|
335
|
-
#define SWIG_OK (0)
|
335
|
+
#define SWIG_OK (0)
|
336
336
|
#define SWIG_ERROR (-1)
|
337
337
|
#define SWIG_IsOK(r) (r >= 0)
|
338
|
-
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
338
|
+
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
339
339
|
|
340
340
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
341
341
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
@@ -367,11 +367,11 @@
|
|
367
367
|
# endif
|
368
368
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
369
369
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
370
|
-
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
370
|
+
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
371
371
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
372
372
|
}
|
373
|
-
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
374
|
-
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
373
|
+
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
374
|
+
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
375
375
|
}
|
376
376
|
#else /* no cast-rank mode */
|
377
377
|
# define SWIG_AddCast
|
@@ -420,7 +420,7 @@ typedef struct swig_module_info {
|
|
420
420
|
void *clientdata; /* Language specific module data */
|
421
421
|
} swig_module_info;
|
422
422
|
|
423
|
-
/*
|
423
|
+
/*
|
424
424
|
Compare two type names skipping the space characters, therefore
|
425
425
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
426
426
|
|
@@ -521,7 +521,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
|
|
521
521
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
|
522
522
|
}
|
523
523
|
|
524
|
-
/*
|
524
|
+
/*
|
525
525
|
Dynamic pointer casting. Down an inheritance hierarchy
|
526
526
|
*/
|
527
527
|
SWIGRUNTIME swig_type_info *
|
@@ -565,7 +565,7 @@ SWIG_TypePrettyName(const swig_type_info *type) {
|
|
565
565
|
return type->name;
|
566
566
|
}
|
567
567
|
|
568
|
-
/*
|
568
|
+
/*
|
569
569
|
Set the clientdata field for a type
|
570
570
|
*/
|
571
571
|
SWIGRUNTIME void
|
@@ -573,14 +573,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
573
573
|
swig_cast_info *cast = ti->cast;
|
574
574
|
/* if (ti->clientdata == clientdata) return; */
|
575
575
|
ti->clientdata = clientdata;
|
576
|
-
|
576
|
+
|
577
577
|
while (cast) {
|
578
578
|
if (!cast->converter) {
|
579
579
|
swig_type_info *tc = cast->type;
|
580
580
|
if (!tc->clientdata) {
|
581
581
|
SWIG_TypeClientData(tc, clientdata);
|
582
582
|
}
|
583
|
-
}
|
583
|
+
}
|
584
584
|
cast = cast->next;
|
585
585
|
}
|
586
586
|
}
|
@@ -589,18 +589,18 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
589
589
|
SWIG_TypeClientData(ti, clientdata);
|
590
590
|
ti->owndata = 1;
|
591
591
|
}
|
592
|
-
|
592
|
+
|
593
593
|
/*
|
594
594
|
Search for a swig_type_info structure only by mangled name
|
595
595
|
Search is a O(log #types)
|
596
|
-
|
597
|
-
We start searching at module start, and finish searching when start == end.
|
596
|
+
|
597
|
+
We start searching at module start, and finish searching when start == end.
|
598
598
|
Note: if start == end at the beginning of the function, we go all the way around
|
599
599
|
the circular list.
|
600
600
|
*/
|
601
601
|
SWIGRUNTIME swig_type_info *
|
602
|
-
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
603
|
-
swig_module_info *end,
|
602
|
+
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
603
|
+
swig_module_info *end,
|
604
604
|
const char *name) {
|
605
605
|
swig_module_info *iter = start;
|
606
606
|
do {
|
@@ -609,11 +609,11 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
609
609
|
register size_t r = iter->size - 1;
|
610
610
|
do {
|
611
611
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
612
|
-
register size_t i = (l + r) >> 1;
|
612
|
+
register size_t i = (l + r) >> 1;
|
613
613
|
const char *iname = iter->types[i]->name;
|
614
614
|
if (iname) {
|
615
615
|
register int compare = strcmp(name, iname);
|
616
|
-
if (compare == 0) {
|
616
|
+
if (compare == 0) {
|
617
617
|
return iter->types[i];
|
618
618
|
} else if (compare < 0) {
|
619
619
|
if (i) {
|
@@ -638,14 +638,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
638
638
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
639
639
|
It first searches the mangled names of the types, which is a O(log #types)
|
640
640
|
If a type is not found it then searches the human readable names, which is O(#types).
|
641
|
-
|
642
|
-
We start searching at module start, and finish searching when start == end.
|
641
|
+
|
642
|
+
We start searching at module start, and finish searching when start == end.
|
643
643
|
Note: if start == end at the beginning of the function, we go all the way around
|
644
644
|
the circular list.
|
645
645
|
*/
|
646
646
|
SWIGRUNTIME swig_type_info *
|
647
|
-
SWIG_TypeQueryModule(swig_module_info *start,
|
648
|
-
swig_module_info *end,
|
647
|
+
SWIG_TypeQueryModule(swig_module_info *start,
|
648
|
+
swig_module_info *end,
|
649
649
|
const char *name) {
|
650
650
|
/* STEP 1: Search the name field using binary search */
|
651
651
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
@@ -664,12 +664,12 @@ SWIG_TypeQueryModule(swig_module_info *start,
|
|
664
664
|
iter = iter->next;
|
665
665
|
} while (iter != end);
|
666
666
|
}
|
667
|
-
|
667
|
+
|
668
668
|
/* neither found a match */
|
669
669
|
return 0;
|
670
670
|
}
|
671
671
|
|
672
|
-
/*
|
672
|
+
/*
|
673
673
|
Pack binary data into a string
|
674
674
|
*/
|
675
675
|
SWIGRUNTIME char *
|
@@ -685,7 +685,7 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
685
685
|
return c;
|
686
686
|
}
|
687
687
|
|
688
|
-
/*
|
688
|
+
/*
|
689
689
|
Unpack binary data from a string
|
690
690
|
*/
|
691
691
|
SWIGRUNTIME const char *
|
@@ -699,21 +699,21 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
699
699
|
uu = ((d - '0') << 4);
|
700
700
|
else if ((d >= 'a') && (d <= 'f'))
|
701
701
|
uu = ((d - ('a'-10)) << 4);
|
702
|
-
else
|
702
|
+
else
|
703
703
|
return (char *) 0;
|
704
704
|
d = *(c++);
|
705
705
|
if ((d >= '0') && (d <= '9'))
|
706
706
|
uu |= (d - '0');
|
707
707
|
else if ((d >= 'a') && (d <= 'f'))
|
708
708
|
uu |= (d - ('a'-10));
|
709
|
-
else
|
709
|
+
else
|
710
710
|
return (char *) 0;
|
711
711
|
*u = uu;
|
712
712
|
}
|
713
713
|
return c;
|
714
714
|
}
|
715
715
|
|
716
|
-
/*
|
716
|
+
/*
|
717
717
|
Pack 'void *' into a string buffer.
|
718
718
|
*/
|
719
719
|
SWIGRUNTIME char *
|
@@ -773,18 +773,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
773
773
|
#endif
|
774
774
|
|
775
775
|
/* Errors in SWIG */
|
776
|
-
#define SWIG_UnknownError -1
|
777
|
-
#define SWIG_IOError -2
|
778
|
-
#define SWIG_RuntimeError -3
|
779
|
-
#define SWIG_IndexError -4
|
780
|
-
#define SWIG_TypeError -5
|
781
|
-
#define SWIG_DivisionByZero -6
|
782
|
-
#define SWIG_OverflowError -7
|
783
|
-
#define SWIG_SyntaxError -8
|
784
|
-
#define SWIG_ValueError -9
|
776
|
+
#define SWIG_UnknownError -1
|
777
|
+
#define SWIG_IOError -2
|
778
|
+
#define SWIG_RuntimeError -3
|
779
|
+
#define SWIG_IndexError -4
|
780
|
+
#define SWIG_TypeError -5
|
781
|
+
#define SWIG_DivisionByZero -6
|
782
|
+
#define SWIG_OverflowError -7
|
783
|
+
#define SWIG_SyntaxError -8
|
784
|
+
#define SWIG_ValueError -9
|
785
785
|
#define SWIG_SystemError -10
|
786
786
|
#define SWIG_AttributeError -11
|
787
|
-
#define SWIG_MemoryError -12
|
787
|
+
#define SWIG_MemoryError -12
|
788
788
|
#define SWIG_NullReferenceError -13
|
789
789
|
|
790
790
|
|
@@ -839,7 +839,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
839
839
|
* can be passed as an argument to API functions like Data_Wrap_Struct()
|
840
840
|
* and Data_Make_Struct().
|
841
841
|
*/
|
842
|
-
|
842
|
+
|
843
843
|
#ifdef __cplusplus
|
844
844
|
# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
|
845
845
|
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
@@ -900,7 +900,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
900
900
|
exceptions. Note this only works for C++ since a global cannot be
|
901
901
|
initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
|
902
902
|
|
903
|
-
SWIGINTERN VALUE
|
903
|
+
SWIGINTERN VALUE
|
904
904
|
getNullReferenceError(void) {
|
905
905
|
static int init = 0;
|
906
906
|
static VALUE rb_eNullReferenceError ;
|
@@ -909,9 +909,9 @@ getNullReferenceError(void) {
|
|
909
909
|
rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
910
910
|
}
|
911
911
|
return rb_eNullReferenceError;
|
912
|
-
}
|
912
|
+
}
|
913
913
|
|
914
|
-
SWIGINTERN VALUE
|
914
|
+
SWIGINTERN VALUE
|
915
915
|
getObjectPreviouslyDeletedError(void) {
|
916
916
|
static int init = 0;
|
917
917
|
static VALUE rb_eObjectPreviouslyDeleted ;
|
@@ -920,7 +920,7 @@ getObjectPreviouslyDeletedError(void) {
|
|
920
920
|
rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
|
921
921
|
}
|
922
922
|
return rb_eObjectPreviouslyDeleted;
|
923
|
-
}
|
923
|
+
}
|
924
924
|
|
925
925
|
|
926
926
|
SWIGINTERN VALUE
|
@@ -984,7 +984,7 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
984
984
|
*
|
985
985
|
* rubytracking.swg
|
986
986
|
*
|
987
|
-
* This file contains support for tracking mappings from
|
987
|
+
* This file contains support for tracking mappings from
|
988
988
|
* Ruby objects to C++ objects. This functionality is needed
|
989
989
|
* to implement mark functions for Ruby's mark and sweep
|
990
990
|
* garbage collector.
|
@@ -998,22 +998,22 @@ extern "C" {
|
|
998
998
|
/* Global Ruby hash table to store Trackings from C/C++
|
999
999
|
structs to Ruby Objects. */
|
1000
1000
|
static VALUE swig_ruby_trackings;
|
1001
|
-
|
1002
|
-
/* Global variable that stores a reference to the ruby
|
1003
|
-
hash table delete function. */
|
1004
|
-
static ID swig_ruby_hash_delete = 0;
|
1001
|
+
|
1002
|
+
/* Global variable that stores a reference to the ruby
|
1003
|
+
hash table delete function. */
|
1004
|
+
static ID swig_ruby_hash_delete = 0;
|
1005
1005
|
|
1006
1006
|
/* Setup a Ruby hash table to store Trackings */
|
1007
1007
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1008
|
-
/* Create a ruby hash table to store Trackings from C++
|
1008
|
+
/* Create a ruby hash table to store Trackings from C++
|
1009
1009
|
objects to Ruby objects. Also make sure to tell
|
1010
1010
|
the garabage collector about the hash table. */
|
1011
1011
|
swig_ruby_trackings = rb_hash_new();
|
1012
1012
|
rb_gc_register_address(&swig_ruby_trackings);
|
1013
|
-
|
1014
|
-
/* Now store a reference to the hash table delete function
|
1015
|
-
so that we only have to look it up once.*/
|
1016
|
-
swig_ruby_hash_delete = rb_intern("delete");
|
1013
|
+
|
1014
|
+
/* Now store a reference to the hash table delete function
|
1015
|
+
so that we only have to look it up once.*/
|
1016
|
+
swig_ruby_hash_delete = rb_intern("delete");
|
1017
1017
|
}
|
1018
1018
|
|
1019
1019
|
/* Get a Ruby number to reference a pointer */
|
@@ -1074,7 +1074,7 @@ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
1074
1074
|
|
1075
1075
|
/* Now lookup the value stored in the global hash table */
|
1076
1076
|
VALUE value = rb_hash_aref(swig_ruby_trackings, key);
|
1077
|
-
|
1077
|
+
|
1078
1078
|
if (value == Qnil) {
|
1079
1079
|
/* No object exists - return nil. */
|
1080
1080
|
return Qnil;
|
@@ -1182,24 +1182,24 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1182
1182
|
|
1183
1183
|
/* Runtime API */
|
1184
1184
|
|
1185
|
-
#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
|
1185
|
+
#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
|
1186
1186
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
|
1187
1187
|
|
1188
1188
|
|
1189
1189
|
/* Error manipulation */
|
1190
1190
|
|
1191
|
-
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1191
|
+
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1192
1192
|
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
|
1193
|
-
#define SWIG_fail goto fail
|
1193
|
+
#define SWIG_fail goto fail
|
1194
1194
|
|
1195
1195
|
|
1196
1196
|
/* Ruby-specific SWIG API */
|
1197
1197
|
|
1198
|
-
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1198
|
+
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1199
1199
|
#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
|
1200
1200
|
#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
|
1201
|
-
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1202
|
-
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1201
|
+
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1202
|
+
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1203
1203
|
|
1204
1204
|
|
1205
1205
|
/* -----------------------------------------------------------------------------
|
@@ -1226,7 +1226,7 @@ static VALUE _mSWIG = Qnil;
|
|
1226
1226
|
static VALUE _cSWIG_Pointer = Qnil;
|
1227
1227
|
static VALUE swig_runtime_data_type_pointer = Qnil;
|
1228
1228
|
|
1229
|
-
SWIGRUNTIME VALUE
|
1229
|
+
SWIGRUNTIME VALUE
|
1230
1230
|
getExceptionClass(void) {
|
1231
1231
|
static int init = 0;
|
1232
1232
|
static VALUE rubyExceptionClass ;
|
@@ -1235,7 +1235,7 @@ getExceptionClass(void) {
|
|
1235
1235
|
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
1236
1236
|
}
|
1237
1237
|
return rubyExceptionClass;
|
1238
|
-
}
|
1238
|
+
}
|
1239
1239
|
|
1240
1240
|
/* This code checks to see if the Ruby object being raised as part
|
1241
1241
|
of an exception inherits from the Ruby class Exception. If so,
|
@@ -1279,30 +1279,30 @@ SWIG_Ruby_define_class(swig_type_info *type)
|
|
1279
1279
|
SWIGRUNTIME VALUE
|
1280
1280
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
1281
1281
|
{
|
1282
|
-
int own = flags & SWIG_POINTER_OWN;
|
1283
|
-
|
1282
|
+
int own = flags & SWIG_POINTER_OWN;
|
1283
|
+
|
1284
1284
|
char *klass_name;
|
1285
1285
|
swig_class *sklass;
|
1286
1286
|
VALUE klass;
|
1287
1287
|
VALUE obj;
|
1288
|
-
|
1288
|
+
|
1289
1289
|
if (!ptr)
|
1290
1290
|
return Qnil;
|
1291
|
-
|
1291
|
+
|
1292
1292
|
if (type->clientdata) {
|
1293
1293
|
sklass = (swig_class *) type->clientdata;
|
1294
|
-
|
1294
|
+
|
1295
1295
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
1296
1296
|
if (sklass->trackObjects) {
|
1297
1297
|
obj = SWIG_RubyInstanceFor(ptr);
|
1298
|
-
|
1298
|
+
|
1299
1299
|
/* Check the object's type and make sure it has the correct type.
|
1300
|
-
It might not in cases where methods do things like
|
1300
|
+
It might not in cases where methods do things like
|
1301
1301
|
downcast methods. */
|
1302
1302
|
if (obj != Qnil) {
|
1303
1303
|
VALUE value = rb_iv_get(obj, "__swigtype__");
|
1304
1304
|
char* type_name = RSTRING_PTR(value);
|
1305
|
-
|
1305
|
+
|
1306
1306
|
if (strcmp(type->name, type_name) == 0) {
|
1307
1307
|
return obj;
|
1308
1308
|
}
|
@@ -1324,7 +1324,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1324
1324
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
1325
1325
|
}
|
1326
1326
|
rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
|
1327
|
-
|
1327
|
+
|
1328
1328
|
return obj;
|
1329
1329
|
}
|
1330
1330
|
|
@@ -1379,13 +1379,13 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1379
1379
|
}
|
1380
1380
|
Data_Get_Struct(obj, void, vptr);
|
1381
1381
|
}
|
1382
|
-
|
1382
|
+
|
1383
1383
|
if (own) *own = RDATA(obj)->dfree;
|
1384
|
-
|
1384
|
+
|
1385
1385
|
/* Check to see if the input object is giving up ownership
|
1386
1386
|
of the underlying C struct or C++ object. If so then we
|
1387
|
-
need to reset the destructor since the Ruby object no
|
1388
|
-
longer owns the underlying C++ object.*/
|
1387
|
+
need to reset the destructor since the Ruby object no
|
1388
|
+
longer owns the underlying C++ object.*/
|
1389
1389
|
if (flags & SWIG_POINTER_DISOWN) {
|
1390
1390
|
/* Is tracking on for this class? */
|
1391
1391
|
int track = 0;
|
@@ -1393,16 +1393,16 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1393
1393
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
1394
1394
|
track = sklass->trackObjects;
|
1395
1395
|
}
|
1396
|
-
|
1396
|
+
|
1397
1397
|
if (track) {
|
1398
1398
|
/* We are tracking objects for this class. Thus we change the destructor
|
1399
1399
|
* to SWIG_RubyRemoveTracking. This allows us to
|
1400
1400
|
* remove the mapping from the C++ to Ruby object
|
1401
1401
|
* when the Ruby object is garbage collected. If we don't
|
1402
|
-
* do this, then it is possible we will return a reference
|
1402
|
+
* do this, then it is possible we will return a reference
|
1403
1403
|
* to a Ruby object that no longer exists thereby crashing Ruby. */
|
1404
1404
|
RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
|
1405
|
-
} else {
|
1405
|
+
} else {
|
1406
1406
|
RDATA(obj)->dfree = 0;
|
1407
1407
|
}
|
1408
1408
|
}
|
@@ -1430,7 +1430,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1430
1430
|
} else {
|
1431
1431
|
*ptr = vptr;
|
1432
1432
|
}
|
1433
|
-
|
1433
|
+
|
1434
1434
|
return SWIG_OK;
|
1435
1435
|
}
|
1436
1436
|
|
@@ -1485,7 +1485,7 @@ SWIG_Ruby_GetModule(void)
|
|
1485
1485
|
|
1486
1486
|
/* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
|
1487
1487
|
rb_gv_set("VERBOSE", Qfalse);
|
1488
|
-
|
1488
|
+
|
1489
1489
|
/* first check if pointer already created */
|
1490
1490
|
pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
|
1491
1491
|
if (pointer != Qnil) {
|
@@ -1497,7 +1497,7 @@ SWIG_Ruby_GetModule(void)
|
|
1497
1497
|
return ret;
|
1498
1498
|
}
|
1499
1499
|
|
1500
|
-
SWIGRUNTIME void
|
1500
|
+
SWIGRUNTIME void
|
1501
1501
|
SWIG_Ruby_SetModule(swig_module_info *pointer)
|
1502
1502
|
{
|
1503
1503
|
/* register a new class */
|
@@ -1516,9 +1516,9 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
1516
1516
|
|
1517
1517
|
|
1518
1518
|
|
1519
|
-
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1519
|
+
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1520
1520
|
|
1521
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1521
|
+
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1522
1522
|
|
1523
1523
|
|
1524
1524
|
|
@@ -1543,26 +1543,26 @@ static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
|
|
1543
1543
|
|
1544
1544
|
static VALUE mMiniUPnP;
|
1545
1545
|
|
1546
|
-
#define SWIGVERSION 0x010331
|
1546
|
+
#define SWIGVERSION 0x010331
|
1547
1547
|
#define SWIG_VERSION SWIGVERSION
|
1548
1548
|
|
1549
1549
|
|
1550
|
-
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
1551
|
-
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1550
|
+
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
1551
|
+
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1552
1552
|
|
1553
1553
|
|
1554
1554
|
#include "miniupnpc.h"
|
1555
1555
|
|
1556
1556
|
|
1557
|
-
static unsigned int *new_uintp() {
|
1557
|
+
static unsigned int *new_uintp() {
|
1558
1558
|
return (unsigned int *)malloc(sizeof(unsigned int));
|
1559
1559
|
}
|
1560
|
-
|
1561
|
-
static unsigned int *copy_uintp(unsigned int value) {
|
1560
|
+
|
1561
|
+
static unsigned int *copy_uintp(unsigned int value) {
|
1562
1562
|
return (unsigned int *)memcpy((unsigned int *)malloc(sizeof(unsigned int)),&value,sizeof(unsigned int));
|
1563
1563
|
}
|
1564
1564
|
|
1565
|
-
static void delete_uintp(unsigned int *self) {
|
1565
|
+
static void delete_uintp(unsigned int *self) {
|
1566
1566
|
if (self) free((char*)self);
|
1567
1567
|
}
|
1568
1568
|
|
@@ -1591,7 +1591,7 @@ SWIGINTERN VALUE
|
|
1591
1591
|
SWIG_ruby_failed(void)
|
1592
1592
|
{
|
1593
1593
|
return Qnil;
|
1594
|
-
}
|
1594
|
+
}
|
1595
1595
|
|
1596
1596
|
|
1597
1597
|
/*@SWIG:%ruby_aux_method@*/
|
@@ -1606,7 +1606,7 @@ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
1606
1606
|
/*@SWIG@*/
|
1607
1607
|
|
1608
1608
|
SWIGINTERN int
|
1609
|
-
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
1609
|
+
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
1610
1610
|
{
|
1611
1611
|
VALUE type = TYPE(obj);
|
1612
1612
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
@@ -1634,24 +1634,24 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
1634
1634
|
} else {
|
1635
1635
|
if (val) *val = (unsigned int)(v);
|
1636
1636
|
}
|
1637
|
-
}
|
1637
|
+
}
|
1638
1638
|
return res;
|
1639
1639
|
}
|
1640
1640
|
|
1641
1641
|
|
1642
|
-
#define SWIG_From_long LONG2NUM
|
1642
|
+
#define SWIG_From_long LONG2NUM
|
1643
1643
|
|
1644
1644
|
|
1645
1645
|
SWIGINTERNINLINE VALUE
|
1646
1646
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
1647
1647
|
{
|
1648
|
-
return ULONG2NUM(value);
|
1648
|
+
return ULONG2NUM(value);
|
1649
1649
|
}
|
1650
1650
|
|
1651
1651
|
|
1652
1652
|
SWIGINTERNINLINE VALUE
|
1653
1653
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
1654
|
-
{
|
1654
|
+
{
|
1655
1655
|
return SWIG_From_unsigned_SS_long (value);
|
1656
1656
|
}
|
1657
1657
|
|
@@ -1673,11 +1673,11 @@ SWIGINTERN int
|
|
1673
1673
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
1674
1674
|
{
|
1675
1675
|
if (TYPE(obj) == T_STRING) {
|
1676
|
-
|
1677
1676
|
|
1678
1677
|
|
1679
|
-
|
1680
|
-
|
1678
|
+
|
1679
|
+
char *cstr = StringValuePtr(obj);
|
1680
|
+
|
1681
1681
|
size_t size = RSTRING_LEN(obj) + 1;
|
1682
1682
|
if (cptr) {
|
1683
1683
|
if (alloc) {
|
@@ -1702,7 +1702,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1702
1702
|
return SWIG_OK;
|
1703
1703
|
}
|
1704
1704
|
}
|
1705
|
-
}
|
1705
|
+
}
|
1706
1706
|
return SWIG_TypeError;
|
1707
1707
|
}
|
1708
1708
|
|
@@ -1710,13 +1710,13 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1710
1710
|
|
1711
1711
|
|
1712
1712
|
|
1713
|
-
SWIGINTERNINLINE VALUE
|
1713
|
+
SWIGINTERNINLINE VALUE
|
1714
1714
|
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
1715
1715
|
{
|
1716
1716
|
if (carray) {
|
1717
1717
|
if (size > LONG_MAX) {
|
1718
1718
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
1719
|
-
return pchar_descriptor ?
|
1719
|
+
return pchar_descriptor ?
|
1720
1720
|
SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil;
|
1721
1721
|
} else {
|
1722
1722
|
return rb_str_new(carray, (long)(size));
|
@@ -1727,9 +1727,9 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
1727
1727
|
}
|
1728
1728
|
|
1729
1729
|
|
1730
|
-
SWIGINTERNINLINE VALUE
|
1730
|
+
SWIGINTERNINLINE VALUE
|
1731
1731
|
SWIG_FromCharPtr(const char *cptr)
|
1732
|
-
{
|
1732
|
+
{
|
1733
1733
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
1734
1734
|
}
|
1735
1735
|
|
@@ -1774,21 +1774,21 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
1774
1774
|
} else {
|
1775
1775
|
if (val) *val = (int)(v);
|
1776
1776
|
}
|
1777
|
-
}
|
1777
|
+
}
|
1778
1778
|
return res;
|
1779
1779
|
}
|
1780
1780
|
|
1781
1781
|
|
1782
1782
|
SWIGINTERNINLINE VALUE
|
1783
1783
|
SWIG_From_int (int value)
|
1784
|
-
{
|
1784
|
+
{
|
1785
1785
|
return SWIG_From_long (value);
|
1786
1786
|
}
|
1787
1787
|
|
1788
1788
|
|
1789
1789
|
SWIGINTERN int
|
1790
1790
|
SWIG_AsCharArray(VALUE obj, char *val, size_t size)
|
1791
|
-
{
|
1791
|
+
{
|
1792
1792
|
char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
|
1793
1793
|
int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
|
1794
1794
|
if (SWIG_IsOK(res)) {
|
@@ -1801,7 +1801,7 @@ SWIG_AsCharArray(VALUE obj, char *val, size_t size)
|
|
1801
1801
|
if (alloc == SWIG_NEWOBJ) {
|
1802
1802
|
free((char*)cptr);
|
1803
1803
|
res = SWIG_DelNewMask(res);
|
1804
|
-
}
|
1804
|
+
}
|
1805
1805
|
return res;
|
1806
1806
|
}
|
1807
1807
|
if (alloc == SWIG_NEWOBJ) free((char*)cptr);
|
@@ -1813,7 +1813,7 @@ SWIGINTERN VALUE
|
|
1813
1813
|
_wrap_new_uintp(int argc, VALUE *argv, VALUE self) {
|
1814
1814
|
unsigned int *result = 0 ;
|
1815
1815
|
VALUE vresult = Qnil;
|
1816
|
-
|
1816
|
+
|
1817
1817
|
if ((argc < 0) || (argc > 0)) {
|
1818
1818
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
1819
1819
|
}
|
@@ -1832,14 +1832,14 @@ _wrap_copy_uintp(int argc, VALUE *argv, VALUE self) {
|
|
1832
1832
|
unsigned int val1 ;
|
1833
1833
|
int ecode1 = 0 ;
|
1834
1834
|
VALUE vresult = Qnil;
|
1835
|
-
|
1835
|
+
|
1836
1836
|
if ((argc < 1) || (argc > 1)) {
|
1837
1837
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
1838
1838
|
}
|
1839
1839
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
1840
1840
|
if (!SWIG_IsOK(ecode1)) {
|
1841
1841
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "copy_uintp" "', argument " "1"" of type '" "unsigned int""'");
|
1842
|
-
}
|
1842
|
+
}
|
1843
1843
|
arg1 = (unsigned int)(val1);
|
1844
1844
|
result = (unsigned int *)copy_uintp(arg1);
|
1845
1845
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
|
@@ -1854,13 +1854,13 @@ _wrap_delete_uintp(int argc, VALUE *argv, VALUE self) {
|
|
1854
1854
|
unsigned int *arg1 = (unsigned int *) 0 ;
|
1855
1855
|
void *argp1 = 0 ;
|
1856
1856
|
int res1 = 0 ;
|
1857
|
-
|
1857
|
+
|
1858
1858
|
if ((argc < 1) || (argc > 1)) {
|
1859
1859
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
1860
1860
|
}
|
1861
1861
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
1862
1862
|
if (!SWIG_IsOK(res1)) {
|
1863
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_uintp" "', argument " "1"" of type '" "unsigned int *""'");
|
1863
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_uintp" "', argument " "1"" of type '" "unsigned int *""'");
|
1864
1864
|
}
|
1865
1865
|
arg1 = (unsigned int *)(argp1);
|
1866
1866
|
delete_uintp(arg1);
|
@@ -1878,19 +1878,19 @@ _wrap_uintp_assign(int argc, VALUE *argv, VALUE self) {
|
|
1878
1878
|
int res1 = 0 ;
|
1879
1879
|
unsigned int val2 ;
|
1880
1880
|
int ecode2 = 0 ;
|
1881
|
-
|
1881
|
+
|
1882
1882
|
if ((argc < 2) || (argc > 2)) {
|
1883
1883
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
1884
1884
|
}
|
1885
1885
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
1886
1886
|
if (!SWIG_IsOK(res1)) {
|
1887
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uintp_assign" "', argument " "1"" of type '" "unsigned int *""'");
|
1887
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uintp_assign" "', argument " "1"" of type '" "unsigned int *""'");
|
1888
1888
|
}
|
1889
1889
|
arg1 = (unsigned int *)(argp1);
|
1890
1890
|
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
|
1891
1891
|
if (!SWIG_IsOK(ecode2)) {
|
1892
1892
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "uintp_assign" "', argument " "2"" of type '" "unsigned int""'");
|
1893
|
-
}
|
1893
|
+
}
|
1894
1894
|
arg2 = (unsigned int)(val2);
|
1895
1895
|
uintp_assign(arg1,arg2);
|
1896
1896
|
return Qnil;
|
@@ -1906,13 +1906,13 @@ _wrap_uintp_value(int argc, VALUE *argv, VALUE self) {
|
|
1906
1906
|
void *argp1 = 0 ;
|
1907
1907
|
int res1 = 0 ;
|
1908
1908
|
VALUE vresult = Qnil;
|
1909
|
-
|
1909
|
+
|
1910
1910
|
if ((argc < 1) || (argc > 1)) {
|
1911
1911
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
1912
1912
|
}
|
1913
1913
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
1914
1914
|
if (!SWIG_IsOK(res1)) {
|
1915
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uintp_value" "', argument " "1"" of type '" "unsigned int *""'");
|
1915
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uintp_value" "', argument " "1"" of type '" "unsigned int *""'");
|
1916
1916
|
}
|
1917
1917
|
arg1 = (unsigned int *)(argp1);
|
1918
1918
|
result = (unsigned int)uintp_value(arg1);
|
@@ -1934,13 +1934,13 @@ _wrap_UPNParg_elt_set(int argc, VALUE *argv, VALUE self) {
|
|
1934
1934
|
int res2 ;
|
1935
1935
|
char *buf2 = 0 ;
|
1936
1936
|
int alloc2 = 0 ;
|
1937
|
-
|
1937
|
+
|
1938
1938
|
if ((argc < 1) || (argc > 1)) {
|
1939
1939
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
1940
1940
|
}
|
1941
1941
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNParg, 0 | 0 );
|
1942
1942
|
if (!SWIG_IsOK(res1)) {
|
1943
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "elt" "', argument " "1"" of type '" "struct UPNParg *""'");
|
1943
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "elt" "', argument " "1"" of type '" "struct UPNParg *""'");
|
1944
1944
|
}
|
1945
1945
|
arg1 = (struct UPNParg *)(argp1);
|
1946
1946
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -1970,13 +1970,13 @@ _wrap_UPNParg_elt_get(int argc, VALUE *argv, VALUE self) {
|
|
1970
1970
|
void *argp1 = 0 ;
|
1971
1971
|
int res1 = 0 ;
|
1972
1972
|
VALUE vresult = Qnil;
|
1973
|
-
|
1973
|
+
|
1974
1974
|
if ((argc < 0) || (argc > 0)) {
|
1975
1975
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
1976
1976
|
}
|
1977
1977
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNParg, 0 | 0 );
|
1978
1978
|
if (!SWIG_IsOK(res1)) {
|
1979
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "elt" "', argument " "1"" of type '" "struct UPNParg *""'");
|
1979
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "elt" "', argument " "1"" of type '" "struct UPNParg *""'");
|
1980
1980
|
}
|
1981
1981
|
arg1 = (struct UPNParg *)(argp1);
|
1982
1982
|
result = (char *) ((arg1)->elt);
|
@@ -1996,13 +1996,13 @@ _wrap_UPNParg_val_set(int argc, VALUE *argv, VALUE self) {
|
|
1996
1996
|
int res2 ;
|
1997
1997
|
char *buf2 = 0 ;
|
1998
1998
|
int alloc2 = 0 ;
|
1999
|
-
|
1999
|
+
|
2000
2000
|
if ((argc < 1) || (argc > 1)) {
|
2001
2001
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2002
2002
|
}
|
2003
2003
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNParg, 0 | 0 );
|
2004
2004
|
if (!SWIG_IsOK(res1)) {
|
2005
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "val" "', argument " "1"" of type '" "struct UPNParg *""'");
|
2005
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "val" "', argument " "1"" of type '" "struct UPNParg *""'");
|
2006
2006
|
}
|
2007
2007
|
arg1 = (struct UPNParg *)(argp1);
|
2008
2008
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -2032,13 +2032,13 @@ _wrap_UPNParg_val_get(int argc, VALUE *argv, VALUE self) {
|
|
2032
2032
|
void *argp1 = 0 ;
|
2033
2033
|
int res1 = 0 ;
|
2034
2034
|
VALUE vresult = Qnil;
|
2035
|
-
|
2035
|
+
|
2036
2036
|
if ((argc < 0) || (argc > 0)) {
|
2037
2037
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2038
2038
|
}
|
2039
2039
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNParg, 0 | 0 );
|
2040
2040
|
if (!SWIG_IsOK(res1)) {
|
2041
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "val" "', argument " "1"" of type '" "struct UPNParg *""'");
|
2041
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "val" "', argument " "1"" of type '" "struct UPNParg *""'");
|
2042
2042
|
}
|
2043
2043
|
arg1 = (struct UPNParg *)(argp1);
|
2044
2044
|
result = (char *) ((arg1)->val);
|
@@ -2056,25 +2056,25 @@ _wrap_UPNParg_allocate(VALUE self) {
|
|
2056
2056
|
SWIGINTERN VALUE
|
2057
2057
|
_wrap_UPNParg_allocate(int argc, VALUE *argv, VALUE self) {
|
2058
2058
|
#endif
|
2059
|
-
|
2060
|
-
|
2059
|
+
|
2060
|
+
|
2061
2061
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_UPNParg);
|
2062
2062
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2063
2063
|
rb_obj_call_init(vresult, argc, argv);
|
2064
2064
|
#endif
|
2065
2065
|
return vresult;
|
2066
2066
|
}
|
2067
|
-
|
2067
|
+
|
2068
2068
|
|
2069
2069
|
SWIGINTERN VALUE
|
2070
2070
|
_wrap_new_UPNParg(int argc, VALUE *argv, VALUE self) {
|
2071
2071
|
struct UPNParg *result = 0 ;
|
2072
|
-
|
2072
|
+
|
2073
2073
|
if ((argc < 0) || (argc > 0)) {
|
2074
2074
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2075
2075
|
}
|
2076
2076
|
result = (struct UPNParg *)(struct UPNParg *) calloc(1, sizeof(struct UPNParg));DATA_PTR(self) = result;
|
2077
|
-
|
2077
|
+
|
2078
2078
|
return self;
|
2079
2079
|
fail:
|
2080
2080
|
return Qnil;
|
@@ -2115,14 +2115,14 @@ _wrap_simpleUPnPcommand(int argc, VALUE *argv, VALUE self) {
|
|
2115
2115
|
void *argp7 = 0 ;
|
2116
2116
|
int res7 = 0 ;
|
2117
2117
|
VALUE vresult = Qnil;
|
2118
|
-
|
2118
|
+
|
2119
2119
|
if ((argc < 7) || (argc > 7)) {
|
2120
2120
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
|
2121
2121
|
}
|
2122
2122
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2123
2123
|
if (!SWIG_IsOK(ecode1)) {
|
2124
2124
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "simpleUPnPcommand" "', argument " "1"" of type '" "int""'");
|
2125
|
-
}
|
2125
|
+
}
|
2126
2126
|
arg1 = (int)(val1);
|
2127
2127
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2128
2128
|
if (!SWIG_IsOK(res2)) {
|
@@ -2141,7 +2141,7 @@ _wrap_simpleUPnPcommand(int argc, VALUE *argv, VALUE self) {
|
|
2141
2141
|
arg4 = (char *)(buf4);
|
2142
2142
|
res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_UPNParg, 0 | 0 );
|
2143
2143
|
if (!SWIG_IsOK(res5)) {
|
2144
|
-
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "simpleUPnPcommand" "', argument " "5"" of type '" "struct UPNParg *""'");
|
2144
|
+
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "simpleUPnPcommand" "', argument " "5"" of type '" "struct UPNParg *""'");
|
2145
2145
|
}
|
2146
2146
|
arg5 = (struct UPNParg *)(argp5);
|
2147
2147
|
res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
|
@@ -2151,7 +2151,7 @@ _wrap_simpleUPnPcommand(int argc, VALUE *argv, VALUE self) {
|
|
2151
2151
|
arg6 = (char *)(buf6);
|
2152
2152
|
res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_int, 0 | 0 );
|
2153
2153
|
if (!SWIG_IsOK(res7)) {
|
2154
|
-
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "simpleUPnPcommand" "', argument " "7"" of type '" "int *""'");
|
2154
|
+
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "simpleUPnPcommand" "', argument " "7"" of type '" "int *""'");
|
2155
2155
|
}
|
2156
2156
|
arg7 = (int *)(argp7);
|
2157
2157
|
result = (int)simpleUPnPcommand(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7);
|
@@ -2180,22 +2180,22 @@ _wrap_UPNPDev_pNext_set(int argc, VALUE *argv, VALUE self) {
|
|
2180
2180
|
int res1 = 0 ;
|
2181
2181
|
void *argp2 = 0 ;
|
2182
2182
|
int res2 = 0 ;
|
2183
|
-
|
2183
|
+
|
2184
2184
|
if ((argc < 1) || (argc > 1)) {
|
2185
2185
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2186
2186
|
}
|
2187
2187
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2188
2188
|
if (!SWIG_IsOK(res1)) {
|
2189
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pNext" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2189
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pNext" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2190
2190
|
}
|
2191
2191
|
arg1 = (struct UPNPDev *)(argp1);
|
2192
2192
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_UPNPDev, SWIG_POINTER_DISOWN | 0 );
|
2193
2193
|
if (!SWIG_IsOK(res2)) {
|
2194
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pNext" "', argument " "2"" of type '" "struct UPNPDev *""'");
|
2194
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pNext" "', argument " "2"" of type '" "struct UPNPDev *""'");
|
2195
2195
|
}
|
2196
2196
|
arg2 = (struct UPNPDev *)(argp2);
|
2197
2197
|
if (arg1) (arg1)->pNext = arg2;
|
2198
|
-
|
2198
|
+
|
2199
2199
|
return Qnil;
|
2200
2200
|
fail:
|
2201
2201
|
return Qnil;
|
@@ -2209,13 +2209,13 @@ _wrap_UPNPDev_pNext_get(int argc, VALUE *argv, VALUE self) {
|
|
2209
2209
|
void *argp1 = 0 ;
|
2210
2210
|
int res1 = 0 ;
|
2211
2211
|
VALUE vresult = Qnil;
|
2212
|
-
|
2212
|
+
|
2213
2213
|
if ((argc < 0) || (argc > 0)) {
|
2214
2214
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2215
2215
|
}
|
2216
2216
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2217
2217
|
if (!SWIG_IsOK(res1)) {
|
2218
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pNext" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2218
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pNext" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2219
2219
|
}
|
2220
2220
|
arg1 = (struct UPNPDev *)(argp1);
|
2221
2221
|
result = (struct UPNPDev *) ((arg1)->pNext);
|
@@ -2235,13 +2235,13 @@ _wrap_UPNPDev_descURL_set(int argc, VALUE *argv, VALUE self) {
|
|
2235
2235
|
int res2 ;
|
2236
2236
|
char *buf2 = 0 ;
|
2237
2237
|
int alloc2 = 0 ;
|
2238
|
-
|
2238
|
+
|
2239
2239
|
if ((argc < 1) || (argc > 1)) {
|
2240
2240
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2241
2241
|
}
|
2242
2242
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2243
2243
|
if (!SWIG_IsOK(res1)) {
|
2244
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "descURL" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2244
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "descURL" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2245
2245
|
}
|
2246
2246
|
arg1 = (struct UPNPDev *)(argp1);
|
2247
2247
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -2271,13 +2271,13 @@ _wrap_UPNPDev_descURL_get(int argc, VALUE *argv, VALUE self) {
|
|
2271
2271
|
void *argp1 = 0 ;
|
2272
2272
|
int res1 = 0 ;
|
2273
2273
|
VALUE vresult = Qnil;
|
2274
|
-
|
2274
|
+
|
2275
2275
|
if ((argc < 0) || (argc > 0)) {
|
2276
2276
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2277
2277
|
}
|
2278
2278
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2279
2279
|
if (!SWIG_IsOK(res1)) {
|
2280
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "descURL" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2280
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "descURL" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2281
2281
|
}
|
2282
2282
|
arg1 = (struct UPNPDev *)(argp1);
|
2283
2283
|
result = (char *) ((arg1)->descURL);
|
@@ -2297,13 +2297,13 @@ _wrap_UPNPDev_st_set(int argc, VALUE *argv, VALUE self) {
|
|
2297
2297
|
int res2 ;
|
2298
2298
|
char *buf2 = 0 ;
|
2299
2299
|
int alloc2 = 0 ;
|
2300
|
-
|
2300
|
+
|
2301
2301
|
if ((argc < 1) || (argc > 1)) {
|
2302
2302
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2303
2303
|
}
|
2304
2304
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2305
2305
|
if (!SWIG_IsOK(res1)) {
|
2306
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "st" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2306
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "st" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2307
2307
|
}
|
2308
2308
|
arg1 = (struct UPNPDev *)(argp1);
|
2309
2309
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -2333,13 +2333,13 @@ _wrap_UPNPDev_st_get(int argc, VALUE *argv, VALUE self) {
|
|
2333
2333
|
void *argp1 = 0 ;
|
2334
2334
|
int res1 = 0 ;
|
2335
2335
|
VALUE vresult = Qnil;
|
2336
|
-
|
2336
|
+
|
2337
2337
|
if ((argc < 0) || (argc > 0)) {
|
2338
2338
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2339
2339
|
}
|
2340
2340
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2341
2341
|
if (!SWIG_IsOK(res1)) {
|
2342
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "st" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2342
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "st" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2343
2343
|
}
|
2344
2344
|
arg1 = (struct UPNPDev *)(argp1);
|
2345
2345
|
result = (char *) ((arg1)->st);
|
@@ -2358,13 +2358,13 @@ _wrap_UPNPDev_buffer_set(int argc, VALUE *argv, VALUE self) {
|
|
2358
2358
|
int res1 = 0 ;
|
2359
2359
|
char temp2[2] ;
|
2360
2360
|
int res2 ;
|
2361
|
-
|
2361
|
+
|
2362
2362
|
if ((argc < 1) || (argc > 1)) {
|
2363
2363
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2364
2364
|
}
|
2365
2365
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2366
2366
|
if (!SWIG_IsOK(res1)) {
|
2367
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2367
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2368
2368
|
}
|
2369
2369
|
arg1 = (struct UPNPDev *)(argp1);
|
2370
2370
|
res2 = SWIG_AsCharArray(argv[0], temp2, 2);
|
@@ -2387,21 +2387,21 @@ _wrap_UPNPDev_buffer_get(int argc, VALUE *argv, VALUE self) {
|
|
2387
2387
|
void *argp1 = 0 ;
|
2388
2388
|
int res1 = 0 ;
|
2389
2389
|
VALUE vresult = Qnil;
|
2390
|
-
|
2390
|
+
|
2391
2391
|
if ((argc < 0) || (argc > 0)) {
|
2392
2392
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2393
2393
|
}
|
2394
2394
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2395
2395
|
if (!SWIG_IsOK(res1)) {
|
2396
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2396
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2397
2397
|
}
|
2398
2398
|
arg1 = (struct UPNPDev *)(argp1);
|
2399
2399
|
result = (char *)(char *) ((arg1)->buffer);
|
2400
2400
|
{
|
2401
2401
|
size_t size = 2;
|
2402
|
-
|
2402
|
+
|
2403
2403
|
while (size && (result[size - 1] == '\0')) --size;
|
2404
|
-
|
2404
|
+
|
2405
2405
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
2406
2406
|
}
|
2407
2407
|
return vresult;
|
@@ -2417,25 +2417,25 @@ _wrap_UPNPDev_allocate(VALUE self) {
|
|
2417
2417
|
SWIGINTERN VALUE
|
2418
2418
|
_wrap_UPNPDev_allocate(int argc, VALUE *argv, VALUE self) {
|
2419
2419
|
#endif
|
2420
|
-
|
2421
|
-
|
2420
|
+
|
2421
|
+
|
2422
2422
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_UPNPDev);
|
2423
2423
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2424
2424
|
rb_obj_call_init(vresult, argc, argv);
|
2425
2425
|
#endif
|
2426
2426
|
return vresult;
|
2427
2427
|
}
|
2428
|
-
|
2428
|
+
|
2429
2429
|
|
2430
2430
|
SWIGINTERN VALUE
|
2431
2431
|
_wrap_new_UPNPDev(int argc, VALUE *argv, VALUE self) {
|
2432
2432
|
struct UPNPDev *result = 0 ;
|
2433
|
-
|
2433
|
+
|
2434
2434
|
if ((argc < 0) || (argc > 0)) {
|
2435
2435
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2436
2436
|
}
|
2437
2437
|
result = (struct UPNPDev *)(struct UPNPDev *) calloc(1, sizeof(struct UPNPDev));DATA_PTR(self) = result;
|
2438
|
-
|
2438
|
+
|
2439
2439
|
return self;
|
2440
2440
|
fail:
|
2441
2441
|
return Qnil;
|
@@ -2465,14 +2465,14 @@ _wrap_upnpDiscover(int argc, VALUE *argv, VALUE self) {
|
|
2465
2465
|
int val4 ;
|
2466
2466
|
int ecode4 = 0 ;
|
2467
2467
|
VALUE vresult = Qnil;
|
2468
|
-
|
2468
|
+
|
2469
2469
|
if ((argc < 4) || (argc > 4)) {
|
2470
2470
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
2471
2471
|
}
|
2472
2472
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2473
2473
|
if (!SWIG_IsOK(ecode1)) {
|
2474
2474
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "upnpDiscover" "', argument " "1"" of type '" "int""'");
|
2475
|
-
}
|
2475
|
+
}
|
2476
2476
|
arg1 = (int)(val1);
|
2477
2477
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2478
2478
|
if (!SWIG_IsOK(res2)) {
|
@@ -2487,7 +2487,7 @@ _wrap_upnpDiscover(int argc, VALUE *argv, VALUE self) {
|
|
2487
2487
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
2488
2488
|
if (!SWIG_IsOK(ecode4)) {
|
2489
2489
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "upnpDiscover" "', argument " "4"" of type '" "int""'");
|
2490
|
-
}
|
2490
|
+
}
|
2491
2491
|
arg4 = (int)(val4);
|
2492
2492
|
result = (struct UPNPDev *)upnpDiscover(arg1,(char const *)arg2,(char const *)arg3,arg4);
|
2493
2493
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UPNPDev, 0 | 0 );
|
@@ -2506,13 +2506,13 @@ _wrap_freeUPNPDevlist(int argc, VALUE *argv, VALUE self) {
|
|
2506
2506
|
struct UPNPDev *arg1 = (struct UPNPDev *) 0 ;
|
2507
2507
|
void *argp1 = 0 ;
|
2508
2508
|
int res1 = 0 ;
|
2509
|
-
|
2509
|
+
|
2510
2510
|
if ((argc < 1) || (argc > 1)) {
|
2511
2511
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2512
2512
|
}
|
2513
2513
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2514
2514
|
if (!SWIG_IsOK(res1)) {
|
2515
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "freeUPNPDevlist" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2515
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "freeUPNPDevlist" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2516
2516
|
}
|
2517
2517
|
arg1 = (struct UPNPDev *)(argp1);
|
2518
2518
|
freeUPNPDevlist(arg1);
|
@@ -2534,7 +2534,7 @@ _wrap_parserootdesc(int argc, VALUE *argv, VALUE self) {
|
|
2534
2534
|
int ecode2 = 0 ;
|
2535
2535
|
void *argp3 = 0 ;
|
2536
2536
|
int res3 = 0 ;
|
2537
|
-
|
2537
|
+
|
2538
2538
|
if ((argc < 3) || (argc > 3)) {
|
2539
2539
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
2540
2540
|
}
|
@@ -2546,11 +2546,11 @@ _wrap_parserootdesc(int argc, VALUE *argv, VALUE self) {
|
|
2546
2546
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2547
2547
|
if (!SWIG_IsOK(ecode2)) {
|
2548
2548
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "parserootdesc" "', argument " "2"" of type '" "int""'");
|
2549
|
-
}
|
2549
|
+
}
|
2550
2550
|
arg2 = (int)(val2);
|
2551
2551
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
2552
2552
|
if (!SWIG_IsOK(res3)) {
|
2553
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parserootdesc" "', argument " "3"" of type '" "struct IGDdatas *""'");
|
2553
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parserootdesc" "', argument " "3"" of type '" "struct IGDdatas *""'");
|
2554
2554
|
}
|
2555
2555
|
arg3 = (struct IGDdatas *)(argp3);
|
2556
2556
|
parserootdesc((char const *)arg1,arg2,arg3);
|
@@ -2573,13 +2573,13 @@ _wrap_UPNPUrls_controlURL_set(int argc, VALUE *argv, VALUE self) {
|
|
2573
2573
|
int res2 ;
|
2574
2574
|
char *buf2 = 0 ;
|
2575
2575
|
int alloc2 = 0 ;
|
2576
|
-
|
2576
|
+
|
2577
2577
|
if ((argc < 1) || (argc > 1)) {
|
2578
2578
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2579
2579
|
}
|
2580
2580
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2581
2581
|
if (!SWIG_IsOK(res1)) {
|
2582
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2582
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2583
2583
|
}
|
2584
2584
|
arg1 = (struct UPNPUrls *)(argp1);
|
2585
2585
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -2609,13 +2609,13 @@ _wrap_UPNPUrls_controlURL_get(int argc, VALUE *argv, VALUE self) {
|
|
2609
2609
|
void *argp1 = 0 ;
|
2610
2610
|
int res1 = 0 ;
|
2611
2611
|
VALUE vresult = Qnil;
|
2612
|
-
|
2612
|
+
|
2613
2613
|
if ((argc < 0) || (argc > 0)) {
|
2614
2614
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2615
2615
|
}
|
2616
2616
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2617
2617
|
if (!SWIG_IsOK(res1)) {
|
2618
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2618
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2619
2619
|
}
|
2620
2620
|
arg1 = (struct UPNPUrls *)(argp1);
|
2621
2621
|
result = (char *) ((arg1)->controlURL);
|
@@ -2635,13 +2635,13 @@ _wrap_UPNPUrls_ipcondescURL_set(int argc, VALUE *argv, VALUE self) {
|
|
2635
2635
|
int res2 ;
|
2636
2636
|
char *buf2 = 0 ;
|
2637
2637
|
int alloc2 = 0 ;
|
2638
|
-
|
2638
|
+
|
2639
2639
|
if ((argc < 1) || (argc > 1)) {
|
2640
2640
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2641
2641
|
}
|
2642
2642
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2643
2643
|
if (!SWIG_IsOK(res1)) {
|
2644
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ipcondescURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2644
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ipcondescURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2645
2645
|
}
|
2646
2646
|
arg1 = (struct UPNPUrls *)(argp1);
|
2647
2647
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -2671,13 +2671,13 @@ _wrap_UPNPUrls_ipcondescURL_get(int argc, VALUE *argv, VALUE self) {
|
|
2671
2671
|
void *argp1 = 0 ;
|
2672
2672
|
int res1 = 0 ;
|
2673
2673
|
VALUE vresult = Qnil;
|
2674
|
-
|
2674
|
+
|
2675
2675
|
if ((argc < 0) || (argc > 0)) {
|
2676
2676
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2677
2677
|
}
|
2678
2678
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2679
2679
|
if (!SWIG_IsOK(res1)) {
|
2680
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ipcondescURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2680
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ipcondescURL" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2681
2681
|
}
|
2682
2682
|
arg1 = (struct UPNPUrls *)(argp1);
|
2683
2683
|
result = (char *) ((arg1)->ipcondescURL);
|
@@ -2697,13 +2697,13 @@ _wrap_UPNPUrls_controlURL_CIF_set(int argc, VALUE *argv, VALUE self) {
|
|
2697
2697
|
int res2 ;
|
2698
2698
|
char *buf2 = 0 ;
|
2699
2699
|
int alloc2 = 0 ;
|
2700
|
-
|
2700
|
+
|
2701
2701
|
if ((argc < 1) || (argc > 1)) {
|
2702
2702
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2703
2703
|
}
|
2704
2704
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2705
2705
|
if (!SWIG_IsOK(res1)) {
|
2706
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL_CIF" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2706
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL_CIF" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2707
2707
|
}
|
2708
2708
|
arg1 = (struct UPNPUrls *)(argp1);
|
2709
2709
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
@@ -2733,13 +2733,13 @@ _wrap_UPNPUrls_controlURL_CIF_get(int argc, VALUE *argv, VALUE self) {
|
|
2733
2733
|
void *argp1 = 0 ;
|
2734
2734
|
int res1 = 0 ;
|
2735
2735
|
VALUE vresult = Qnil;
|
2736
|
-
|
2736
|
+
|
2737
2737
|
if ((argc < 0) || (argc > 0)) {
|
2738
2738
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2739
2739
|
}
|
2740
2740
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2741
2741
|
if (!SWIG_IsOK(res1)) {
|
2742
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL_CIF" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2742
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlURL_CIF" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2743
2743
|
}
|
2744
2744
|
arg1 = (struct UPNPUrls *)(argp1);
|
2745
2745
|
result = (char *) ((arg1)->controlURL_CIF);
|
@@ -2757,25 +2757,25 @@ _wrap_UPNPUrls_allocate(VALUE self) {
|
|
2757
2757
|
SWIGINTERN VALUE
|
2758
2758
|
_wrap_UPNPUrls_allocate(int argc, VALUE *argv, VALUE self) {
|
2759
2759
|
#endif
|
2760
|
-
|
2761
|
-
|
2760
|
+
|
2761
|
+
|
2762
2762
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_UPNPUrls);
|
2763
2763
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2764
2764
|
rb_obj_call_init(vresult, argc, argv);
|
2765
2765
|
#endif
|
2766
2766
|
return vresult;
|
2767
2767
|
}
|
2768
|
-
|
2768
|
+
|
2769
2769
|
|
2770
2770
|
SWIGINTERN VALUE
|
2771
2771
|
_wrap_new_UPNPUrls(int argc, VALUE *argv, VALUE self) {
|
2772
2772
|
struct UPNPUrls *result = 0 ;
|
2773
|
-
|
2773
|
+
|
2774
2774
|
if ((argc < 0) || (argc > 0)) {
|
2775
2775
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2776
2776
|
}
|
2777
2777
|
result = (struct UPNPUrls *)(struct UPNPUrls *) calloc(1, sizeof(struct UPNPUrls));DATA_PTR(self) = result;
|
2778
|
-
|
2778
|
+
|
2779
2779
|
return self;
|
2780
2780
|
fail:
|
2781
2781
|
return Qnil;
|
@@ -2807,23 +2807,23 @@ _wrap_UPNP_GetValidIGD(int argc, VALUE *argv, VALUE self) {
|
|
2807
2807
|
int val5 ;
|
2808
2808
|
int ecode5 = 0 ;
|
2809
2809
|
VALUE vresult = Qnil;
|
2810
|
-
|
2810
|
+
|
2811
2811
|
if ((argc < 5) || (argc > 5)) {
|
2812
2812
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
2813
2813
|
}
|
2814
2814
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_UPNPDev, 0 | 0 );
|
2815
2815
|
if (!SWIG_IsOK(res1)) {
|
2816
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UPNP_GetValidIGD" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2816
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UPNP_GetValidIGD" "', argument " "1"" of type '" "struct UPNPDev *""'");
|
2817
2817
|
}
|
2818
2818
|
arg1 = (struct UPNPDev *)(argp1);
|
2819
2819
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2820
2820
|
if (!SWIG_IsOK(res2)) {
|
2821
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UPNP_GetValidIGD" "', argument " "2"" of type '" "struct UPNPUrls *""'");
|
2821
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UPNP_GetValidIGD" "', argument " "2"" of type '" "struct UPNPUrls *""'");
|
2822
2822
|
}
|
2823
2823
|
arg2 = (struct UPNPUrls *)(argp2);
|
2824
2824
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
2825
2825
|
if (!SWIG_IsOK(res3)) {
|
2826
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetValidIGD" "', argument " "3"" of type '" "struct IGDdatas *""'");
|
2826
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetValidIGD" "', argument " "3"" of type '" "struct IGDdatas *""'");
|
2827
2827
|
}
|
2828
2828
|
arg3 = (struct IGDdatas *)(argp3);
|
2829
2829
|
res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
|
@@ -2834,7 +2834,7 @@ _wrap_UPNP_GetValidIGD(int argc, VALUE *argv, VALUE self) {
|
|
2834
2834
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
2835
2835
|
if (!SWIG_IsOK(ecode5)) {
|
2836
2836
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "UPNP_GetValidIGD" "', argument " "5"" of type '" "int""'");
|
2837
|
-
}
|
2837
|
+
}
|
2838
2838
|
arg5 = (int)(val5);
|
2839
2839
|
result = (int)UPNP_GetValidIGD(arg1,arg2,arg3,arg4,arg5);
|
2840
2840
|
vresult = SWIG_From_int((int)(result));
|
@@ -2867,7 +2867,7 @@ _wrap_UPNP_GetIGDFromUrl(int argc, VALUE *argv, VALUE self) {
|
|
2867
2867
|
int val5 ;
|
2868
2868
|
int ecode5 = 0 ;
|
2869
2869
|
VALUE vresult = Qnil;
|
2870
|
-
|
2870
|
+
|
2871
2871
|
if ((argc < 5) || (argc > 5)) {
|
2872
2872
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
2873
2873
|
}
|
@@ -2878,12 +2878,12 @@ _wrap_UPNP_GetIGDFromUrl(int argc, VALUE *argv, VALUE self) {
|
|
2878
2878
|
arg1 = (char *)(buf1);
|
2879
2879
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2880
2880
|
if (!SWIG_IsOK(res2)) {
|
2881
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UPNP_GetIGDFromUrl" "', argument " "2"" of type '" "struct UPNPUrls *""'");
|
2881
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UPNP_GetIGDFromUrl" "', argument " "2"" of type '" "struct UPNPUrls *""'");
|
2882
2882
|
}
|
2883
2883
|
arg2 = (struct UPNPUrls *)(argp2);
|
2884
2884
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
2885
2885
|
if (!SWIG_IsOK(res3)) {
|
2886
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetIGDFromUrl" "', argument " "3"" of type '" "struct IGDdatas *""'");
|
2886
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetIGDFromUrl" "', argument " "3"" of type '" "struct IGDdatas *""'");
|
2887
2887
|
}
|
2888
2888
|
arg3 = (struct IGDdatas *)(argp3);
|
2889
2889
|
res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
|
@@ -2894,7 +2894,7 @@ _wrap_UPNP_GetIGDFromUrl(int argc, VALUE *argv, VALUE self) {
|
|
2894
2894
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
2895
2895
|
if (!SWIG_IsOK(ecode5)) {
|
2896
2896
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "UPNP_GetIGDFromUrl" "', argument " "5"" of type '" "int""'");
|
2897
|
-
}
|
2897
|
+
}
|
2898
2898
|
arg5 = (int)(val5);
|
2899
2899
|
result = (int)UPNP_GetIGDFromUrl((char const *)arg1,arg2,arg3,arg4,arg5);
|
2900
2900
|
vresult = SWIG_From_int((int)(result));
|
@@ -2920,18 +2920,18 @@ _wrap_GetUPNPUrls(int argc, VALUE *argv, VALUE self) {
|
|
2920
2920
|
int res3 ;
|
2921
2921
|
char *buf3 = 0 ;
|
2922
2922
|
int alloc3 = 0 ;
|
2923
|
-
|
2923
|
+
|
2924
2924
|
if ((argc < 3) || (argc > 3)) {
|
2925
2925
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
2926
2926
|
}
|
2927
2927
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2928
2928
|
if (!SWIG_IsOK(res1)) {
|
2929
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetUPNPUrls" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2929
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetUPNPUrls" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2930
2930
|
}
|
2931
2931
|
arg1 = (struct UPNPUrls *)(argp1);
|
2932
2932
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
2933
2933
|
if (!SWIG_IsOK(res2)) {
|
2934
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetUPNPUrls" "', argument " "2"" of type '" "struct IGDdatas *""'");
|
2934
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetUPNPUrls" "', argument " "2"" of type '" "struct IGDdatas *""'");
|
2935
2935
|
}
|
2936
2936
|
arg2 = (struct IGDdatas *)(argp2);
|
2937
2937
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
@@ -2953,13 +2953,13 @@ _wrap_FreeUPNPUrls(int argc, VALUE *argv, VALUE self) {
|
|
2953
2953
|
struct UPNPUrls *arg1 = (struct UPNPUrls *) 0 ;
|
2954
2954
|
void *argp1 = 0 ;
|
2955
2955
|
int res1 = 0 ;
|
2956
|
-
|
2956
|
+
|
2957
2957
|
if ((argc < 1) || (argc > 1)) {
|
2958
2958
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2959
2959
|
}
|
2960
2960
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_UPNPUrls, 0 | 0 );
|
2961
2961
|
if (!SWIG_IsOK(res1)) {
|
2962
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FreeUPNPUrls" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2962
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FreeUPNPUrls" "', argument " "1"" of type '" "struct UPNPUrls *""'");
|
2963
2963
|
}
|
2964
2964
|
arg1 = (struct UPNPUrls *)(argp1);
|
2965
2965
|
FreeUPNPUrls(arg1);
|
@@ -2986,14 +2986,14 @@ _wrap_ReceiveData(int argc, VALUE *argv, VALUE self) {
|
|
2986
2986
|
int val4 ;
|
2987
2987
|
int ecode4 = 0 ;
|
2988
2988
|
VALUE vresult = Qnil;
|
2989
|
-
|
2989
|
+
|
2990
2990
|
if ((argc < 4) || (argc > 4)) {
|
2991
2991
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
2992
2992
|
}
|
2993
2993
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2994
2994
|
if (!SWIG_IsOK(ecode1)) {
|
2995
2995
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ReceiveData" "', argument " "1"" of type '" "int""'");
|
2996
|
-
}
|
2996
|
+
}
|
2997
2997
|
arg1 = (int)(val1);
|
2998
2998
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2999
2999
|
if (!SWIG_IsOK(res2)) {
|
@@ -3003,12 +3003,12 @@ _wrap_ReceiveData(int argc, VALUE *argv, VALUE self) {
|
|
3003
3003
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3004
3004
|
if (!SWIG_IsOK(ecode3)) {
|
3005
3005
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ReceiveData" "', argument " "3"" of type '" "int""'");
|
3006
|
-
}
|
3006
|
+
}
|
3007
3007
|
arg3 = (int)(val3);
|
3008
3008
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
3009
3009
|
if (!SWIG_IsOK(ecode4)) {
|
3010
3010
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ReceiveData" "', argument " "4"" of type '" "int""'");
|
3011
|
-
}
|
3011
|
+
}
|
3012
3012
|
arg4 = (int)(val4);
|
3013
3013
|
result = (int)ReceiveData(arg1,arg2,arg3,arg4);
|
3014
3014
|
vresult = SWIG_From_int((int)(result));
|
@@ -3032,7 +3032,7 @@ _wrap_UPNP_GetTotalBytesSent(int argc, VALUE *argv, VALUE self) {
|
|
3032
3032
|
char *buf2 = 0 ;
|
3033
3033
|
int alloc2 = 0 ;
|
3034
3034
|
VALUE vresult = Qnil;
|
3035
|
-
|
3035
|
+
|
3036
3036
|
if ((argc < 2) || (argc > 2)) {
|
3037
3037
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3038
3038
|
}
|
@@ -3070,7 +3070,7 @@ _wrap_UPNP_GetTotalBytesReceived(int argc, VALUE *argv, VALUE self) {
|
|
3070
3070
|
char *buf2 = 0 ;
|
3071
3071
|
int alloc2 = 0 ;
|
3072
3072
|
VALUE vresult = Qnil;
|
3073
|
-
|
3073
|
+
|
3074
3074
|
if ((argc < 2) || (argc > 2)) {
|
3075
3075
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3076
3076
|
}
|
@@ -3108,7 +3108,7 @@ _wrap_UPNP_GetTotalPacketsSent(int argc, VALUE *argv, VALUE self) {
|
|
3108
3108
|
char *buf2 = 0 ;
|
3109
3109
|
int alloc2 = 0 ;
|
3110
3110
|
VALUE vresult = Qnil;
|
3111
|
-
|
3111
|
+
|
3112
3112
|
if ((argc < 2) || (argc > 2)) {
|
3113
3113
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3114
3114
|
}
|
@@ -3146,7 +3146,7 @@ _wrap_UPNP_GetTotalPacketsReceived(int argc, VALUE *argv, VALUE self) {
|
|
3146
3146
|
char *buf2 = 0 ;
|
3147
3147
|
int alloc2 = 0 ;
|
3148
3148
|
VALUE vresult = Qnil;
|
3149
|
-
|
3149
|
+
|
3150
3150
|
if ((argc < 2) || (argc > 2)) {
|
3151
3151
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3152
3152
|
}
|
@@ -3195,7 +3195,7 @@ _wrap_UPNP_GetStatusInfo(int argc, VALUE *argv, VALUE self) {
|
|
3195
3195
|
char *buf5 = 0 ;
|
3196
3196
|
int alloc5 = 0 ;
|
3197
3197
|
VALUE vresult = Qnil;
|
3198
|
-
|
3198
|
+
|
3199
3199
|
if ((argc < 5) || (argc > 5)) {
|
3200
3200
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
3201
3201
|
}
|
@@ -3216,7 +3216,7 @@ _wrap_UPNP_GetStatusInfo(int argc, VALUE *argv, VALUE self) {
|
|
3216
3216
|
arg3 = (char *)(buf3);
|
3217
3217
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
3218
3218
|
if (!SWIG_IsOK(res4)) {
|
3219
|
-
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "UPNP_GetStatusInfo" "', argument " "4"" of type '" "unsigned int *""'");
|
3219
|
+
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "UPNP_GetStatusInfo" "', argument " "4"" of type '" "unsigned int *""'");
|
3220
3220
|
}
|
3221
3221
|
arg4 = (unsigned int *)(argp4);
|
3222
3222
|
res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
|
@@ -3256,7 +3256,7 @@ _wrap_UPNP_GetConnectionTypeInfo(int argc, VALUE *argv, VALUE self) {
|
|
3256
3256
|
char *buf3 = 0 ;
|
3257
3257
|
int alloc3 = 0 ;
|
3258
3258
|
VALUE vresult = Qnil;
|
3259
|
-
|
3259
|
+
|
3260
3260
|
if ((argc < 3) || (argc > 3)) {
|
3261
3261
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3262
3262
|
}
|
@@ -3305,7 +3305,7 @@ _wrap_UPNP_GetExternalIPAddress(int argc, VALUE *argv, VALUE self) {
|
|
3305
3305
|
char *buf3 = 0 ;
|
3306
3306
|
int alloc3 = 0 ;
|
3307
3307
|
VALUE vresult = Qnil;
|
3308
|
-
|
3308
|
+
|
3309
3309
|
if ((argc < 3) || (argc > 3)) {
|
3310
3310
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3311
3311
|
}
|
@@ -3356,7 +3356,7 @@ _wrap_UPNP_GetLinkLayerMaxBitRates(int argc, VALUE *argv, VALUE self) {
|
|
3356
3356
|
void *argp4 = 0 ;
|
3357
3357
|
int res4 = 0 ;
|
3358
3358
|
VALUE vresult = Qnil;
|
3359
|
-
|
3359
|
+
|
3360
3360
|
if ((argc < 4) || (argc > 4)) {
|
3361
3361
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3362
3362
|
}
|
@@ -3372,12 +3372,12 @@ _wrap_UPNP_GetLinkLayerMaxBitRates(int argc, VALUE *argv, VALUE self) {
|
|
3372
3372
|
arg2 = (char *)(buf2);
|
3373
3373
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
3374
3374
|
if (!SWIG_IsOK(res3)) {
|
3375
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetLinkLayerMaxBitRates" "', argument " "3"" of type '" "unsigned int *""'");
|
3375
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetLinkLayerMaxBitRates" "', argument " "3"" of type '" "unsigned int *""'");
|
3376
3376
|
}
|
3377
3377
|
arg3 = (unsigned int *)(argp3);
|
3378
3378
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
3379
3379
|
if (!SWIG_IsOK(res4)) {
|
3380
|
-
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "UPNP_GetLinkLayerMaxBitRates" "', argument " "4"" of type '" "unsigned int *""'");
|
3380
|
+
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "UPNP_GetLinkLayerMaxBitRates" "', argument " "4"" of type '" "unsigned int *""'");
|
3381
3381
|
}
|
3382
3382
|
arg4 = (unsigned int *)(argp4);
|
3383
3383
|
result = (int)UPNP_GetLinkLayerMaxBitRates((char const *)arg1,(char const *)arg2,arg3,arg4);
|
@@ -3424,7 +3424,7 @@ _wrap_UPNP_AddPortMapping(int argc, VALUE *argv, VALUE self) {
|
|
3424
3424
|
char *buf7 = 0 ;
|
3425
3425
|
int alloc7 = 0 ;
|
3426
3426
|
VALUE vresult = Qnil;
|
3427
|
-
|
3427
|
+
|
3428
3428
|
if ((argc < 7) || (argc > 7)) {
|
3429
3429
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
|
3430
3430
|
}
|
@@ -3505,7 +3505,7 @@ _wrap_UPNP_DeletePortMapping(int argc, VALUE *argv, VALUE self) {
|
|
3505
3505
|
char *buf4 = 0 ;
|
3506
3506
|
int alloc4 = 0 ;
|
3507
3507
|
VALUE vresult = Qnil;
|
3508
|
-
|
3508
|
+
|
3509
3509
|
if ((argc < 4) || (argc > 4)) {
|
3510
3510
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3511
3511
|
}
|
@@ -3560,7 +3560,7 @@ _wrap_UPNP_GetPortMappingNumberOfEntries(int argc, VALUE *argv, VALUE self) {
|
|
3560
3560
|
void *argp3 = 0 ;
|
3561
3561
|
int res3 = 0 ;
|
3562
3562
|
VALUE vresult = Qnil;
|
3563
|
-
|
3563
|
+
|
3564
3564
|
if ((argc < 3) || (argc > 3)) {
|
3565
3565
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3566
3566
|
}
|
@@ -3576,7 +3576,7 @@ _wrap_UPNP_GetPortMappingNumberOfEntries(int argc, VALUE *argv, VALUE self) {
|
|
3576
3576
|
arg2 = (char *)(buf2);
|
3577
3577
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
3578
3578
|
if (!SWIG_IsOK(res3)) {
|
3579
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetPortMappingNumberOfEntries" "', argument " "3"" of type '" "unsigned int *""'");
|
3579
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UPNP_GetPortMappingNumberOfEntries" "', argument " "3"" of type '" "unsigned int *""'");
|
3580
3580
|
}
|
3581
3581
|
arg3 = (unsigned int *)(argp3);
|
3582
3582
|
result = (int)UPNP_GetPortMappingNumberOfEntries((char const *)arg1,(char const *)arg2,arg3);
|
@@ -3619,7 +3619,7 @@ _wrap_UPNP_GetSpecificPortMappingEntry(int argc, VALUE *argv, VALUE self) {
|
|
3619
3619
|
char *buf6 = 0 ;
|
3620
3620
|
int alloc6 = 0 ;
|
3621
3621
|
VALUE vresult = Qnil;
|
3622
|
-
|
3622
|
+
|
3623
3623
|
if ((argc < 6) || (argc > 6)) {
|
3624
3624
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
3625
3625
|
}
|
@@ -3721,7 +3721,7 @@ _wrap_UPNP_GetGenericPortMappingEntry(int argc, VALUE *argv, VALUE self) {
|
|
3721
3721
|
char *buf11 = 0 ;
|
3722
3722
|
int alloc11 = 0 ;
|
3723
3723
|
VALUE vresult = Qnil;
|
3724
|
-
|
3724
|
+
|
3725
3725
|
if ((argc < 11) || (argc > 11)) {
|
3726
3726
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 11)",argc); SWIG_fail;
|
3727
3727
|
}
|
@@ -3820,13 +3820,13 @@ _wrap_IGDdatas_cureltname_set(int argc, VALUE *argv, VALUE self) {
|
|
3820
3820
|
int res1 = 0 ;
|
3821
3821
|
char temp2[(128)] ;
|
3822
3822
|
int res2 ;
|
3823
|
-
|
3823
|
+
|
3824
3824
|
if ((argc < 1) || (argc > 1)) {
|
3825
3825
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3826
3826
|
}
|
3827
3827
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
3828
3828
|
if (!SWIG_IsOK(res1)) {
|
3829
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cureltname" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3829
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cureltname" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3830
3830
|
}
|
3831
3831
|
arg1 = (struct IGDdatas *)(argp1);
|
3832
3832
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -3849,21 +3849,21 @@ _wrap_IGDdatas_cureltname_get(int argc, VALUE *argv, VALUE self) {
|
|
3849
3849
|
void *argp1 = 0 ;
|
3850
3850
|
int res1 = 0 ;
|
3851
3851
|
VALUE vresult = Qnil;
|
3852
|
-
|
3852
|
+
|
3853
3853
|
if ((argc < 0) || (argc > 0)) {
|
3854
3854
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3855
3855
|
}
|
3856
3856
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
3857
3857
|
if (!SWIG_IsOK(res1)) {
|
3858
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cureltname" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3858
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cureltname" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3859
3859
|
}
|
3860
3860
|
arg1 = (struct IGDdatas *)(argp1);
|
3861
3861
|
result = (char *)(char *) ((arg1)->cureltname);
|
3862
3862
|
{
|
3863
3863
|
size_t size = (128);
|
3864
|
-
|
3864
|
+
|
3865
3865
|
while (size && (result[size - 1] == '\0')) --size;
|
3866
|
-
|
3866
|
+
|
3867
3867
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
3868
3868
|
}
|
3869
3869
|
return vresult;
|
@@ -3880,13 +3880,13 @@ _wrap_IGDdatas_urlbase_set(int argc, VALUE *argv, VALUE self) {
|
|
3880
3880
|
int res1 = 0 ;
|
3881
3881
|
char temp2[(128)] ;
|
3882
3882
|
int res2 ;
|
3883
|
-
|
3883
|
+
|
3884
3884
|
if ((argc < 1) || (argc > 1)) {
|
3885
3885
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3886
3886
|
}
|
3887
3887
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
3888
3888
|
if (!SWIG_IsOK(res1)) {
|
3889
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "urlbase" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3889
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "urlbase" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3890
3890
|
}
|
3891
3891
|
arg1 = (struct IGDdatas *)(argp1);
|
3892
3892
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -3909,21 +3909,21 @@ _wrap_IGDdatas_urlbase_get(int argc, VALUE *argv, VALUE self) {
|
|
3909
3909
|
void *argp1 = 0 ;
|
3910
3910
|
int res1 = 0 ;
|
3911
3911
|
VALUE vresult = Qnil;
|
3912
|
-
|
3912
|
+
|
3913
3913
|
if ((argc < 0) || (argc > 0)) {
|
3914
3914
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3915
3915
|
}
|
3916
3916
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
3917
3917
|
if (!SWIG_IsOK(res1)) {
|
3918
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "urlbase" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3918
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "urlbase" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3919
3919
|
}
|
3920
3920
|
arg1 = (struct IGDdatas *)(argp1);
|
3921
3921
|
result = (char *)(char *) ((arg1)->urlbase);
|
3922
3922
|
{
|
3923
3923
|
size_t size = (128);
|
3924
|
-
|
3924
|
+
|
3925
3925
|
while (size && (result[size - 1] == '\0')) --size;
|
3926
|
-
|
3926
|
+
|
3927
3927
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
3928
3928
|
}
|
3929
3929
|
return vresult;
|
@@ -3940,22 +3940,22 @@ _wrap_IGDdatas_level_set(int argc, VALUE *argv, VALUE self) {
|
|
3940
3940
|
int res1 = 0 ;
|
3941
3941
|
int val2 ;
|
3942
3942
|
int ecode2 = 0 ;
|
3943
|
-
|
3943
|
+
|
3944
3944
|
if ((argc < 1) || (argc > 1)) {
|
3945
3945
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3946
3946
|
}
|
3947
3947
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
3948
3948
|
if (!SWIG_IsOK(res1)) {
|
3949
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "level" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3949
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "level" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3950
3950
|
}
|
3951
3951
|
arg1 = (struct IGDdatas *)(argp1);
|
3952
3952
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
3953
3953
|
if (!SWIG_IsOK(ecode2)) {
|
3954
3954
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "level" "', argument " "2"" of type '" "int""'");
|
3955
|
-
}
|
3955
|
+
}
|
3956
3956
|
arg2 = (int)(val2);
|
3957
3957
|
if (arg1) (arg1)->level = arg2;
|
3958
|
-
|
3958
|
+
|
3959
3959
|
return Qnil;
|
3960
3960
|
fail:
|
3961
3961
|
return Qnil;
|
@@ -3969,13 +3969,13 @@ _wrap_IGDdatas_level_get(int argc, VALUE *argv, VALUE self) {
|
|
3969
3969
|
void *argp1 = 0 ;
|
3970
3970
|
int res1 = 0 ;
|
3971
3971
|
VALUE vresult = Qnil;
|
3972
|
-
|
3972
|
+
|
3973
3973
|
if ((argc < 0) || (argc > 0)) {
|
3974
3974
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3975
3975
|
}
|
3976
3976
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
3977
3977
|
if (!SWIG_IsOK(res1)) {
|
3978
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "level" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3978
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "level" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
3979
3979
|
}
|
3980
3980
|
arg1 = (struct IGDdatas *)(argp1);
|
3981
3981
|
result = (int) ((arg1)->level);
|
@@ -3994,22 +3994,22 @@ _wrap_IGDdatas_state_set(int argc, VALUE *argv, VALUE self) {
|
|
3994
3994
|
int res1 = 0 ;
|
3995
3995
|
int val2 ;
|
3996
3996
|
int ecode2 = 0 ;
|
3997
|
-
|
3997
|
+
|
3998
3998
|
if ((argc < 1) || (argc > 1)) {
|
3999
3999
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4000
4000
|
}
|
4001
4001
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4002
4002
|
if (!SWIG_IsOK(res1)) {
|
4003
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4003
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4004
4004
|
}
|
4005
4005
|
arg1 = (struct IGDdatas *)(argp1);
|
4006
4006
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
4007
4007
|
if (!SWIG_IsOK(ecode2)) {
|
4008
4008
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "state" "', argument " "2"" of type '" "int""'");
|
4009
|
-
}
|
4009
|
+
}
|
4010
4010
|
arg2 = (int)(val2);
|
4011
4011
|
if (arg1) (arg1)->state = arg2;
|
4012
|
-
|
4012
|
+
|
4013
4013
|
return Qnil;
|
4014
4014
|
fail:
|
4015
4015
|
return Qnil;
|
@@ -4023,13 +4023,13 @@ _wrap_IGDdatas_state_get(int argc, VALUE *argv, VALUE self) {
|
|
4023
4023
|
void *argp1 = 0 ;
|
4024
4024
|
int res1 = 0 ;
|
4025
4025
|
VALUE vresult = Qnil;
|
4026
|
-
|
4026
|
+
|
4027
4027
|
if ((argc < 0) || (argc > 0)) {
|
4028
4028
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4029
4029
|
}
|
4030
4030
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4031
4031
|
if (!SWIG_IsOK(res1)) {
|
4032
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4032
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4033
4033
|
}
|
4034
4034
|
arg1 = (struct IGDdatas *)(argp1);
|
4035
4035
|
result = (int) ((arg1)->state);
|
@@ -4048,13 +4048,13 @@ _wrap_IGDdatas_controlurl_CIF_set(int argc, VALUE *argv, VALUE self) {
|
|
4048
4048
|
int res1 = 0 ;
|
4049
4049
|
char temp2[(128)] ;
|
4050
4050
|
int res2 ;
|
4051
|
-
|
4051
|
+
|
4052
4052
|
if ((argc < 1) || (argc > 1)) {
|
4053
4053
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4054
4054
|
}
|
4055
4055
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4056
4056
|
if (!SWIG_IsOK(res1)) {
|
4057
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4057
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4058
4058
|
}
|
4059
4059
|
arg1 = (struct IGDdatas *)(argp1);
|
4060
4060
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4077,21 +4077,21 @@ _wrap_IGDdatas_controlurl_CIF_get(int argc, VALUE *argv, VALUE self) {
|
|
4077
4077
|
void *argp1 = 0 ;
|
4078
4078
|
int res1 = 0 ;
|
4079
4079
|
VALUE vresult = Qnil;
|
4080
|
-
|
4080
|
+
|
4081
4081
|
if ((argc < 0) || (argc > 0)) {
|
4082
4082
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4083
4083
|
}
|
4084
4084
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4085
4085
|
if (!SWIG_IsOK(res1)) {
|
4086
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4086
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4087
4087
|
}
|
4088
4088
|
arg1 = (struct IGDdatas *)(argp1);
|
4089
4089
|
result = (char *)(char *) ((arg1)->controlurl_CIF);
|
4090
4090
|
{
|
4091
4091
|
size_t size = (128);
|
4092
|
-
|
4092
|
+
|
4093
4093
|
while (size && (result[size - 1] == '\0')) --size;
|
4094
|
-
|
4094
|
+
|
4095
4095
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4096
4096
|
}
|
4097
4097
|
return vresult;
|
@@ -4108,13 +4108,13 @@ _wrap_IGDdatas_eventsuburl_CIF_set(int argc, VALUE *argv, VALUE self) {
|
|
4108
4108
|
int res1 = 0 ;
|
4109
4109
|
char temp2[(128)] ;
|
4110
4110
|
int res2 ;
|
4111
|
-
|
4111
|
+
|
4112
4112
|
if ((argc < 1) || (argc > 1)) {
|
4113
4113
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4114
4114
|
}
|
4115
4115
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4116
4116
|
if (!SWIG_IsOK(res1)) {
|
4117
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4117
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4118
4118
|
}
|
4119
4119
|
arg1 = (struct IGDdatas *)(argp1);
|
4120
4120
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4137,21 +4137,21 @@ _wrap_IGDdatas_eventsuburl_CIF_get(int argc, VALUE *argv, VALUE self) {
|
|
4137
4137
|
void *argp1 = 0 ;
|
4138
4138
|
int res1 = 0 ;
|
4139
4139
|
VALUE vresult = Qnil;
|
4140
|
-
|
4140
|
+
|
4141
4141
|
if ((argc < 0) || (argc > 0)) {
|
4142
4142
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4143
4143
|
}
|
4144
4144
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4145
4145
|
if (!SWIG_IsOK(res1)) {
|
4146
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4146
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4147
4147
|
}
|
4148
4148
|
arg1 = (struct IGDdatas *)(argp1);
|
4149
4149
|
result = (char *)(char *) ((arg1)->eventsuburl_CIF);
|
4150
4150
|
{
|
4151
4151
|
size_t size = (128);
|
4152
|
-
|
4152
|
+
|
4153
4153
|
while (size && (result[size - 1] == '\0')) --size;
|
4154
|
-
|
4154
|
+
|
4155
4155
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4156
4156
|
}
|
4157
4157
|
return vresult;
|
@@ -4168,13 +4168,13 @@ _wrap_IGDdatas_scpdurl_CIF_set(int argc, VALUE *argv, VALUE self) {
|
|
4168
4168
|
int res1 = 0 ;
|
4169
4169
|
char temp2[(128)] ;
|
4170
4170
|
int res2 ;
|
4171
|
-
|
4171
|
+
|
4172
4172
|
if ((argc < 1) || (argc > 1)) {
|
4173
4173
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4174
4174
|
}
|
4175
4175
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4176
4176
|
if (!SWIG_IsOK(res1)) {
|
4177
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4177
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4178
4178
|
}
|
4179
4179
|
arg1 = (struct IGDdatas *)(argp1);
|
4180
4180
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4197,21 +4197,21 @@ _wrap_IGDdatas_scpdurl_CIF_get(int argc, VALUE *argv, VALUE self) {
|
|
4197
4197
|
void *argp1 = 0 ;
|
4198
4198
|
int res1 = 0 ;
|
4199
4199
|
VALUE vresult = Qnil;
|
4200
|
-
|
4200
|
+
|
4201
4201
|
if ((argc < 0) || (argc > 0)) {
|
4202
4202
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4203
4203
|
}
|
4204
4204
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4205
4205
|
if (!SWIG_IsOK(res1)) {
|
4206
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4206
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4207
4207
|
}
|
4208
4208
|
arg1 = (struct IGDdatas *)(argp1);
|
4209
4209
|
result = (char *)(char *) ((arg1)->scpdurl_CIF);
|
4210
4210
|
{
|
4211
4211
|
size_t size = (128);
|
4212
|
-
|
4212
|
+
|
4213
4213
|
while (size && (result[size - 1] == '\0')) --size;
|
4214
|
-
|
4214
|
+
|
4215
4215
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4216
4216
|
}
|
4217
4217
|
return vresult;
|
@@ -4228,13 +4228,13 @@ _wrap_IGDdatas_servicetype_CIF_set(int argc, VALUE *argv, VALUE self) {
|
|
4228
4228
|
int res1 = 0 ;
|
4229
4229
|
char temp2[(128)] ;
|
4230
4230
|
int res2 ;
|
4231
|
-
|
4231
|
+
|
4232
4232
|
if ((argc < 1) || (argc > 1)) {
|
4233
4233
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4234
4234
|
}
|
4235
4235
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4236
4236
|
if (!SWIG_IsOK(res1)) {
|
4237
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4237
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4238
4238
|
}
|
4239
4239
|
arg1 = (struct IGDdatas *)(argp1);
|
4240
4240
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4257,21 +4257,21 @@ _wrap_IGDdatas_servicetype_CIF_get(int argc, VALUE *argv, VALUE self) {
|
|
4257
4257
|
void *argp1 = 0 ;
|
4258
4258
|
int res1 = 0 ;
|
4259
4259
|
VALUE vresult = Qnil;
|
4260
|
-
|
4260
|
+
|
4261
4261
|
if ((argc < 0) || (argc > 0)) {
|
4262
4262
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4263
4263
|
}
|
4264
4264
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4265
4265
|
if (!SWIG_IsOK(res1)) {
|
4266
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4266
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4267
4267
|
}
|
4268
4268
|
arg1 = (struct IGDdatas *)(argp1);
|
4269
4269
|
result = (char *)(char *) ((arg1)->servicetype_CIF);
|
4270
4270
|
{
|
4271
4271
|
size_t size = (128);
|
4272
|
-
|
4272
|
+
|
4273
4273
|
while (size && (result[size - 1] == '\0')) --size;
|
4274
|
-
|
4274
|
+
|
4275
4275
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4276
4276
|
}
|
4277
4277
|
return vresult;
|
@@ -4288,13 +4288,13 @@ _wrap_IGDdatas_devicetype_CIF_set(int argc, VALUE *argv, VALUE self) {
|
|
4288
4288
|
int res1 = 0 ;
|
4289
4289
|
char temp2[(128)] ;
|
4290
4290
|
int res2 ;
|
4291
|
-
|
4291
|
+
|
4292
4292
|
if ((argc < 1) || (argc > 1)) {
|
4293
4293
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4294
4294
|
}
|
4295
4295
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4296
4296
|
if (!SWIG_IsOK(res1)) {
|
4297
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4297
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4298
4298
|
}
|
4299
4299
|
arg1 = (struct IGDdatas *)(argp1);
|
4300
4300
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4317,21 +4317,21 @@ _wrap_IGDdatas_devicetype_CIF_get(int argc, VALUE *argv, VALUE self) {
|
|
4317
4317
|
void *argp1 = 0 ;
|
4318
4318
|
int res1 = 0 ;
|
4319
4319
|
VALUE vresult = Qnil;
|
4320
|
-
|
4320
|
+
|
4321
4321
|
if ((argc < 0) || (argc > 0)) {
|
4322
4322
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4323
4323
|
}
|
4324
4324
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4325
4325
|
if (!SWIG_IsOK(res1)) {
|
4326
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4326
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype_CIF" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4327
4327
|
}
|
4328
4328
|
arg1 = (struct IGDdatas *)(argp1);
|
4329
4329
|
result = (char *)(char *) ((arg1)->devicetype_CIF);
|
4330
4330
|
{
|
4331
4331
|
size_t size = (128);
|
4332
|
-
|
4332
|
+
|
4333
4333
|
while (size && (result[size - 1] == '\0')) --size;
|
4334
|
-
|
4334
|
+
|
4335
4335
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4336
4336
|
}
|
4337
4337
|
return vresult;
|
@@ -4348,13 +4348,13 @@ _wrap_IGDdatas_controlurl_set(int argc, VALUE *argv, VALUE self) {
|
|
4348
4348
|
int res1 = 0 ;
|
4349
4349
|
char temp2[(128)] ;
|
4350
4350
|
int res2 ;
|
4351
|
-
|
4351
|
+
|
4352
4352
|
if ((argc < 1) || (argc > 1)) {
|
4353
4353
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4354
4354
|
}
|
4355
4355
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4356
4356
|
if (!SWIG_IsOK(res1)) {
|
4357
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4357
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4358
4358
|
}
|
4359
4359
|
arg1 = (struct IGDdatas *)(argp1);
|
4360
4360
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4377,21 +4377,21 @@ _wrap_IGDdatas_controlurl_get(int argc, VALUE *argv, VALUE self) {
|
|
4377
4377
|
void *argp1 = 0 ;
|
4378
4378
|
int res1 = 0 ;
|
4379
4379
|
VALUE vresult = Qnil;
|
4380
|
-
|
4380
|
+
|
4381
4381
|
if ((argc < 0) || (argc > 0)) {
|
4382
4382
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4383
4383
|
}
|
4384
4384
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4385
4385
|
if (!SWIG_IsOK(res1)) {
|
4386
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4386
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "controlurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4387
4387
|
}
|
4388
4388
|
arg1 = (struct IGDdatas *)(argp1);
|
4389
4389
|
result = (char *)(char *) ((arg1)->controlurl);
|
4390
4390
|
{
|
4391
4391
|
size_t size = (128);
|
4392
|
-
|
4392
|
+
|
4393
4393
|
while (size && (result[size - 1] == '\0')) --size;
|
4394
|
-
|
4394
|
+
|
4395
4395
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4396
4396
|
}
|
4397
4397
|
return vresult;
|
@@ -4408,13 +4408,13 @@ _wrap_IGDdatas_eventsuburl_set(int argc, VALUE *argv, VALUE self) {
|
|
4408
4408
|
int res1 = 0 ;
|
4409
4409
|
char temp2[(128)] ;
|
4410
4410
|
int res2 ;
|
4411
|
-
|
4411
|
+
|
4412
4412
|
if ((argc < 1) || (argc > 1)) {
|
4413
4413
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4414
4414
|
}
|
4415
4415
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4416
4416
|
if (!SWIG_IsOK(res1)) {
|
4417
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4417
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4418
4418
|
}
|
4419
4419
|
arg1 = (struct IGDdatas *)(argp1);
|
4420
4420
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4437,21 +4437,21 @@ _wrap_IGDdatas_eventsuburl_get(int argc, VALUE *argv, VALUE self) {
|
|
4437
4437
|
void *argp1 = 0 ;
|
4438
4438
|
int res1 = 0 ;
|
4439
4439
|
VALUE vresult = Qnil;
|
4440
|
-
|
4440
|
+
|
4441
4441
|
if ((argc < 0) || (argc > 0)) {
|
4442
4442
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4443
4443
|
}
|
4444
4444
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4445
4445
|
if (!SWIG_IsOK(res1)) {
|
4446
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4446
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eventsuburl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4447
4447
|
}
|
4448
4448
|
arg1 = (struct IGDdatas *)(argp1);
|
4449
4449
|
result = (char *)(char *) ((arg1)->eventsuburl);
|
4450
4450
|
{
|
4451
4451
|
size_t size = (128);
|
4452
|
-
|
4452
|
+
|
4453
4453
|
while (size && (result[size - 1] == '\0')) --size;
|
4454
|
-
|
4454
|
+
|
4455
4455
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4456
4456
|
}
|
4457
4457
|
return vresult;
|
@@ -4468,13 +4468,13 @@ _wrap_IGDdatas_scpdurl_set(int argc, VALUE *argv, VALUE self) {
|
|
4468
4468
|
int res1 = 0 ;
|
4469
4469
|
char temp2[(128)] ;
|
4470
4470
|
int res2 ;
|
4471
|
-
|
4471
|
+
|
4472
4472
|
if ((argc < 1) || (argc > 1)) {
|
4473
4473
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4474
4474
|
}
|
4475
4475
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4476
4476
|
if (!SWIG_IsOK(res1)) {
|
4477
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4477
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4478
4478
|
}
|
4479
4479
|
arg1 = (struct IGDdatas *)(argp1);
|
4480
4480
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4497,21 +4497,21 @@ _wrap_IGDdatas_scpdurl_get(int argc, VALUE *argv, VALUE self) {
|
|
4497
4497
|
void *argp1 = 0 ;
|
4498
4498
|
int res1 = 0 ;
|
4499
4499
|
VALUE vresult = Qnil;
|
4500
|
-
|
4500
|
+
|
4501
4501
|
if ((argc < 0) || (argc > 0)) {
|
4502
4502
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4503
4503
|
}
|
4504
4504
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4505
4505
|
if (!SWIG_IsOK(res1)) {
|
4506
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4506
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scpdurl" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4507
4507
|
}
|
4508
4508
|
arg1 = (struct IGDdatas *)(argp1);
|
4509
4509
|
result = (char *)(char *) ((arg1)->scpdurl);
|
4510
4510
|
{
|
4511
4511
|
size_t size = (128);
|
4512
|
-
|
4512
|
+
|
4513
4513
|
while (size && (result[size - 1] == '\0')) --size;
|
4514
|
-
|
4514
|
+
|
4515
4515
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4516
4516
|
}
|
4517
4517
|
return vresult;
|
@@ -4528,13 +4528,13 @@ _wrap_IGDdatas_servicetype_set(int argc, VALUE *argv, VALUE self) {
|
|
4528
4528
|
int res1 = 0 ;
|
4529
4529
|
char temp2[(128)] ;
|
4530
4530
|
int res2 ;
|
4531
|
-
|
4531
|
+
|
4532
4532
|
if ((argc < 1) || (argc > 1)) {
|
4533
4533
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4534
4534
|
}
|
4535
4535
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4536
4536
|
if (!SWIG_IsOK(res1)) {
|
4537
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4537
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4538
4538
|
}
|
4539
4539
|
arg1 = (struct IGDdatas *)(argp1);
|
4540
4540
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4557,21 +4557,21 @@ _wrap_IGDdatas_servicetype_get(int argc, VALUE *argv, VALUE self) {
|
|
4557
4557
|
void *argp1 = 0 ;
|
4558
4558
|
int res1 = 0 ;
|
4559
4559
|
VALUE vresult = Qnil;
|
4560
|
-
|
4560
|
+
|
4561
4561
|
if ((argc < 0) || (argc > 0)) {
|
4562
4562
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4563
4563
|
}
|
4564
4564
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4565
4565
|
if (!SWIG_IsOK(res1)) {
|
4566
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4566
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "servicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4567
4567
|
}
|
4568
4568
|
arg1 = (struct IGDdatas *)(argp1);
|
4569
4569
|
result = (char *)(char *) ((arg1)->servicetype);
|
4570
4570
|
{
|
4571
4571
|
size_t size = (128);
|
4572
|
-
|
4572
|
+
|
4573
4573
|
while (size && (result[size - 1] == '\0')) --size;
|
4574
|
-
|
4574
|
+
|
4575
4575
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4576
4576
|
}
|
4577
4577
|
return vresult;
|
@@ -4588,13 +4588,13 @@ _wrap_IGDdatas_devicetype_set(int argc, VALUE *argv, VALUE self) {
|
|
4588
4588
|
int res1 = 0 ;
|
4589
4589
|
char temp2[(128)] ;
|
4590
4590
|
int res2 ;
|
4591
|
-
|
4591
|
+
|
4592
4592
|
if ((argc < 1) || (argc > 1)) {
|
4593
4593
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4594
4594
|
}
|
4595
4595
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4596
4596
|
if (!SWIG_IsOK(res1)) {
|
4597
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4597
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4598
4598
|
}
|
4599
4599
|
arg1 = (struct IGDdatas *)(argp1);
|
4600
4600
|
res2 = SWIG_AsCharArray(argv[0], temp2, (128));
|
@@ -4617,21 +4617,21 @@ _wrap_IGDdatas_devicetype_get(int argc, VALUE *argv, VALUE self) {
|
|
4617
4617
|
void *argp1 = 0 ;
|
4618
4618
|
int res1 = 0 ;
|
4619
4619
|
VALUE vresult = Qnil;
|
4620
|
-
|
4620
|
+
|
4621
4621
|
if ((argc < 0) || (argc > 0)) {
|
4622
4622
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4623
4623
|
}
|
4624
4624
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4625
4625
|
if (!SWIG_IsOK(res1)) {
|
4626
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4626
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "devicetype" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4627
4627
|
}
|
4628
4628
|
arg1 = (struct IGDdatas *)(argp1);
|
4629
4629
|
result = (char *)(char *) ((arg1)->devicetype);
|
4630
4630
|
{
|
4631
4631
|
size_t size = (128);
|
4632
|
-
|
4632
|
+
|
4633
4633
|
while (size && (result[size - 1] == '\0')) --size;
|
4634
|
-
|
4634
|
+
|
4635
4635
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
4636
4636
|
}
|
4637
4637
|
return vresult;
|
@@ -4647,25 +4647,25 @@ _wrap_IGDdatas_allocate(VALUE self) {
|
|
4647
4647
|
SWIGINTERN VALUE
|
4648
4648
|
_wrap_IGDdatas_allocate(int argc, VALUE *argv, VALUE self) {
|
4649
4649
|
#endif
|
4650
|
-
|
4651
|
-
|
4650
|
+
|
4651
|
+
|
4652
4652
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_IGDdatas);
|
4653
4653
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
4654
4654
|
rb_obj_call_init(vresult, argc, argv);
|
4655
4655
|
#endif
|
4656
4656
|
return vresult;
|
4657
4657
|
}
|
4658
|
-
|
4658
|
+
|
4659
4659
|
|
4660
4660
|
SWIGINTERN VALUE
|
4661
4661
|
_wrap_new_IGDdatas(int argc, VALUE *argv, VALUE self) {
|
4662
4662
|
struct IGDdatas *result = 0 ;
|
4663
|
-
|
4663
|
+
|
4664
4664
|
if ((argc < 0) || (argc > 0)) {
|
4665
4665
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4666
4666
|
}
|
4667
4667
|
result = (struct IGDdatas *)(struct IGDdatas *) calloc(1, sizeof(struct IGDdatas));DATA_PTR(self) = result;
|
4668
|
-
|
4668
|
+
|
4669
4669
|
return self;
|
4670
4670
|
fail:
|
4671
4671
|
return Qnil;
|
@@ -4688,13 +4688,13 @@ _wrap_IGDstartelt(int argc, VALUE *argv, VALUE self) {
|
|
4688
4688
|
int alloc2 = 0 ;
|
4689
4689
|
int val3 ;
|
4690
4690
|
int ecode3 = 0 ;
|
4691
|
-
|
4691
|
+
|
4692
4692
|
if ((argc < 3) || (argc > 3)) {
|
4693
4693
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4694
4694
|
}
|
4695
4695
|
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4696
4696
|
if (!SWIG_IsOK(res1)) {
|
4697
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IGDstartelt" "', argument " "1"" of type '" "void *""'");
|
4697
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IGDstartelt" "', argument " "1"" of type '" "void *""'");
|
4698
4698
|
}
|
4699
4699
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
4700
4700
|
if (!SWIG_IsOK(res2)) {
|
@@ -4704,7 +4704,7 @@ _wrap_IGDstartelt(int argc, VALUE *argv, VALUE self) {
|
|
4704
4704
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4705
4705
|
if (!SWIG_IsOK(ecode3)) {
|
4706
4706
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IGDstartelt" "', argument " "3"" of type '" "int""'");
|
4707
|
-
}
|
4707
|
+
}
|
4708
4708
|
arg3 = (int)(val3);
|
4709
4709
|
IGDstartelt(arg1,(char const *)arg2,arg3);
|
4710
4710
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
@@ -4726,13 +4726,13 @@ _wrap_IGDendelt(int argc, VALUE *argv, VALUE self) {
|
|
4726
4726
|
int alloc2 = 0 ;
|
4727
4727
|
int val3 ;
|
4728
4728
|
int ecode3 = 0 ;
|
4729
|
-
|
4729
|
+
|
4730
4730
|
if ((argc < 3) || (argc > 3)) {
|
4731
4731
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4732
4732
|
}
|
4733
4733
|
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4734
4734
|
if (!SWIG_IsOK(res1)) {
|
4735
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IGDendelt" "', argument " "1"" of type '" "void *""'");
|
4735
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IGDendelt" "', argument " "1"" of type '" "void *""'");
|
4736
4736
|
}
|
4737
4737
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
4738
4738
|
if (!SWIG_IsOK(res2)) {
|
@@ -4742,7 +4742,7 @@ _wrap_IGDendelt(int argc, VALUE *argv, VALUE self) {
|
|
4742
4742
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4743
4743
|
if (!SWIG_IsOK(ecode3)) {
|
4744
4744
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IGDendelt" "', argument " "3"" of type '" "int""'");
|
4745
|
-
}
|
4745
|
+
}
|
4746
4746
|
arg3 = (int)(val3);
|
4747
4747
|
IGDendelt(arg1,(char const *)arg2,arg3);
|
4748
4748
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
@@ -4764,13 +4764,13 @@ _wrap_IGDdata(int argc, VALUE *argv, VALUE self) {
|
|
4764
4764
|
int alloc2 = 0 ;
|
4765
4765
|
int val3 ;
|
4766
4766
|
int ecode3 = 0 ;
|
4767
|
-
|
4767
|
+
|
4768
4768
|
if ((argc < 3) || (argc > 3)) {
|
4769
4769
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4770
4770
|
}
|
4771
4771
|
res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
|
4772
4772
|
if (!SWIG_IsOK(res1)) {
|
4773
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IGDdata" "', argument " "1"" of type '" "void *""'");
|
4773
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IGDdata" "', argument " "1"" of type '" "void *""'");
|
4774
4774
|
}
|
4775
4775
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
4776
4776
|
if (!SWIG_IsOK(res2)) {
|
@@ -4780,7 +4780,7 @@ _wrap_IGDdata(int argc, VALUE *argv, VALUE self) {
|
|
4780
4780
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4781
4781
|
if (!SWIG_IsOK(ecode3)) {
|
4782
4782
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IGDdata" "', argument " "3"" of type '" "int""'");
|
4783
|
-
}
|
4783
|
+
}
|
4784
4784
|
arg3 = (int)(val3);
|
4785
4785
|
IGDdata(arg1,(char const *)arg2,arg3);
|
4786
4786
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
@@ -4796,13 +4796,13 @@ _wrap_printIGD(int argc, VALUE *argv, VALUE self) {
|
|
4796
4796
|
struct IGDdatas *arg1 = (struct IGDdatas *) 0 ;
|
4797
4797
|
void *argp1 = 0 ;
|
4798
4798
|
int res1 = 0 ;
|
4799
|
-
|
4799
|
+
|
4800
4800
|
if ((argc < 1) || (argc > 1)) {
|
4801
4801
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4802
4802
|
}
|
4803
4803
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_IGDdatas, 0 | 0 );
|
4804
4804
|
if (!SWIG_IsOK(res1)) {
|
4805
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "printIGD" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4805
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "printIGD" "', argument " "1"" of type '" "struct IGDdatas *""'");
|
4806
4806
|
}
|
4807
4807
|
arg1 = (struct IGDdatas *)(argp1);
|
4808
4808
|
printIGD(arg1);
|
@@ -4856,18 +4856,18 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4856
4856
|
|
4857
4857
|
/* -----------------------------------------------------------------------------
|
4858
4858
|
* Type initialization:
|
4859
|
-
* This problem is tough by the requirement that no dynamic
|
4860
|
-
* memory is used. Also, since swig_type_info structures store pointers to
|
4859
|
+
* This problem is tough by the requirement that no dynamic
|
4860
|
+
* memory is used. Also, since swig_type_info structures store pointers to
|
4861
4861
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
4862
|
-
* to swig_type_info structures, we need some lookup code at initialization.
|
4863
|
-
* The idea is that swig generates all the structures that are needed.
|
4864
|
-
* The runtime then collects these partially filled structures.
|
4865
|
-
* The SWIG_InitializeModule function takes these initial arrays out of
|
4862
|
+
* to swig_type_info structures, we need some lookup code at initialization.
|
4863
|
+
* The idea is that swig generates all the structures that are needed.
|
4864
|
+
* The runtime then collects these partially filled structures.
|
4865
|
+
* The SWIG_InitializeModule function takes these initial arrays out of
|
4866
4866
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
4867
4867
|
* array with the correct data and linking the correct swig_cast_info
|
4868
4868
|
* structures together.
|
4869
4869
|
*
|
4870
|
-
* The generated swig_type_info structures are assigned staticly to an initial
|
4870
|
+
* The generated swig_type_info structures are assigned staticly to an initial
|
4871
4871
|
* array. We just loop through that array, and handle each type individually.
|
4872
4872
|
* First we lookup if this type has been already loaded, and if so, use the
|
4873
4873
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -4877,17 +4877,17 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4877
4877
|
* a column is one of the swig_cast_info structures for that type.
|
4878
4878
|
* The cast_initial array is actually an array of arrays, because each row has
|
4879
4879
|
* a variable number of columns. So to actually build the cast linked list,
|
4880
|
-
* we find the array of casts associated with the type, and loop through it
|
4880
|
+
* we find the array of casts associated with the type, and loop through it
|
4881
4881
|
* adding the casts to the list. The one last trick we need to do is making
|
4882
4882
|
* sure the type pointer in the swig_cast_info struct is correct.
|
4883
4883
|
*
|
4884
|
-
* First off, we lookup the cast->type name to see if it is already loaded.
|
4884
|
+
* First off, we lookup the cast->type name to see if it is already loaded.
|
4885
4885
|
* There are three cases to handle:
|
4886
4886
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
4887
4887
|
* casting info to has not been loaded (it is in this module), THEN we
|
4888
4888
|
* replace the cast->type pointer with the type pointer that has already
|
4889
4889
|
* been loaded.
|
4890
|
-
* 2) If BOTH types (the one we are adding casting info to, and the
|
4890
|
+
* 2) If BOTH types (the one we are adding casting info to, and the
|
4891
4891
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
4892
4892
|
* the previous module so we just ignore it.
|
4893
4893
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
@@ -4957,7 +4957,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
4957
4957
|
swig_type_info *type = 0;
|
4958
4958
|
swig_type_info *ret;
|
4959
4959
|
swig_cast_info *cast;
|
4960
|
-
|
4960
|
+
|
4961
4961
|
#ifdef SWIGRUNTIME_DEBUG
|
4962
4962
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
4963
4963
|
#endif
|
@@ -4984,7 +4984,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
4984
4984
|
/* Insert casting types */
|
4985
4985
|
cast = swig_module.cast_initial[i];
|
4986
4986
|
while (cast->type) {
|
4987
|
-
|
4987
|
+
|
4988
4988
|
/* Don't need to add information already in the list */
|
4989
4989
|
ret = 0;
|
4990
4990
|
#ifdef SWIGRUNTIME_DEBUG
|
@@ -5088,22 +5088,22 @@ extern "C"
|
|
5088
5088
|
#endif
|
5089
5089
|
SWIGEXPORT void Init_MiniUPnP(void) {
|
5090
5090
|
size_t i;
|
5091
|
-
|
5091
|
+
|
5092
5092
|
SWIG_InitRuntime();
|
5093
5093
|
mMiniUPnP = rb_define_module("MiniUPnP");
|
5094
|
-
|
5094
|
+
|
5095
5095
|
SWIG_InitializeModule(0);
|
5096
5096
|
for (i = 0; i < swig_module.size; i++) {
|
5097
5097
|
SWIG_define_class(swig_module.types[i]);
|
5098
5098
|
}
|
5099
|
-
|
5099
|
+
|
5100
5100
|
SWIG_RubyInitializeTrackings();
|
5101
5101
|
rb_define_module_function(mMiniUPnP, "new_uintp", _wrap_new_uintp, -1);
|
5102
5102
|
rb_define_module_function(mMiniUPnP, "copy_uintp", _wrap_copy_uintp, -1);
|
5103
5103
|
rb_define_module_function(mMiniUPnP, "delete_uintp", _wrap_delete_uintp, -1);
|
5104
5104
|
rb_define_module_function(mMiniUPnP, "uintp_assign", _wrap_uintp_assign, -1);
|
5105
5105
|
rb_define_module_function(mMiniUPnP, "uintp_value", _wrap_uintp_value, -1);
|
5106
|
-
|
5106
|
+
|
5107
5107
|
cUPNParg.klass = rb_define_class_under(mMiniUPnP, "UPNParg", rb_cObject);
|
5108
5108
|
SWIG_TypeClientData(SWIGTYPE_p_UPNParg, (void *) &cUPNParg);
|
5109
5109
|
rb_define_alloc_func(cUPNParg.klass, _wrap_UPNParg_allocate);
|
@@ -5116,7 +5116,7 @@ SWIGEXPORT void Init_MiniUPnP(void) {
|
|
5116
5116
|
cUPNParg.destroy = (void (*)(void *)) free_UPNParg;
|
5117
5117
|
cUPNParg.trackObjects = 0;
|
5118
5118
|
rb_define_module_function(mMiniUPnP, "simpleUPnPcommand", _wrap_simpleUPnPcommand, -1);
|
5119
|
-
|
5119
|
+
|
5120
5120
|
cUPNPDev.klass = rb_define_class_under(mMiniUPnP, "UPNPDev", rb_cObject);
|
5121
5121
|
SWIG_TypeClientData(SWIGTYPE_p_UPNPDev, (void *) &cUPNPDev);
|
5122
5122
|
rb_define_alloc_func(cUPNPDev.klass, _wrap_UPNPDev_allocate);
|
@@ -5135,7 +5135,7 @@ SWIGEXPORT void Init_MiniUPnP(void) {
|
|
5135
5135
|
rb_define_module_function(mMiniUPnP, "upnpDiscover", _wrap_upnpDiscover, -1);
|
5136
5136
|
rb_define_module_function(mMiniUPnP, "freeUPNPDevlist", _wrap_freeUPNPDevlist, -1);
|
5137
5137
|
rb_define_module_function(mMiniUPnP, "parserootdesc", _wrap_parserootdesc, -1);
|
5138
|
-
|
5138
|
+
|
5139
5139
|
cUPNPUrls.klass = rb_define_class_under(mMiniUPnP, "UPNPUrls", rb_cObject);
|
5140
5140
|
SWIG_TypeClientData(SWIGTYPE_p_UPNPUrls, (void *) &cUPNPUrls);
|
5141
5141
|
rb_define_alloc_func(cUPNPUrls.klass, _wrap_UPNPUrls_allocate);
|
@@ -5171,7 +5171,7 @@ SWIGEXPORT void Init_MiniUPnP(void) {
|
|
5171
5171
|
rb_define_module_function(mMiniUPnP, "UPNP_GetSpecificPortMappingEntry", _wrap_UPNP_GetSpecificPortMappingEntry, -1);
|
5172
5172
|
rb_define_module_function(mMiniUPnP, "UPNP_GetGenericPortMappingEntry", _wrap_UPNP_GetGenericPortMappingEntry, -1);
|
5173
5173
|
rb_define_const(mMiniUPnP, "MINIUPNPC_URL_MAXSIZE", SWIG_From_int((int)((128))));
|
5174
|
-
|
5174
|
+
|
5175
5175
|
cIGDdatas.klass = rb_define_class_under(mMiniUPnP, "IGDdatas", rb_cObject);
|
5176
5176
|
SWIG_TypeClientData(SWIGTYPE_p_IGDdatas, (void *) &cIGDdatas);
|
5177
5177
|
rb_define_alloc_func(cIGDdatas.klass, _wrap_IGDdatas_allocate);
|