From 9de095e6051a41c3b3f5a682b1a9f69551bb4f69 Mon Sep 17 00:00:00 2001
From: Tim O'Shea <tim.oshea753@gmail.com>
Date: Mon, 25 Mar 2013 18:03:41 -0400
Subject: fix for python grcp get variables getting exported propperly

---
 gnuradio-core/src/lib/runtime/pycallback_object.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'gnuradio-core/src')

diff --git a/gnuradio-core/src/lib/runtime/pycallback_object.h b/gnuradio-core/src/lib/runtime/pycallback_object.h
index f2cd085641..922e03393e 100644
--- a/gnuradio-core/src/lib/runtime/pycallback_object.h
+++ b/gnuradio-core/src/lib/runtime/pycallback_object.h
@@ -26,6 +26,7 @@
 #include <IcePy_Communicator.h>
 #include <pythread.h>
 #include <boost/format.hpp>
+#include <config.h>
 
 enum pyport_t {
   PYPORT_STRING,
@@ -83,6 +84,7 @@ public:
     d_name(name), d_id(pycallback_object_count++)
   {
     d_callback = NULL;
+    setup_rpc();
   }
 
   void add_rpc_variable(rpcbasic_sptr s)
@@ -131,7 +133,7 @@ public:
     add_rpc_variable(
       rpcbasic_sptr(new rpcbasic_register_get<pycallback_object, myType>(
         (boost::format("%s%d") % d_name % d_id).str() , d_functionbase.c_str(),
-	&pycallback_object::get, pmt_assist<myType>::make(d_min),
+    this, &pycallback_object::get, pmt_assist<myType>::make(d_min),
 	pmt_assist<myType>::make(d_max), pmt_assist<myType>::make(d_deflt),
 	d_units.c_str(), d_desc.c_str(), RPC_PRIVLVL_MIN, d_dtype)));
 #endif /* GR_CTRLPORT */
-- 
cgit v1.2.3