mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
add some methods
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12359 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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];
|
||||
@@ -2591,6 +2591,54 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN VALUE
|
||||
_wrap_ESLevent_firstHeader(int argc, VALUE *argv, VALUE self) {
|
||||
ESLevent *arg1 = (ESLevent *) 0 ;
|
||||
char *result = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
VALUE vresult = Qnil;
|
||||
|
||||
if ((argc < 0) || (argc > 0)) {
|
||||
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ESLevent *","firstHeader", 1, self ));
|
||||
}
|
||||
arg1 = reinterpret_cast< ESLevent * >(argp1);
|
||||
result = (char *)(arg1)->firstHeader();
|
||||
vresult = SWIG_FromCharPtr((const char *)result);
|
||||
return vresult;
|
||||
fail:
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN VALUE
|
||||
_wrap_ESLevent_nextHeader(int argc, VALUE *argv, VALUE self) {
|
||||
ESLevent *arg1 = (ESLevent *) 0 ;
|
||||
char *result = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
VALUE vresult = Qnil;
|
||||
|
||||
if ((argc < 0) || (argc > 0)) {
|
||||
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ESLevent, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ESLevent *","nextHeader", 1, self ));
|
||||
}
|
||||
arg1 = reinterpret_cast< ESLevent * >(argp1);
|
||||
result = (char *)(arg1)->nextHeader();
|
||||
vresult = SWIG_FromCharPtr((const char *)result);
|
||||
return vresult;
|
||||
fail:
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
||||
swig_class cESLconnection;
|
||||
|
||||
SWIGINTERN VALUE
|
||||
@@ -3586,6 +3634,8 @@ SWIGEXPORT void Init_ESL(void) {
|
||||
rb_define_method(cESLevent.klass, "addBody", VALUEFUNC(_wrap_ESLevent_addBody), -1);
|
||||
rb_define_method(cESLevent.klass, "addHeader", VALUEFUNC(_wrap_ESLevent_addHeader), -1);
|
||||
rb_define_method(cESLevent.klass, "delHeader", VALUEFUNC(_wrap_ESLevent_delHeader), -1);
|
||||
rb_define_method(cESLevent.klass, "firstHeader", VALUEFUNC(_wrap_ESLevent_firstHeader), -1);
|
||||
rb_define_method(cESLevent.klass, "nextHeader", VALUEFUNC(_wrap_ESLevent_nextHeader), -1);
|
||||
cESLevent.mark = 0;
|
||||
cESLevent.destroy = (void (*)(void *)) free_ESLevent;
|
||||
cESLevent.trackObjects = 0;
|
||||
|
Reference in New Issue
Block a user