AoAdd()

Updated: October 26, 2022

Add the interfaces in a DLL to the global list of interfaces

Synopsis:

#include <aoi.h>

const AOICtrl_t *AoAdd(const char *dll);

Arguments:

dll
The path and filename of the DLL containing the interfaces that you want to add.

Library:

libaoi.so

Description:

This function examines the global list of interfaces and if necessary, loads the DLL found at the given path, registers the DLL's interfaces by adding them to the global list, then unloads the DLL. The function then returns a control handle for the registered interfaces. With this handle, you can access the interfaces with AoGetInterface(), or search for a specific set of interfaces with one of the AoFind*() functions.

Returns:

A pointer to the control handle (of type AOICtrl_t) for the added interfaces, or NULL if an error occurred.

Classification:

QNX Neutrino