Add Videomode::to_blob()
[android/external-libkmsxx.git] / libkms++ / videomode.h
1 #pragma once
3 #include <string>
4 #include <cstdint>
5 #include <memory>
7 #include "blob.h"
9 namespace kms
10 {
12 struct Videomode
13 {
14         std::string name;
16         uint32_t clock;
17         uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew;
18         uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan;
20         uint32_t vrefresh;
22         uint32_t flags;         // DRM_MODE_FLAG_*
23         uint32_t type;          // DRM_MODE_TYPE_*
25         std::unique_ptr<Blob> to_blob(Card& card) const;
26 };
28 }