wfdcfg_device_get_extension()

Updated: April 19, 2023

Retrieve an extension identified by a key (string) from a device

Synopsis:

#include <wfdqnx/wfdcfg.h>
struct wfdcfg_keyval* wfdcfg_device_get_extension(const struct wfdcfg_device *device,
                                                  const char *key)

Arguments:

device
A handle to the device whose extension(s) you are retrieving
key
Identifier of extension to retrieve

Library:

libwfdcfg

Description:

The extension is valid between the time you create and destroy the device.

Returns:

Pointer to wfdcfg_keyval if the extension was found; NULL if the extension was not found. It's considered acceptable for a device to have no extensions.