diff --git a/libkms++/connector.h b/libkms++/connector.h
index 9776be35258c940609c22d6b3d65ce187ce8631e..cc04d522279e91941922c7e95ebdf0ce5193a95f 100644 (file)
--- a/libkms++/connector.h
+++ b/libkms++/connector.h
#include <vector>
#include "drmobject.h"
+#include "videomode.h"
namespace kms
{
struct ConnectorPriv;
-struct Videomode
-{
- uint32_t clock;
- uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew;
- uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan;
-
- uint32_t vrefresh;
-
- uint32_t flags;
- uint32_t type;
- char name[32]; // XXX
-};
-
class Connector : public DrmObject
{
friend class Card;
Videomode get_default_mode() const;
Videomode get_mode(const std::string& mode) const;
+ Videomode get_mode(unsigned xres, unsigned yres, unsigned refresh) const;
Crtc* get_current_crtc() const;
std::vector<Crtc*> get_possible_crtcs() const;