Updated: October 28, 2024 |
This interface lets addons define their own names. When an addon includes the Name interface, its control can then accessed by using AoFindName() or AoIterateName().
The Name interface itself is a pointer to a string. An example of adding this interface to an addon is shown at the end of the InitializeInterface sample. You should define names for all addons so you can easily interpret error logs, because you will be able to see in which addon a given error occurred. This is also helpful when using the utility that generates addon configuration files (aoiconftool), because you can refer to addons by name to increment or decrement their hold counters; for more information, see the aoiconftool reference.