wfdcfg_device_create()

Updated: April 19, 2023

Create a wfdcfg device

Synopsis:

#include <wfdqnx/wfdcfg.h>
int wfdcfg_device_create(struct wfdcfg_device **device,
                         int deviceid,
                         const struct wfdcfg_keyval *opts)

Arguments:

device
A handle to the device that is to be created
deviceid
The identification number of the OpenWF device
opts
An array of optional parameters that is terminated by .key=NULL

Library:

libwfdcfg

Description:

This function creates one device. You must create at least one device. Failure to create a device results in the OpenWF display driver reporting an error.

Returns:

0 if device was successfully created; *device is set to an opaque pointer. A code from errno.h if device failed to be created; *device remains unchanged. Possible error codes include:
  • ENOMEM: Unable to allocate a device
  • ENOENT: Invalid/Unknown device ID