[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/09: runtime: expose set_log_level for bl
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/09: runtime: expose set_log_level for blocks |
Date: |
Sat, 6 Aug 2016 22:28:35 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch next
in repository gnuradio.
commit 26f027fd7e9657d181f26048cf81600a5613636b
Author: Nathan West <address@hidden>
Date: Mon Apr 25 15:44:17 2016 -0400
runtime: expose set_log_level for blocks
---
gnuradio-runtime/include/gnuradio/block.h | 2 ++
gnuradio-runtime/lib/block.cc | 6 ++++++
gnuradio-runtime/swig/block.i | 2 ++
3 files changed, 10 insertions(+)
diff --git a/gnuradio-runtime/include/gnuradio/block.h
b/gnuradio-runtime/include/gnuradio/block.h
index 3e85f22..f7aa294 100644
--- a/gnuradio-runtime/include/gnuradio/block.h
+++ b/gnuradio-runtime/include/gnuradio/block.h
@@ -633,6 +633,8 @@ namespace gr {
*/
void system_handler(pmt::pmt_t msg);
+ void set_log_level(std::string level);
+
/*!
* \brief returns true when execution has completed due to a message
connection
*/
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index e329e06..4a65297 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -715,6 +715,12 @@ namespace gr {
}
void
+ block::set_log_level(std::string level)
+ {
+ logger_set_level(d_logger, level);
+ }
+
+ void
block::notify_msg_neighbors()
{
size_t len = pmt::length(d_message_subscribers);
diff --git a/gnuradio-runtime/swig/block.i b/gnuradio-runtime/swig/block.i
index 945cea7..bc6f725 100644
--- a/gnuradio-runtime/swig/block.i
+++ b/gnuradio-runtime/swig/block.i
@@ -57,6 +57,8 @@ class gr::block : public gr::basic_block
uint64_t nitems_read(unsigned int which_input);
uint64_t nitems_written(unsigned int which_output);
+ void set_log_level(std::string level);
+
// Methods to manage the block's max_noutput_items size.
int max_noutput_items();
void set_max_noutput_items(int m);
- [Commit-gnuradio] [gnuradio] branch next updated (675afc0 -> fc1a6a8), git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 03/09: runtime: expose set_log_level for hier_blocks, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 07/09: Merge branch 'master' into next, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'pinkavaj/argparse-utils-04-b' into next, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 05/09: blocks: add QA for new block log_level accessors, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 01/09: runtime: expose set_log_level for blocks,
git <=
- [Commit-gnuradio] [gnuradio] 02/09: runtime: add documentation for block set_log_level, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'nwest/block-log_set_level' into next, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 04/09: runtime: add interface to get log_level for blocks, git, 2016/08/06
- [Commit-gnuradio] [gnuradio] 06/09: filter: replace OptionParser by ArgumentParser for gr-utils and gr-qtgui, git, 2016/08/06