2006-12-21 17:11:43 +00:00
|
|
|
%module freeswitch
|
|
|
|
%include "cstring.i"
|
|
|
|
|
2007-06-21 18:23:56 +00:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2007-06-22 19:14:53 +00:00
|
|
|
|
2007-06-20 08:56:34 +00:00
|
|
|
/** insert the following includes into generated code so it compiles */
|
2006-12-21 17:11:43 +00:00
|
|
|
%{
|
2007-06-01 18:50:34 +00:00
|
|
|
#include "switch_cpp.h"
|
2006-12-21 17:11:43 +00:00
|
|
|
#include "freeswitch_python.h"
|
|
|
|
%}
|
|
|
|
|
2007-06-22 19:14:53 +00:00
|
|
|
|
|
|
|
%ignore SwitchToMempool;
|
|
|
|
|
2007-06-20 08:56:34 +00:00
|
|
|
/**
|
|
|
|
* tell swig to grok everything defined in these header files and
|
|
|
|
* build all sorts of c wrappers and python shadows of the c wrappers.
|
|
|
|
*/
|
2008-04-30 19:42:26 +00:00
|
|
|
%include switch_swigable_cpp.h
|
2006-12-21 17:11:43 +00:00
|
|
|
%include freeswitch_python.h
|
|
|
|
|