summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib
diff options
context:
space:
mode:
authorTim O'Shea <tim.oshea753@gmail.com>2013-03-25 18:03:41 -0400
committerTom Rondeau <trondeau@vt.edu>2013-03-26 21:52:54 -0400
commit9de095e6051a41c3b3f5a682b1a9f69551bb4f69 (patch)
treec2af1b22255c2cdfc4da5c8b253ee60404211ede /gnuradio-core/src/lib
parent5e9b3413f52dda8a11270add934170652fd1fcab (diff)
fix for python grcp get variables getting exported propperly
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r--gnuradio-core/src/lib/runtime/pycallback_object.h4
1 files changed, 3 insertions, 1 deletions
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 */