]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blob - libkms++/helpers.cpp
connector: consider UNKNOWNCONNECTION as connected
[android/external-libkmsxx.git] / libkms++ / helpers.cpp
2 #include "connector.h"
3 #include "helpers.h"
4 #include <cstring>
6 namespace kms
7 {
8 Videomode drm_mode_to_video_mode(const drmModeModeInfo& drmmode)
9 {
10         // XXX these are the same at the moment
11         Videomode mode;
12         memcpy(&mode, &drmmode, sizeof(mode));
13         return mode;
14 }
16 drmModeModeInfo video_mode_to_drm_mode(const Videomode& mode)
17 {
18         // XXX these are the same at the moment
19         drmModeModeInfo drmmode;
20         memcpy(&drmmode, &mode, sizeof(drmmode));
21         return drmmode;
22 }
23 }