From a872f8b07498c85f0f2eb8b55462ac9df9ce4677 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 15:15:29 +0100 Subject: Factor out ClientType --- src/PortID.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/PortID.hpp') 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 #include #include @@ -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; -- cgit v1.2.1