Create a wfdcfg port
Synopsis:
#include <wfdqnx/wfdcfg.h>
int wfdcfg_port_create(struct wfdcfg_port **port,
const struct wfdcfg_device *device,
int portid,
const struct wfdcfg_keyval *opts)
Arguments:
- port
- A handle to the port that is to be created
- device
- A handle to the device that is associated with the port to be created
- portid
- The identification number of the OpenWFD port
- opts
- An array of optional parameters that is terminated by .key=NULL
Library:
libwfdcfg
Description:
There must be at least one port created. Otherwise, the OpenWF display driver will report an error.
Returns:
0 if port was successfully created;
*port is set to an opaque pointer. A code from errno.h if device failed to be created;
*port remains unchanged. Possible error codes include:
- ENOMEM: Unable to allocate a port
- ENOENT: Invalid/Unknown port ID