2022-06-11 11:38:49 +02:00
|
|
|
#ifndef CTA_H
|
|
|
|
#define CTA_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Private header for the low-level CTA API.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <libdisplay-info/cta.h>
|
|
|
|
|
|
|
|
struct di_edid_cta {
|
|
|
|
int revision;
|
2022-06-11 12:19:27 +02:00
|
|
|
struct di_edid_cta_flags flags;
|
2022-06-11 14:06:23 +02:00
|
|
|
|
|
|
|
/* NULL-terminated */
|
|
|
|
struct di_cta_data_block *data_blocks[128];
|
|
|
|
size_t data_blocks_len;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct di_cta_data_block {
|
|
|
|
enum di_cta_data_block_tag tag;
|
2022-06-11 11:38:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
bool
|
|
|
|
_di_edid_cta_parse(struct di_edid_cta *cta, const uint8_t *data, size_t size);
|
|
|
|
|
2022-06-11 14:06:23 +02:00
|
|
|
void
|
|
|
|
_di_edid_cta_finish(struct di_edid_cta *cta);
|
|
|
|
|
2022-06-11 11:38:49 +02:00
|
|
|
#endif
|