From 82245ba65d5b13a9cf40921affb70872147cf00c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 30 Dec 2009 04:35:09 +0000 Subject: Fix JACK name of top level ports (fix ticket #457). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2319 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/util.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/engine/util.hpp') diff --git a/src/engine/util.hpp b/src/engine/util.hpp index 01eecd27..945e5101 100644 --- a/src/engine/util.hpp +++ b/src/engine/util.hpp @@ -19,6 +19,7 @@ #define UTIL_HPP #include "ingen-config.h" +#include "raul/Path.hpp" #include #include @@ -73,6 +74,12 @@ set_denormal_flags() #endif } +static inline std::string +ingen_jack_port_name(const Raul::Path& path) +{ + return path.chop_start("/"); +} + } // namespace Ingen #endif // UTIL_HPP -- cgit v1.2.1