wfdcfg_port_get_extension()

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

Synopsis:

#include <wfdqnx/wfdcfg.h>
 
const struct wfdcfg_keyval* wfdcfg_port_get_extension(
             const struct wfdcfg_port *port,
             const char *key)
      

Arguments:

port

A handle to the port whose extension(s) you are retrieving

key

Identifier of the extension to retrieve

Library:

libwfdcfg

Description:

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

Returns:

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