Updated: October 28, 2024 |
Get an interface from a control
#include <aoi.h> void *AoGetInterface(const AOICtrl_t *ctrl, const char *ifname, const int32_t minver, const int32_t nth);
This function searches for the nth interface (in a zero-based index) in the given control. If the name and minimum version are specified, the function looks for a matching interface at the nth position. If either of these two arguments is different from the corresponding interface metadata field, no interface is returned.
Before calling this function, the caller must hold the control using AoHold().
A pointer to the interface if the specified interface was found at the nth index in the control, or NULL is no such interface was found.
QNX Neutrino