diff options
Diffstat (limited to 'monitor-get-edid.c')
-rw-r--r-- | monitor-get-edid.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/monitor-get-edid.c b/monitor-get-edid.c new file mode 100644 index 0000000..ed5b480 --- /dev/null +++ b/monitor-get-edid.c @@ -0,0 +1,20 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <math.h> +#include <sys/mman.h> +#include <unistd.h> +#include <fcntl.h> +#include <errno.h> +#include <stdarg.h> +#include "get-edid.h" + +int main(void) +{ + char edid[256]; + int size = get_edid(edid); + + if (size) write(1, edid, size); + + return size ? 0 : 1; +} |