diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 20:17:35 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 20:17:35 +0300 |
commit | 17d180891f1e237ea5d25835999a8b23a6e7946d (patch) | |
tree | 5963fe4d338f6272daf55c76ed355effb47afc71 /kms++/videomode.cpp | |
parent | 38a71ee72c47f3287c327113ce411f236cac05ef (diff) |
rename dirs
Diffstat (limited to 'kms++/videomode.cpp')
-rw-r--r-- | kms++/videomode.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kms++/videomode.cpp b/kms++/videomode.cpp new file mode 100644 index 0000000..5c98c00 --- /dev/null +++ b/kms++/videomode.cpp @@ -0,0 +1,19 @@ +#include <xf86drm.h> +#include <xf86drmMode.h> + +#include "videomode.h" +#include "helpers.h" + +using namespace std; + +namespace kms +{ + +unique_ptr<Blob> Videomode::to_blob(Card& card) const +{ + drmModeModeInfo drm_mode = video_mode_to_drm_mode(*this); + + return unique_ptr<Blob>(new Blob(card, &drm_mode, sizeof(drm_mode))); +} + +} |