aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_behex_edid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgamma_behex_edid.c')
-rw-r--r--libgamma_behex_edid.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgamma_behex_edid.c b/libgamma_behex_edid.c
new file mode 100644
index 0000000..269d68f
--- /dev/null
+++ b/libgamma_behex_edid.c
@@ -0,0 +1,13 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+/**
+ * Convert a raw representation of an EDID to a lowercase hexadecimal representation
+ *
+ * @param edid:const unsigned char* The EDID in raw representation
+ * @param length:size_t The length of `edid`
+ * @return :char* The EDID in lowercase hexadecimal representation,
+ * `NULL` on allocation error, `errno` will be set accordingly
+ */
+extern inline char *libgamma_behex_edid(const unsigned char *restrict, size_t);