summaryrefslogtreecommitdiff
path: root/src/lib/types.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-25 22:51:18 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-25 22:51:18 +0200
commitba9fb85168d004d7643dc02f911fd173a136758b (patch)
tree8beb9b26c9bf47dfe933c8e0ccaccb4e30a69286 /src/lib/types.cc
parentd7cf091bdbbeae8187e887104d1135e93bcdf5da (diff)
Add NamedChannel and use it to hide the never-used channels
when mapping into a DCP.
Diffstat (limited to 'src/lib/types.cc')
-rw-r--r--src/lib/types.cc7
1 files changed, 7 insertions, 0 deletions
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;
+}
+