From 10a9f00294c3a33477dee21980f91d1417b6ef21 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 20:18:41 +0100 Subject: Ensure that ports always have an ID --- src/PortID.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/PortID.hpp') diff --git a/src/PortID.hpp b/src/PortID.hpp index c29d662..2d41f92 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -42,8 +42,8 @@ struct PortID PortID() = default; -#ifdef PATCHAGE_LIBJACK - explicit PortID(jack_port_id_t jack_id, bool = false) +#if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) + explicit PortID(uint32_t jack_id, bool = false) : type(Type::jack_id) { id.jack_id = jack_id; @@ -71,8 +71,8 @@ struct PortID union { -#ifdef PATCHAGE_LIBJACK - jack_port_id_t jack_id; +#if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) + uint32_t jack_id; #endif #ifdef HAVE_ALSA struct @@ -118,7 +118,7 @@ operator<(const PortID& a, const PortID& b) case PortID::Type::nothing: return true; case PortID::Type::jack_id: -#ifdef PATCHAGE_LIBJACK +#if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) return a.id.jack_id < b.id.jack_id; #endif break; -- cgit v1.2.1