From: Anthony Minessale Date: Wed, 2 Sep 2009 20:28:43 +0000 (+0000) Subject: libesl: fix php swig generation (ESL-20) X-Git-Tag: v1.0.6~1956 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96aee95d00a08de8143abe9be74efbdec3358da;p=thirdparty%2Ffreeswitch.git libesl: fix php swig generation (ESL-20) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14750 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/esl/ESL.i b/libs/esl/ESL.i index 4187f083b2..46cc0f22e7 100644 --- a/libs/esl/ESL.i +++ b/libs/esl/ESL.i @@ -3,6 +3,15 @@ #include "esl_oop.h" %} +#ifdef SWIGPHP +%newobject ESLconnection::sendRecv(); +%newobject ESLconnection::api(); +%newobject ESLconnection::bgapi(); +%newobject ::getInfo(); +%newobject ESLconnection::filter(); +%newobject ::recvEvent(); +%newobject ESLconnection::recvEventTimed(); +#else %newobject ESLconnection::sendRecv; %newobject ESLconnection::api; %newobject ESLconnection::bgapi; @@ -10,5 +19,6 @@ %newobject ESLconnection::filter; %newobject ESLconnection::recvEvent; %newobject ESLconnection::recvEventTimed; +#endif %include "esl_oop.h"