summaryrefslogtreecommitdiffstats
path: root/src/ClientID.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-28 15:15:29 +0100
committerDavid Robillard <d@drobilla.net>2020-11-28 15:15:29 +0100
commita872f8b07498c85f0f2eb8b55462ac9df9ce4677 (patch)
tree2401369149a54d459eaf2644a83a821b65281ad9 /src/ClientID.hpp
parent62b19ed3c43ceb3a88944b892a24686ca0b7b036 (diff)
downloadpatchage-a872f8b07498c85f0f2eb8b55462ac9df9ce4677.tar.gz
patchage-a872f8b07498c85f0f2eb8b55462ac9df9ce4677.tar.bz2
patchage-a872f8b07498c85f0f2eb8b55462ac9df9ce4677.zip
Factor out ClientType
Diffstat (limited to 'src/ClientID.hpp')
-rw-r--r--src/ClientID.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ClientID.hpp b/src/ClientID.hpp
index d58c5ee..43b56ec 100644
--- a/src/ClientID.hpp
+++ b/src/ClientID.hpp
@@ -17,6 +17,8 @@
#ifndef PATCHAGE_CLIENTID_HPP
#define PATCHAGE_CLIENTID_HPP
+#include "ClientType.hpp"
+
#include <cassert>
#include <cstdint>
#include <ostream>
@@ -26,11 +28,7 @@
/// An ID for some client (program) that has ports
struct ClientID
{
- enum class Type
- {
- jack,
- alsa,
- };
+ using Type = ClientType;
ClientID(const ClientID& copy) = default;
ClientID& operator=(const ClientID& copy) = default;