Revision: 40616
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40616&view=rev
Author:   davidloman
Date:     2010-09-20 18:48:40 +0000 (Mon, 20 Sep 2010)

Log Message:
-----------
Add in springboard fn for use as a pkg_switch call back.

Modified Paths:
--------------
    rt^3/trunk/include/PkgClient.h
    rt^3/trunk/src/libPkgCpp/PkgClient.cxx

Modified: rt^3/trunk/include/PkgClient.h
===================================================================
--- rt^3/trunk/include/PkgClient.h      2010-09-20 18:08:58 UTC (rev 40615)
+++ rt^3/trunk/include/PkgClient.h      2010-09-20 18:48:40 UTC (rev 40616)
@@ -74,6 +74,7 @@
   int
   send(int opcode, const char* buffer, size_t bufferLen);
 
+  void setCallBackTable(struct pkg_switch* callback);
 private:
   std::string proto;
   pkg_conn* conn;

Modified: rt^3/trunk/src/libPkgCpp/PkgClient.cxx
===================================================================
--- rt^3/trunk/src/libPkgCpp/PkgClient.cxx      2010-09-20 18:08:58 UTC (rev 
40615)
+++ rt^3/trunk/src/libPkgCpp/PkgClient.cxx      2010-09-20 18:48:40 UTC (rev 
40616)
@@ -92,6 +92,12 @@
   return retVal;
 }
 
+void
+PkgClient::setCallBackTable(struct pkg_switch* callback)
+{
+  this->conn->pkc_switch = callback;
+}
+
 /*
  * Local Variables:
  * mode: C


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to