[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/07: added options to query the full conf
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/07: added options to query the full configuration as read by gr::prefs |
Date: |
Wed, 11 May 2016 17:41:07 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 2c812202c6b89a73350295f4e0f667d6554a271d
Author: Marcus Müller <address@hidden>
Date: Sat May 7 17:16:17 2016 +0200
added options to query the full configuration as read by gr::prefs
Also added user conf dir path query
---
gnuradio-runtime/apps/gnuradio-config-info.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnuradio-runtime/apps/gnuradio-config-info.cc
b/gnuradio-runtime/apps/gnuradio-config-info.cc
index c91b080..813dda1 100644
--- a/gnuradio-runtime/apps/gnuradio-config-info.cc
+++ b/gnuradio-runtime/apps/gnuradio-config-info.cc
@@ -25,6 +25,8 @@
#endif
#include <gnuradio/constants.h>
+#include <gnuradio/sys_paths.h>
+#include <gnuradio/prefs.h>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <iostream>
@@ -43,6 +45,8 @@ main(int argc, char **argv)
("prefix", "print GNU Radio installation prefix")
("sysconfdir", "print GNU Radio system configuration directory")
("prefsdir", "print GNU Radio preferences directory")
+ ("userprefsdir", "print GNU Radio user preferences directory")
+ ("prefs", "print GNU Radio preferences")
("builddate", "print GNU Radio build date (RFC2822 format)")
("enabled-components", "print GNU Radio build time enabled components")
("cc", "print GNU Radio C compiler version")
@@ -75,6 +79,12 @@ main(int argc, char **argv)
if(vm.count("prefsdir"))
std::cout << gr::prefsdir() << std::endl;
+ if(vm.count("userprefsdir"))
+ std::cout << gr::userconf_path() << std::endl;
+
+ if(vm.count("prefs"))
+ std::cout << gr::prefs::singleton()->to_string() << std::endl;
+
if(vm.count("builddate"))
std::cout << gr::build_date() << std::endl;
- [Commit-gnuradio] [gnuradio] branch master updated (6c2851d -> 2aec2ff), git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 06/07: Merge branch 'maint', git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 04/07: grc: Added bits (unpacked bytes) as a data type, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 03/07: added options to query the full configuration as read by gr::prefs,
git <=
- [Commit-gnuradio] [gnuradio] 05/07: Merge remote-tracking branch 'mmueller/gr-conf-info-add-config-queries', git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 02/07: added user settings directory as a gr::-accessible path, git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 07/07: Merge remote-tracking branch 'nwest/uhd-add-tag-cmd', git, 2016/05/11
- [Commit-gnuradio] [gnuradio] 01/07: uhd: add command handler to add a time tag, git, 2016/05/11