diff options
author | Greg Hackmann <ghackmann@google.com> | 2013-11-12 10:39:35 -0800 |
---|---|---|
committer | Greg Hackmann <ghackmann@google.com> | 2013-11-26 15:40:02 -0800 |
commit | 18326353193f97d90b1a423b5efb9e3115befff8 (patch) | |
tree | be20216737b85edb388e89258d2561956bc4b658 /adf/libadf/include | |
parent | 47e0c8d849277a4b96fc364e5703f301e2b94519 (diff) | |
download | system_core-18326353193f97d90b1a423b5efb9e3115befff8.zip system_core-18326353193f97d90b1a423b5efb9e3115befff8.tar.gz system_core-18326353193f97d90b1a423b5efb9e3115befff8.tar.bz2 |
libadf: add helper to set up a simple post
Change-Id: I381b47f924b02c208ea6f20cf887abdef1035830
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'adf/libadf/include')
-rw-r--r-- | adf/libadf/include/adf/adf.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/adf/libadf/include/adf/adf.h b/adf/libadf/include/adf/adf.h index 8ce994f..b6bda34 100644 --- a/adf/libadf/include/adf/adf.h +++ b/adf/libadf/include/adf/adf.h @@ -231,6 +231,20 @@ int adf_read_event(int fd, struct adf_event **event); */ void adf_format_str(__u32 format, char buf[ADF_FORMAT_STR_SIZE]); +/** + * Finds an appropriate interface and overlay engine for a simple post. + * + * Specifically, finds the primary interface, and an overlay engine + * that can be attached to the primary interface and supports one of the + * specified formats. The caller may pass a NULL formats list, to indicate that + * any RGB format is acceptable. + * + * On error, returns -errno. + */ +int adf_find_simple_post_configuration(struct adf_device *dev, + const __u32 *formats, size_t n_formats, + adf_id_t *interface, adf_id_t *overlay_engine); + __END_DECLS #endif /* _LIBADF_ADF_H_ */ |