adas_get_supported_views()

Updated: May 06, 2022

Retrieve the list of supported views associated with a viewer

Synopsis:

#include <adas/adas_api.h>
adas_error_t adas_get_supported_views(uint32_t inst,
                                      adas_view_t *views,
                                      size_t *supported)

Arguments:

inst
The viewer instance of interest (see adas_view_t).
views
A pointer to an array of views filled in by this function (see adas_view_t), or NULL (see the description).
supported
On success, the referenced memory gets filled with the number of supported views.

Library:

libadas

Description:

This function can be called first with views set to NULL to retrieve the number of supported views, to know how big of an array to provide to this function in a second call.

Returns:

ADAS_EOK when the function successfully completes, otherwise another adas_error_t value that provides the reason that the call failed.