wfdcfg_device_get_extension()

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

Synopsis:

#include <wfdqnx/wfdcfg.h>
const 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.