summaryrefslogtreecommitdiff
path: root/kms++/videomode.cpp
blob: 5c98c006401b4767c1b1a674adb5b18b89605fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)));
}

}