From ba9fb85168d004d7643dc02f911fd173a136758b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 25 Sep 2020 22:51:18 +0200 Subject: Add NamedChannel and use it to hide the never-used channels when mapping into a DCP. --- src/lib/types.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/types.cc') diff --git a/src/lib/types.cc b/src/lib/types.cc index df57f2d47..e7acf6992 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -222,3 +222,10 @@ CPLSummary::CPLSummary (boost::filesystem::path p) last_write_time = boost::filesystem::last_write_time (p); } + + +bool operator== (NamedChannel const& a, NamedChannel const& b) +{ + return a.name == b.name && a.index == b.index; +} + -- cgit v1.2.3