From e96aee95d00a08de8143abe9be74efbdec3358da Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 2 Sep 2009 20:28:43 +0000 Subject: [PATCH] libesl: fix php swig generation (ESL-20) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14750 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/ESL.i | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"