Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
391da66c
提交
391da66c
authored
9月 06, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reswig
上级
2ae688a3
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
343 行增加
和
46 行删除
+343
-46
esl_wrap.cpp
libs/esl/java/esl_wrap.cpp
+25
-0
ESLconnection.java
libs/esl/java/org/freeswitch/esl/ESLconnection.java
+4
-0
eslJNI.java
libs/esl/java/org/freeswitch/esl/eslJNI.java
+1
-0
esl_wrap.cpp
libs/esl/lua/esl_wrap.cpp
+38
-0
ESLPINVOKE.cs
libs/esl/managed/ESLPINVOKE.cs
+3
-0
ESLconnection.cs
libs/esl/managed/ESLconnection.cs
+5
-0
esl_wrap.cpp
libs/esl/managed/esl_wrap.cpp
+16
-0
ESL.pm
libs/esl/perl/ESL.pm
+1
-0
esl_wrap.cpp
libs/esl/perl/esl_wrap.cpp
+52
-0
ESL.php
libs/esl/php/ESL.php
+8
-0
esl_wrap.cpp
libs/esl/php/esl_wrap.cpp
+88
-45
php_ESL.h
libs/esl/php/php_ESL.h
+1
-0
ESL.py
libs/esl/python/ESL.py
+1
-0
esl_wrap.cpp
libs/esl/python/esl_wrap.cpp
+53
-0
esl_wrap.cpp
libs/esl/ruby/esl_wrap.cpp
+47
-1
没有找到文件。
libs/esl/java/esl_wrap.cpp
浏览文件 @
391da66c
...
...
@@ -904,6 +904,31 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_esl_eslJNI_ESLconnection_1sendEvent
}
SWIGEXPORT
jint
JNICALL
Java_org_freeswitch_esl_eslJNI_ESLconnection_1sendMSG
(
JNIEnv
*
jenv
,
jclass
jcls
,
jlong
jarg1
,
jobject
jarg1_
,
jlong
jarg2
,
jobject
jarg2_
,
jstring
jarg3
)
{
jint
jresult
=
0
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
ESLevent
*
arg2
=
(
ESLevent
*
)
0
;
char
*
arg3
=
(
char
*
)
NULL
;
int
result
;
(
void
)
jenv
;
(
void
)
jcls
;
(
void
)
jarg1_
;
(
void
)
jarg2_
;
arg1
=
*
(
ESLconnection
**
)
&
jarg1
;
arg2
=
*
(
ESLevent
**
)
&
jarg2
;
arg3
=
0
;
if
(
jarg3
)
{
arg3
=
(
char
*
)
jenv
->
GetStringUTFChars
(
jarg3
,
0
);
if
(
!
arg3
)
return
0
;
}
result
=
(
int
)(
arg1
)
->
sendMSG
(
arg2
,(
char
const
*
)
arg3
);
jresult
=
(
jint
)
result
;
if
(
arg3
)
jenv
->
ReleaseStringUTFChars
(
jarg3
,
(
const
char
*
)
arg3
);
return
jresult
;
}
SWIGEXPORT
jlong
JNICALL
Java_org_freeswitch_esl_eslJNI_ESLconnection_1recvEvent
(
JNIEnv
*
jenv
,
jclass
jcls
,
jlong
jarg1
,
jobject
jarg1_
)
{
jlong
jresult
=
0
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
...
...
libs/esl/java/org/freeswitch/esl/ESLconnection.java
浏览文件 @
391da66c
...
...
@@ -82,6 +82,10 @@ public class ESLconnection {
return
(
cPtr
==
0
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
}
public
int
sendMSG
(
ESLevent
send_me
,
String
uuid
)
{
return
eslJNI
.
ESLconnection_sendMSG
(
swigCPtr
,
this
,
ESLevent
.
getCPtr
(
send_me
),
send_me
,
uuid
);
}
public
ESLevent
recvEvent
()
{
long
cPtr
=
eslJNI
.
ESLconnection_recvEvent
(
swigCPtr
,
this
);
return
(
cPtr
==
0
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
...
...
libs/esl/java/org/freeswitch/esl/eslJNI.java
浏览文件 @
391da66c
...
...
@@ -43,6 +43,7 @@ class eslJNI {
public
final
static
native
long
ESLconnection_api
(
long
jarg1
,
ESLconnection
jarg1_
,
String
jarg2
,
String
jarg3
);
public
final
static
native
long
ESLconnection_bgapi
(
long
jarg1
,
ESLconnection
jarg1_
,
String
jarg2
,
String
jarg3
,
String
jarg4
);
public
final
static
native
long
ESLconnection_sendEvent
(
long
jarg1
,
ESLconnection
jarg1_
,
long
jarg2
,
ESLevent
jarg2_
);
public
final
static
native
int
ESLconnection_sendMSG
(
long
jarg1
,
ESLconnection
jarg1_
,
long
jarg2
,
ESLevent
jarg2_
,
String
jarg3
);
public
final
static
native
long
ESLconnection_recvEvent
(
long
jarg1
,
ESLconnection
jarg1_
);
public
final
static
native
long
ESLconnection_recvEventTimed
(
long
jarg1
,
ESLconnection
jarg1_
,
int
jarg2
);
public
final
static
native
long
ESLconnection_filter
(
long
jarg1
,
ESLconnection
jarg1_
,
String
jarg2
,
String
jarg3
);
...
...
libs/esl/lua/esl_wrap.cpp
浏览文件 @
391da66c
...
...
@@ -2632,6 +2632,43 @@ fail:
}
static
int
_wrap_ESLconnection_sendMSG
(
lua_State
*
L
)
{
int
SWIG_arg
=
-
1
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
ESLevent
*
arg2
=
(
ESLevent
*
)
0
;
char
*
arg3
=
(
char
*
)
NULL
;
int
result
;
SWIG_check_num_args
(
"sendMSG"
,
2
,
3
)
if
(
!
SWIG_isptrtype
(
L
,
1
))
SWIG_fail_arg
(
"sendMSG"
,
1
,
"ESLconnection *"
);
if
(
!
SWIG_isptrtype
(
L
,
2
))
SWIG_fail_arg
(
"sendMSG"
,
2
,
"ESLevent *"
);
if
(
lua_gettop
(
L
)
>=
3
&&
!
lua_isstring
(
L
,
3
))
SWIG_fail_arg
(
"sendMSG"
,
3
,
"char const *"
);
if
(
!
SWIG_IsOK
(
SWIG_ConvertPtr
(
L
,
1
,(
void
**
)
&
arg1
,
SWIGTYPE_p_ESLconnection
,
0
))){
SWIG_fail_ptr
(
"ESLconnection_sendMSG"
,
1
,
SWIGTYPE_p_ESLconnection
);
}
if
(
!
SWIG_IsOK
(
SWIG_ConvertPtr
(
L
,
2
,(
void
**
)
&
arg2
,
SWIGTYPE_p_ESLevent
,
0
))){
SWIG_fail_ptr
(
"ESLconnection_sendMSG"
,
2
,
SWIGTYPE_p_ESLevent
);
}
if
(
lua_gettop
(
L
)
>=
3
){
arg3
=
(
char
*
)
lua_tostring
(
L
,
3
);
}
result
=
(
int
)(
arg1
)
->
sendMSG
(
arg2
,(
char
const
*
)
arg3
);
SWIG_arg
=
0
;
lua_pushnumber
(
L
,
(
lua_Number
)
result
);
SWIG_arg
++
;
return
SWIG_arg
;
if
(
0
)
SWIG_fail
;
fail:
lua_error
(
L
);
return
SWIG_arg
;
}
static
int
_wrap_ESLconnection_recvEvent
(
lua_State
*
L
)
{
int
SWIG_arg
=
-
1
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
...
...
@@ -2917,6 +2954,7 @@ static swig_lua_method swig_ESLconnection_methods[] = {
{
"api"
,
_wrap_ESLconnection_api
},
{
"bgapi"
,
_wrap_ESLconnection_bgapi
},
{
"sendEvent"
,
_wrap_ESLconnection_sendEvent
},
{
"sendMSG"
,
_wrap_ESLconnection_sendMSG
},
{
"recvEvent"
,
_wrap_ESLconnection_recvEvent
},
{
"recvEventTimed"
,
_wrap_ESLconnection_recvEventTimed
},
{
"filter"
,
_wrap_ESLconnection_filter
},
...
...
libs/esl/managed/ESLPINVOKE.cs
浏览文件 @
391da66c
...
...
@@ -286,6 +286,9 @@ class ESLPINVOKE {
[
DllImport
(
"ESL"
,
EntryPoint
=
"CSharp_ESLconnection_SendEvent"
)]
public
static
extern
IntPtr
ESLconnection_SendEvent
(
HandleRef
jarg1
,
HandleRef
jarg2
);
[
DllImport
(
"ESL"
,
EntryPoint
=
"CSharp_ESLconnection_sendMSG"
)]
public
static
extern
int
ESLconnection_sendMSG
(
HandleRef
jarg1
,
HandleRef
jarg2
,
string
jarg3
);
[
DllImport
(
"ESL"
,
EntryPoint
=
"CSharp_ESLconnection_RecvEvent"
)]
public
static
extern
IntPtr
ESLconnection_RecvEvent
(
HandleRef
jarg1
);
...
...
libs/esl/managed/ESLconnection.cs
浏览文件 @
391da66c
...
...
@@ -92,6 +92,11 @@ public class ESLconnection : IDisposable {
return
ret
;
}
public
int
sendMSG
(
ESLevent
send_me
,
string
uuid
)
{
int
ret
=
ESLPINVOKE
.
ESLconnection_sendMSG
(
swigCPtr
,
ESLevent
.
getCPtr
(
send_me
),
uuid
);
return
ret
;
}
public
ESLevent
RecvEvent
()
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_RecvEvent
(
swigCPtr
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
...
...
libs/esl/managed/esl_wrap.cpp
浏览文件 @
391da66c
...
...
@@ -743,6 +743,22 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_ESLconnection_SendEvent(void * jarg1, void
}
SWIGEXPORT
int
SWIGSTDCALL
CSharp_ESLconnection_sendMSG
(
void
*
jarg1
,
void
*
jarg2
,
char
*
jarg3
)
{
int
jresult
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
ESLevent
*
arg2
=
(
ESLevent
*
)
0
;
char
*
arg3
=
(
char
*
)
NULL
;
int
result
;
arg1
=
(
ESLconnection
*
)
jarg1
;
arg2
=
(
ESLevent
*
)
jarg2
;
arg3
=
(
char
*
)
jarg3
;
result
=
(
int
)(
arg1
)
->
sendMSG
(
arg2
,(
char
const
*
)
arg3
);
jresult
=
result
;
return
jresult
;
}
SWIGEXPORT
void
*
SWIGSTDCALL
CSharp_ESLconnection_RecvEvent
(
void
*
jarg1
)
{
void
*
jresult
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
...
...
libs/esl/perl/ESL.pm
浏览文件 @
391da66c
...
...
@@ -138,6 +138,7 @@ sub DESTROY {
*
api
=
*
ESLc::
ESLconnection_api
;
*
bgapi
=
*
ESLc::
ESLconnection_bgapi
;
*
sendEvent
=
*
ESLc::
ESLconnection_sendEvent
;
*
sendMSG
=
*
ESLc::
ESLconnection_sendMSG
;
*
recvEvent
=
*
ESLc::
ESLconnection_recvEvent
;
*
recvEventTimed
=
*
ESLc::
ESLconnection_recvEventTimed
;
*
filter
=
*
ESLc::
ESLconnection_filter
;
...
...
libs/esl/perl/esl_wrap.cpp
浏览文件 @
391da66c
...
...
@@ -3282,6 +3282,57 @@ XS(_wrap_ESLconnection_sendEvent) {
}
XS
(
_wrap_ESLconnection_sendMSG
)
{
{
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
ESLevent
*
arg2
=
(
ESLevent
*
)
0
;
char
*
arg3
=
(
char
*
)
NULL
;
int
result
;
void
*
argp1
=
0
;
int
res1
=
0
;
void
*
argp2
=
0
;
int
res2
=
0
;
int
res3
;
char
*
buf3
=
0
;
int
alloc3
=
0
;
int
argvi
=
0
;
dXSARGS
;
if
((
items
<
2
)
||
(
items
>
3
))
{
SWIG_croak
(
"Usage: ESLconnection_sendMSG(self,send_me,uuid);"
);
}
res1
=
SWIG_ConvertPtr
(
ST
(
0
),
&
argp1
,
SWIGTYPE_p_ESLconnection
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res1
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res1
),
"in method '"
"ESLconnection_sendMSG"
"', argument "
"1"" of type '"
"ESLconnection *""'"
);
}
arg1
=
reinterpret_cast
<
ESLconnection
*
>
(
argp1
);
res2
=
SWIG_ConvertPtr
(
ST
(
1
),
&
argp2
,
SWIGTYPE_p_ESLevent
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res2
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res2
),
"in method '"
"ESLconnection_sendMSG"
"', argument "
"2"" of type '"
"ESLevent *""'"
);
}
arg2
=
reinterpret_cast
<
ESLevent
*
>
(
argp2
);
if
(
items
>
2
)
{
res3
=
SWIG_AsCharPtrAndSize
(
ST
(
2
),
&
buf3
,
NULL
,
&
alloc3
);
if
(
!
SWIG_IsOK
(
res3
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res3
),
"in method '"
"ESLconnection_sendMSG"
"', argument "
"3"" of type '"
"char const *""'"
);
}
arg3
=
reinterpret_cast
<
char
*
>
(
buf3
);
}
result
=
(
int
)(
arg1
)
->
sendMSG
(
arg2
,(
char
const
*
)
arg3
);
ST
(
argvi
)
=
SWIG_From_int
SWIG_PERL_CALL_ARGS_1
(
static_cast
<
int
>
(
result
));
argvi
++
;
if
(
alloc3
==
SWIG_NEWOBJ
)
delete
[]
buf3
;
XSRETURN
(
argvi
);
fail
:
if
(
alloc3
==
SWIG_NEWOBJ
)
delete
[]
buf3
;
SWIG_croak_null
();
}
}
XS
(
_wrap_ESLconnection_recvEvent
)
{
{
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
...
...
@@ -3785,6 +3836,7 @@ static swig_command_info swig_commands[] = {
{
"ESLc::ESLconnection_api"
,
_wrap_ESLconnection_api
},
{
"ESLc::ESLconnection_bgapi"
,
_wrap_ESLconnection_bgapi
},
{
"ESLc::ESLconnection_sendEvent"
,
_wrap_ESLconnection_sendEvent
},
{
"ESLc::ESLconnection_sendMSG"
,
_wrap_ESLconnection_sendMSG
},
{
"ESLc::ESLconnection_recvEvent"
,
_wrap_ESLconnection_recvEvent
},
{
"ESLc::ESLconnection_recvEventTimed"
,
_wrap_ESLconnection_recvEventTimed
},
{
"ESLc::ESLconnection_filter"
,
_wrap_ESLconnection_filter
},
...
...
libs/esl/php/ESL.php
浏览文件 @
391da66c
...
...
@@ -174,6 +174,14 @@ class ESLconnection {
return
is_resource
(
$r
)
?
new
ESLevent
(
$r
)
:
$r
;
}
function
sendMSG
(
$send_me
,
$uuid
=
null
)
{
switch
(
func_num_args
())
{
case
1
:
$r
=
ESLconnection_sendMSG
(
$this
->
_cPtr
,
$send_me
);
break
;
default
:
$r
=
ESLconnection_sendMSG
(
$this
->
_cPtr
,
$send_me
,
$uuid
);
}
return
$r
;
}
function
recvEvent
()
{
$r
=
ESLconnection_recvEvent
(
$this
->
_cPtr
);
return
is_resource
(
$r
)
?
new
ESLevent
(
$r
)
:
$r
;
...
...
libs/esl/php/esl_wrap.cpp
浏览文件 @
391da66c
差异被折叠。
点击展开。
libs/esl/php/php_ESL.h
浏览文件 @
391da66c
...
...
@@ -60,6 +60,7 @@ ZEND_NAMED_FUNCTION(_wrap_ESLconnection_sendRecv);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_api
);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_bgapi
);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_sendEvent
);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_sendMSG
);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_recvEvent
);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_recvEventTimed
);
ZEND_NAMED_FUNCTION
(
_wrap_ESLconnection_filter
);
...
...
libs/esl/python/ESL.py
浏览文件 @
391da66c
...
...
@@ -87,6 +87,7 @@ class ESLconnection:
def
api
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_api
,
args
)
def
bgapi
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_bgapi
,
args
)
def
sendEvent
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_sendEvent
,
args
)
def
sendMSG
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_sendMSG
,
args
)
def
recvEvent
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_recvEvent
,
args
)
def
recvEventTimed
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_recvEventTimed
,
args
)
def
filter
(
*
args
):
return
apply
(
_ESL
.
ESLconnection_filter
,
args
)
...
...
libs/esl/python/esl_wrap.cpp
浏览文件 @
391da66c
...
...
@@ -4370,6 +4370,58 @@ fail:
}
SWIGINTERN
PyObject
*
_wrap_ESLconnection_sendMSG
(
PyObject
*
SWIGUNUSEDPARM
(
self
),
PyObject
*
args
)
{
PyObject
*
resultobj
=
0
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
ESLevent
*
arg2
=
(
ESLevent
*
)
0
;
char
*
arg3
=
(
char
*
)
NULL
;
int
result
;
void
*
argp1
=
0
;
int
res1
=
0
;
void
*
argp2
=
0
;
int
res2
=
0
;
int
res3
;
char
*
buf3
=
0
;
int
alloc3
=
0
;
PyObject
*
obj0
=
0
;
PyObject
*
obj1
=
0
;
PyObject
*
obj2
=
0
;
SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
if
(
!
PyArg_ParseTuple
(
args
,(
char
*
)
"OO|O:ESLconnection_sendMSG"
,
&
obj0
,
&
obj1
,
&
obj2
))
SWIG_fail
;
res1
=
SWIG_ConvertPtr
(
obj0
,
&
argp1
,
SWIGTYPE_p_ESLconnection
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res1
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res1
),
"in method '"
"ESLconnection_sendMSG"
"', argument "
"1"" of type '"
"ESLconnection *""'"
);
}
arg1
=
reinterpret_cast
<
ESLconnection
*
>
(
argp1
);
res2
=
SWIG_ConvertPtr
(
obj1
,
&
argp2
,
SWIGTYPE_p_ESLevent
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res2
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res2
),
"in method '"
"ESLconnection_sendMSG"
"', argument "
"2"" of type '"
"ESLevent *""'"
);
}
arg2
=
reinterpret_cast
<
ESLevent
*
>
(
argp2
);
if
(
obj2
)
{
res3
=
SWIG_AsCharPtrAndSize
(
obj2
,
&
buf3
,
NULL
,
&
alloc3
);
if
(
!
SWIG_IsOK
(
res3
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res3
),
"in method '"
"ESLconnection_sendMSG"
"', argument "
"3"" of type '"
"char const *""'"
);
}
arg3
=
reinterpret_cast
<
char
*
>
(
buf3
);
}
{
SWIG_PYTHON_THREAD_BEGIN_ALLOW
;
result
=
(
int
)(
arg1
)
->
sendMSG
(
arg2
,(
char
const
*
)
arg3
);
SWIG_PYTHON_THREAD_END_ALLOW
;
}
resultobj
=
SWIG_From_int
(
static_cast
<
int
>
(
result
));
if
(
alloc3
==
SWIG_NEWOBJ
)
delete
[]
buf3
;
SWIG_PYTHON_THREAD_END_BLOCK
;
return
resultobj
;
fail
:
if
(
alloc3
==
SWIG_NEWOBJ
)
delete
[]
buf3
;
SWIG_PYTHON_THREAD_END_BLOCK
;
return
NULL
;
}
SWIGINTERN
PyObject
*
_wrap_ESLconnection_recvEvent
(
PyObject
*
SWIGUNUSEDPARM
(
self
),
PyObject
*
args
)
{
PyObject
*
resultobj
=
0
;
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
...
...
@@ -4859,6 +4911,7 @@ static PyMethodDef SwigMethods[] = {
{
(
char
*
)
"ESLconnection_api"
,
_wrap_ESLconnection_api
,
METH_VARARGS
,
NULL
},
{
(
char
*
)
"ESLconnection_bgapi"
,
_wrap_ESLconnection_bgapi
,
METH_VARARGS
,
NULL
},
{
(
char
*
)
"ESLconnection_sendEvent"
,
_wrap_ESLconnection_sendEvent
,
METH_VARARGS
,
NULL
},
{
(
char
*
)
"ESLconnection_sendMSG"
,
_wrap_ESLconnection_sendMSG
,
METH_VARARGS
,
NULL
},
{
(
char
*
)
"ESLconnection_recvEvent"
,
_wrap_ESLconnection_recvEvent
,
METH_VARARGS
,
NULL
},
{
(
char
*
)
"ESLconnection_recvEventTimed"
,
_wrap_ESLconnection_recvEventTimed
,
METH_VARARGS
,
NULL
},
{
(
char
*
)
"ESLconnection_filter"
,
_wrap_ESLconnection_filter
,
METH_VARARGS
,
NULL
},
...
...
libs/esl/ruby/esl_wrap.cpp
浏览文件 @
391da66c
...
...
@@ -1902,7 +1902,7 @@ SWIG_ruby_failed(void)
}
/*@SWIG:/usr/share/swig/1.3.35/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
/*@SWIG:/usr/
local/
share/swig/1.3.35/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
SWIGINTERN
VALUE
SWIG_AUX_NUM2LONG
(
VALUE
*
args
)
{
VALUE
obj
=
args
[
0
];
...
...
@@ -3245,6 +3245,51 @@ fail:
}
SWIGINTERN
VALUE
_wrap_ESLconnection_sendMSG
(
int
argc
,
VALUE
*
argv
,
VALUE
self
)
{
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
ESLevent
*
arg2
=
(
ESLevent
*
)
0
;
char
*
arg3
=
(
char
*
)
NULL
;
int
result
;
void
*
argp1
=
0
;
int
res1
=
0
;
void
*
argp2
=
0
;
int
res2
=
0
;
int
res3
;
char
*
buf3
=
0
;
int
alloc3
=
0
;
VALUE
vresult
=
Qnil
;
if
((
argc
<
1
)
||
(
argc
>
2
))
{
rb_raise
(
rb_eArgError
,
"wrong # of arguments(%d for 1)"
,
argc
);
SWIG_fail
;
}
res1
=
SWIG_ConvertPtr
(
self
,
&
argp1
,
SWIGTYPE_p_ESLconnection
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res1
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res1
),
Ruby_Format_TypeError
(
""
,
"ESLconnection *"
,
"sendMSG"
,
1
,
self
));
}
arg1
=
reinterpret_cast
<
ESLconnection
*
>
(
argp1
);
res2
=
SWIG_ConvertPtr
(
argv
[
0
],
&
argp2
,
SWIGTYPE_p_ESLevent
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res2
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res2
),
Ruby_Format_TypeError
(
""
,
"ESLevent *"
,
"sendMSG"
,
2
,
argv
[
0
]
));
}
arg2
=
reinterpret_cast
<
ESLevent
*
>
(
argp2
);
if
(
argc
>
1
)
{
res3
=
SWIG_AsCharPtrAndSize
(
argv
[
1
],
&
buf3
,
NULL
,
&
alloc3
);
if
(
!
SWIG_IsOK
(
res3
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res3
),
Ruby_Format_TypeError
(
""
,
"char const *"
,
"sendMSG"
,
3
,
argv
[
1
]
));
}
arg3
=
reinterpret_cast
<
char
*
>
(
buf3
);
}
result
=
(
int
)(
arg1
)
->
sendMSG
(
arg2
,(
char
const
*
)
arg3
);
vresult
=
SWIG_From_int
(
static_cast
<
int
>
(
result
));
if
(
alloc3
==
SWIG_NEWOBJ
)
delete
[]
buf3
;
return
vresult
;
fail:
if
(
alloc3
==
SWIG_NEWOBJ
)
delete
[]
buf3
;
return
Qnil
;
}
SWIGINTERN
VALUE
_wrap_ESLconnection_recvEvent
(
int
argc
,
VALUE
*
argv
,
VALUE
self
)
{
ESLconnection
*
arg1
=
(
ESLconnection
*
)
0
;
...
...
@@ -3958,6 +4003,7 @@ SWIGEXPORT void Init_ESL(void) {
rb_define_method
(
cESLconnection
.
klass
,
"api"
,
VALUEFUNC
(
_wrap_ESLconnection_api
),
-
1
);
rb_define_method
(
cESLconnection
.
klass
,
"bgapi"
,
VALUEFUNC
(
_wrap_ESLconnection_bgapi
),
-
1
);
rb_define_method
(
cESLconnection
.
klass
,
"sendEvent"
,
VALUEFUNC
(
_wrap_ESLconnection_sendEvent
),
-
1
);
rb_define_method
(
cESLconnection
.
klass
,
"sendMSG"
,
VALUEFUNC
(
_wrap_ESLconnection_sendMSG
),
-
1
);
rb_define_method
(
cESLconnection
.
klass
,
"recvEvent"
,
VALUEFUNC
(
_wrap_ESLconnection_recvEvent
),
-
1
);
rb_define_method
(
cESLconnection
.
klass
,
"recvEventTimed"
,
VALUEFUNC
(
_wrap_ESLconnection_recvEventTimed
),
-
1
);
rb_define_method
(
cESLconnection
.
klass
,
"filter"
,
VALUEFUNC
(
_wrap_ESLconnection_filter
),
-
1
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论