summaryrefslogtreecommitdiffstats
path: root/src/PatchagePort.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchagePort.hpp')
-rw-r--r--src/PatchagePort.hpp7
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
{