gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog server/asobj/NetConnection.cpp ... [relea


From: Rob Savoye
Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetConnection.cpp ... [release_0_7_2]
Date: Tue, 31 Oct 2006 17:38:47 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         release_0_7_2
Changes by:     Rob Savoye <rsavoye>    06/10/31 17:38:47

Modified files:
        .              : ChangeLog 
        server/asobj   : NetConnection.cpp NetConnection.h 
        libbase        : network.cpp network.h 

Log message:
                * libbase/network.cpp, network.h: Remove enabled testing code 
from
                base class. 
                * server/asobj/NetConnection.cpp, NetConnection.h: Add enabled
                testing code to where it really belongs.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.1412.2.32&r2=1.1412.2.33
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetConnection.cpp?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.8.2.1&r2=1.8.2.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetConnection.h?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.6.2.1&r2=1.6.2.2
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/network.cpp?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.13.2.1&r2=1.13.2.2
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/network.h?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.8.2.1&r2=1.8.2.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1412.2.32
retrieving revision 1.1412.2.33
diff -u -b -r1.1412.2.32 -r1.1412.2.33
--- ChangeLog   31 Oct 2006 16:35:05 -0000      1.1412.2.32
+++ ChangeLog   31 Oct 2006 17:38:47 -0000      1.1412.2.33
@@ -1,5 +1,11 @@
 2006-10-31  Rob Savoye  <address@hidden>
 
+       * libbase/network.cpp, network.h: Remove enabled testing code from
+       base class. 
+       * server/asobj/NetConnection.cpp, NetConnection.h: Add enabled
+       testing code to where it really belongs.
+
+
        * gui/Makefile.am: Only build klash if using KDE.
        * plugin/klash/Makefile.am: Build klash here again.
        * configure.ac: Don't turn KDE on when building klash. Remove

Index: server/asobj/NetConnection.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/NetConnection.cpp,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -b -r1.8.2.1 -r1.8.2.2
--- server/asobj/NetConnection.cpp      30 Oct 2006 14:28:49 -0000      1.8.2.1
+++ server/asobj/NetConnection.cpp      31 Oct 2006 17:38:47 -0000      1.8.2.2
@@ -146,11 +146,11 @@
 
     netconnection_obj->set_member("connect", &netconnection_connect);
 #ifdef ENABLE_TESTING
-    netconnection_obj->set_member("geturl",  &network_geturl);
-    netconnection_obj->set_member("getprotocol",  &network_getprotocol);
-    netconnection_obj->set_member("gethost", &network_gethost);
-    netconnection_obj->set_member("getport", &network_getport);
-    netconnection_obj->set_member("getpath", &network_getpath);
+    netconnection_obj->set_member("geturl",  &netconnection_geturl);
+    netconnection_obj->set_member("getprotocol",  &netconnection_getprotocol);
+    netconnection_obj->set_member("gethost", &netconnection_gethost);
+    netconnection_obj->set_member("getport", &netconnection_getport);
+    netconnection_obj->set_member("getpath", &netconnection_getpath);
 #endif
     fn.result->set_as_object(netconnection_obj);
 }
@@ -172,5 +172,65 @@
     }    
 }
 
+#ifdef ENABLE_TESTING
+// These are the callbacks used to define custom methods for our AS
+// classes. This way we can examine the private dats after calling a
+// method to see if it worked correctly.
+void netconnection_geturl(const fn_call& fn)
+{
+
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_tu_string(ptr->obj.getURL().c_str());
+}
+
+void netconnection_getprotocol(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_tu_string(ptr->obj.getProtocol().c_str());
+}
+
+void netconnection_gethost(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_tu_string(ptr->obj.getHost().c_str());
+}
+
+void netconnection_getport(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_tu_string(ptr->obj.getPortStr().c_str());
+}
+
+void netconnection_getpath(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_tu_string(ptr->obj.getPath().c_str());
+}
+
+void netconnection_connected(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_bool(ptr->obj.connected());
+}
+void netconnection_getfilefd(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_int(ptr->obj.getFileFd());
+}
+void netconnection_getlistenfd(const fn_call& fn)
+{
+    netconnection_as_object *ptr = (netconnection_as_object*)fn.this_ptr;
+    assert(ptr);
+    fn.result->set_int(ptr->obj.getListenFd());
+}
+#endif
+
 } // end of gnash namespace
 

Index: server/asobj/NetConnection.h
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/NetConnection.h,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -b -r1.6.2.1 -r1.6.2.2
--- server/asobj/NetConnection.h        30 Oct 2006 14:28:49 -0000      1.6.2.1
+++ server/asobj/NetConnection.h        31 Oct 2006 17:38:47 -0000      1.6.2.2
@@ -50,8 +50,21 @@
     NetConnection obj;
 };
 
-void netconnection_new(const fn_call& fn);
-void netconnection_connect(const fn_call& fn);
+DSOEXPORT void netconnection_new(const fn_call& fn);
+DSOEXPORT void netconnection_connect(const fn_call& fn);
+
+#ifdef ENABLE_TESTING 
+
+DSOEXPORT void netconnection_geturl(const fn_call& fn);
+DSOEXPORT void netconnection_getprotocol(const fn_call& fn);
+DSOEXPORT void netconnection_gethost(const fn_call& fn);
+DSOEXPORT void netconnection_getport(const fn_call& fn);
+DSOEXPORT void netconnection_getpath(const fn_call& fn);
+DSOEXPORT void netconnection_connected(const fn_call& fn);
+
+DSOEXPORT void netconnection_getfilefd(const fn_call& fn);
+DSOEXPORT void netconnection_getlistenfd(const fn_call& fn);
+#endif
 
 } // end of gnash namespace
 

Index: libbase/network.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/network.cpp,v
retrieving revision 1.13.2.1
retrieving revision 1.13.2.2
diff -u -b -r1.13.2.1 -r1.13.2.2
--- libbase/network.cpp 30 Oct 2006 14:28:47 -0000      1.13.2.1
+++ libbase/network.cpp 31 Oct 2006 17:38:47 -0000      1.13.2.2
@@ -737,64 +737,5 @@
                // toggleDebug(true);
 }
 
-#ifdef ENABLE_TESTING
-// These are the callbacks used to define custom methods for our AS
-// classes. This way we can examine the private dats after calling a
-// method to see if it worked correctly.
-void network_geturl(const fn_call& fn)
-{
-
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_tu_string(ptr->obj.getURL().c_str());
-}
-
-void network_getprotocol(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_tu_string(ptr->obj.getProtocol().c_str());
-}
-
-void network_gethost(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_tu_string(ptr->obj.getHost().c_str());
-}
-
-void network_getport(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_tu_string(ptr->obj.getPortStr().c_str());
-}
-
-void network_getpath(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_tu_string(ptr->obj.getPath().c_str());
-}
-
-void network_connected(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_bool(ptr->obj.connected());
-}
-void network_getfilefd(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_int(ptr->obj.getFileFd());
-}
-void network_getlistenfd(const fn_call& fn)
-{
-    network_as_object *ptr = (network_as_object*)fn.this_ptr;
-    assert(ptr);
-    fn.result->set_int(ptr->obj.getListenFd());
-}
-#endif
 
 } // end of gnash namespace

Index: libbase/network.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/network.h,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -b -r1.8.2.1 -r1.8.2.2
--- libbase/network.h   30 Oct 2006 14:28:47 -0000      1.8.2.1
+++ libbase/network.h   31 Oct 2006 17:38:47 -0000      1.8.2.2
@@ -130,24 +130,6 @@
     int         _timeout;
 };
 
-#ifdef ENABLE_TESTING 
-class DSOEXPORT network_as_object : public as_object
-{
-public:
-    Network obj;
-};
-
-DSOEXPORT void network_geturl(const fn_call& fn);
-DSOEXPORT void network_getprotocol(const fn_call& fn);
-DSOEXPORT void network_gethost(const fn_call& fn);
-DSOEXPORT void network_getport(const fn_call& fn);
-DSOEXPORT void network_getpath(const fn_call& fn);
-DSOEXPORT void network_connected(const fn_call& fn);
-
-DSOEXPORT void network_getfilefd(const fn_call& fn);
-DSOEXPORT void network_getlistenfd(const fn_call& fn);
-#endif
- 
 } // end of gnash namespace
 
 // __NETWORK_H__




reply via email to

[Prev in Thread] Current Thread [Next in Thread]