summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-10-02 13:31:10 -0400
committerAdam Jackson <ajax@redhat.com>2009-10-02 13:31:10 -0400
commit782fd3be6f6036be41fcf608ca37d2e1214107aa (patch)
tree21fb8ef23cc3cece2059410c5620d3231ed3e4fd
parent318d0dde61bbb469adaae05b63df28512d9ba745 (diff)
Stub in some backends
-rw-r--r--Makefile2
-rw-r--r--displayid.c17
-rw-r--r--edid.c17
-rw-r--r--monitor.c5
4 files changed, 39 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4c1ea94..108f8d0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
sources = \
cvt.c \
+ displayid.c \
+ edid.c \
gtf.c \
mode.c \
monitor.c
diff --git a/displayid.c b/displayid.c
new file mode 100644
index 0000000..ef6cb14
--- /dev/null
+++ b/displayid.c
@@ -0,0 +1,17 @@
+#include "minitru-int.h"
+
+static uint32_t displayid_probe(struct mt_monitor *mon)
+{
+ return 0;
+}
+
+static struct mt_mode *
+displayid_modes(struct mt_monitor *mon)
+{
+ return NULL;
+}
+
+hidden struct mt_backend _mt_displayid_backend = {
+ displayid_probe,
+ displayid_modes,
+};
diff --git a/edid.c b/edid.c
new file mode 100644
index 0000000..f97d8ad
--- /dev/null
+++ b/edid.c
@@ -0,0 +1,17 @@
+#include "minitru-int.h"
+
+static uint32_t edid_probe(struct mt_monitor *mon)
+{
+ return 0;
+}
+
+static struct mt_mode *
+edid_modes(struct mt_monitor *mon)
+{
+ return NULL;
+}
+
+hidden struct mt_backend _mt_edid_backend = {
+ edid_probe,
+ edid_modes,
+};
diff --git a/monitor.c b/monitor.c
index 8d9cdd8..0503cee 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,7 +1,8 @@
#include "minitru-int.h"
-const struct mt_backend *backends[] = {
- NULL
+static const struct mt_backend *backends[] = {
+ &_mt_edid_backend,
+ &_mt_displayid_backend,
};
const int num_backends = sizeof(backends) / sizeof(struct mt_backend);