]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
libesl: fix php swig generation (ESL-20)
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 2 Sep 2009 20:28:43 +0000 (20:28 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 2 Sep 2009 20:28:43 +0000 (20:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14750 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/ESL.i

index 4187f083b2a543160dad60977cab18ff43682bf3..46cc0f22e705814815017cb79e5c88a8c0b7aec2 100644 (file)
@@ -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"