Create a list of video modes associated with specified port
Synopsis:
#include <wfdqnx/wfdcfg.h>
int wfdcfg_mode_list_create(struct wfdcfg_mode_list **list,
const struct wfdcfg_port *port,
const struct wfdcfg_keyval *opts)
Arguments:
- list
- A handle to the list to be created
- port
- The port associated with the list to be created
- opts
- An array of optional parameters that is terminated by .key=NULL
Library:
libwfdcfg
Returns:
0 if port was successfully created;
*list is set to an opaque pointer. A code from errno.h if device failed to be created;
*list remains unchanged. Possible error codes include:
- ENOMEM: Unable to allocate a list
- ENOENT: Invalid port