diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 20:19:46 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:52:29 +0100 |
commit | 2e7a3b3bc94f8d68475883c845f31ee42cba115c (patch) | |
tree | 7df6bfbc81e354bd73c13e1f48408c4a5691e485 /src/PatchagePort.hpp | |
parent | 10a9f00294c3a33477dee21980f91d1417b6ef21 (diff) | |
download | patchage-2e7a3b3bc94f8d68475883c845f31ee42cba115c.tar.gz patchage-2e7a3b3bc94f8d68475883c845f31ee42cba115c.tar.bz2 patchage-2e7a3b3bc94f8d68475883c845f31ee42cba115c.zip |
Remove use of PatchagePort from Driver connection interface
Diffstat (limited to 'src/PatchagePort.hpp')
-rw-r--r-- | src/PatchagePort.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PatchagePort.hpp b/src/PatchagePort.hpp index 8a96f20..03a6f83 100644 --- a/src/PatchagePort.hpp +++ b/src/PatchagePort.hpp @@ -70,6 +70,13 @@ public: ~PatchagePort() override = default; + /** Returns the name of the module/client this port is one */ + std::string module_name() const + { + auto* pmod = dynamic_cast<PatchageModule*>(get_module()); + return std::string(pmod->name()); + } + /** Returns the full name of this port, as "modulename:portname" */ std::string full_name() const { |