AoHasInterface()

Updated: May 06, 2022

Check if the given control has a specific interface

Synopsis:

#include <aoi.h>

int32_t AoHasInterface(const AOICtrl_t *ctrl,
                       const char *ifname,
                       const int32_t minver,
                       const int32_t nth);

Arguments:

ctrl
A pointer to an AOICtrl_t handle to the control containing the interface you want to find.
ifname
(Optional) The name of the interface to find, or NULL if you don't want to find the interface by its name.
minver
(Optional) The minimum version of the interface to find. This argument is processed only if ifname is specified.
nth
The zero-based index of the interface to find.

Library:

libaoi.so

Description:

This function searches for the nth interface (in a zero-based index) in the given control. It is similar to calling AoGetInterface(), but it doesn't return the interface; it only indicates whether it is in the control. The caller doesn't need to hold the control before calling this function.

Returns:

1 if the specified interface was found in the control, 0 if it wasn't.

Classification:

QNX Neutrino