Module: xenomai-3
Branch: arm64
Commit: 53012ce1610f95b106f2d3be872fa6378612da81
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=53012ce1610f95b106f2d3be872fa6378612da81

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Sep 23 09:19:44 2015 +0200

copperplate: parse group id in session label tunable

---

 include/copperplate/tunables.h |    5 +----
 lib/copperplate/init.c         |    5 +++++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/copperplate/tunables.h b/include/copperplate/tunables.h
index 640b8b4..7b45c51 100644
--- a/include/copperplate/tunables.h
+++ b/include/copperplate/tunables.h
@@ -36,10 +36,7 @@ extern "C" {
 
 extern struct copperplate_setup_data __copperplate_setup_data;
 
-static inline define_config_tunable(session_label, const char *, label)
-{
-       __copperplate_setup_data.session_label = label;
-}
+define_config_tunable(session_label, const char *, label);
 
 static inline read_config_tunable(session_label, const char *)
 {
diff --git a/lib/copperplate/init.c b/lib/copperplate/init.c
index 54b4276..f26b2db 100644
--- a/lib/copperplate/init.c
+++ b/lib/copperplate/init.c
@@ -185,6 +185,11 @@ no_group:
        return 0;
 }
 
+define_config_tunable(session_label, const char *, label)
+{
+       get_session_label(label);
+}
+
 static int copperplate_init(void)
 {
        int ret, regflags = 0;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to