diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-09-25 22:51:18 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-25 22:51:18 +0200 |
| commit | ba9fb85168d004d7643dc02f911fd173a136758b (patch) | |
| tree | 8beb9b26c9bf47dfe933c8e0ccaccb4e30a69286 /src/lib/types.h | |
| parent | d7cf091bdbbeae8187e887104d1135e93bcdf5da (diff) | |
Add NamedChannel and use it to hide the never-used channels
when mapping into a DCP.
Diffstat (limited to 'src/lib/types.h')
| -rw-r--r-- | src/lib/types.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/types.h b/src/lib/types.h index 50eed9aa1..2ba0408ad 100644 --- a/src/lib/types.h +++ b/src/lib/types.h @@ -259,4 +259,20 @@ enum EmailProtocol { EMAIL_PROTOCOL_SSL }; + +class NamedChannel +{ +public: + NamedChannel (std::string name_, int index_) + : name(name_) + , index(index_) + {} + + std::string name; + int index; +}; + + +bool operator== (NamedChannel const& a, NamedChannel const& b); + #endif |
