summaryrefslogtreecommitdiffstats
path: root/src/engine/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/util.hpp')
-rw-r--r--src/engine/util.hpp7
1 files changed, 7 insertions, 0 deletions
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 <iostream>
#include <cstdlib>
@@ -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