diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 15:15:29 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 15:15:29 +0100 |
commit | a872f8b07498c85f0f2eb8b55462ac9df9ce4677 (patch) | |
tree | 2401369149a54d459eaf2644a83a821b65281ad9 /src/PortID.hpp | |
parent | 62b19ed3c43ceb3a88944b892a24686ca0b7b036 (diff) | |
download | patchage-a872f8b07498c85f0f2eb8b55462ac9df9ce4677.tar.gz patchage-a872f8b07498c85f0f2eb8b55462ac9df9ce4677.tar.bz2 patchage-a872f8b07498c85f0f2eb8b55462ac9df9ce4677.zip |
Factor out ClientType
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r-- | src/PortID.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/PortID.hpp b/src/PortID.hpp index a0f1bb9..4887a27 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -17,6 +17,8 @@ #ifndef PATCHAGE_PORTID_HPP #define PATCHAGE_PORTID_HPP +#include "ClientType.hpp" + #include <cassert> #include <iostream> #include <string> @@ -26,11 +28,7 @@ /// An ID for some port on a client (program) struct PortID { - enum class Type - { - jack, - alsa, - }; + using Type = ClientType; PortID(const PortID& copy) = default; PortID& operator=(const PortID& copy) = default; |