2008-04-25 22:12:01 +00:00
|
|
|
%module freeswitch
|
2011-10-21 08:56:42 -05:00
|
|
|
%include ../../../../swig_common.i
|
2008-04-25 22:12:01 +00:00
|
|
|
//%include "cstring.i"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* tell swig to treat these variables as mutable so they
|
|
|
|
* can be used to return values.
|
|
|
|
* See http://www.swig.org/Doc1.3/Library.html
|
|
|
|
*/
|
|
|
|
//%cstring_bounded_mutable(char *dtmf_buf, 128);
|
|
|
|
//%cstring_bounded_mutable(char *terminator, 8);
|
|
|
|
|
2009-07-08 16:35:22 +00:00
|
|
|
%newobject EventConsumer::pop;
|
2009-09-02 18:13:56 +00:00
|
|
|
%newobject Session;
|
|
|
|
%newobject CoreSession;
|
|
|
|
%newobject Event;
|
|
|
|
%newobject Stream;
|
2014-07-16 19:33:10 +05:00
|
|
|
%newobject API::execute;
|
|
|
|
%newobject API::executeString;
|
2008-04-25 22:12:01 +00:00
|
|
|
|
|
|
|
/** insert the following includes into generated code so it compiles */
|
|
|
|
%{
|
|
|
|
#include "switch_cpp.h"
|
|
|
|
#include "freeswitch_perl.h"
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
%ignore SwitchToMempool;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* tell swig to grok everything defined in these header files and
|
|
|
|
* build all sorts of c wrappers and lua shadows of the c wrappers.
|
|
|
|
*/
|
2008-04-30 19:42:26 +00:00
|
|
|
%include switch_swigable_cpp.h
|
2008-04-25 22:12:01 +00:00
|
|
|
%include freeswitch_perl.h
|
|
|
|
|
|
|
|
|
|
|
|
|