diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-09 19:19:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-09 20:11:33 +0100 |
| commit | 2eab969654eca2ef4b222790c8b730a6eb709565 (patch) | |
| tree | be8b463ce2c56692275e550fd419b7bce707d414 /src/lib/edid.h | |
| parent | bc5b4d4dc178dad75eacb02fd2d4e98c7d3801ec (diff) | |
swaroop: required monitors checks.
Diffstat (limited to 'src/lib/edid.h')
| -rw-r--r-- | src/lib/edid.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/lib/edid.h b/src/lib/edid.h new file mode 100644 index 000000000..e29c77cdc --- /dev/null +++ b/src/lib/edid.h @@ -0,0 +1,50 @@ +/* + Copyright (C) 2018 Carl Hetherington <cth@carlh.net> + + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + DCP-o-matic is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#ifndef DCPOMATIC_EDID_H +#define DCPOMATIC_EDID_H + +#include <libcxml/cxml.h> +#include <vector> +#include <string> + +namespace xmlpp { + class Node; +} + +class Monitor +{ +public: + Monitor (); + Monitor (cxml::ConstNodePtr node); + void as_xml (xmlpp::Node* parent) const; + + std::string manufacturer_id; + uint16_t manufacturer_product_code; + uint32_t serial_number; + uint8_t week_of_manufacture; + uint8_t year_of_manufacture; +}; + +bool operator== (Monitor const & a, Monitor const & b); + +extern std::vector<Monitor> get_monitors(); + +#endif |
