diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-02-23 17:33:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-02-23 17:33:43 +0000 |
commit | c491f8e99349e4022fac0dec6536ab4b43396507 (patch) | |
tree | dfc2f6bba4d40995ef4e0c152a533ad12ff47d1e /monitor-get-edid.c | |
parent | 3b6ec4ddecee5811e38d757f15a56edfbce79b4a (diff) | |
download | monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar.gz monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar.bz2 monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar.xz monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.zip |
*** empty log message ***
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; +} |