wfdcfg_mode_list_create()

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

Description:

Once created, use wfdcfg_mode_list_get_next() to retrieve mode (timing) entries in the list.

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