Functions: add-ons
Convenience functions for ui_addons. More...
Functions | |
int | register_addon (const addon_info_t *info) |
Register an add-on. More... | |
int | addon_count () |
Get number of installed addons. | |
bool | get_addon_info (const char *id, addon_info_t *info) |
Get info about a registered addon with a given product code. More... | |
bool | get_addon_info_idx (int index, addon_info_t *info) |
Get info about a registered addon with specific index. More... | |
Detailed Description
Convenience functions for ui_addons.
Function Documentation
◆ register_addon()
|
inline |
Register an add-on.
Show its info in the About box. For plugins, should be called from init() function (repeated calls with the same product code overwrite previous entries) returns: index of the add-on in the list, or -1 on error
◆ get_addon_info()
|
inline |
Get info about a registered addon with a given product code.
info->cb must be valid! NB: all pointers are invalidated by next call to register_addon or get_addon_info
- Returns
- false if not found
◆ get_addon_info_idx()
|
inline |
Get info about a registered addon with specific index.
info->cb must be valid! NB: all pointers are invalidated by next call to register_addon or get_addon_info
- Returns
- false if index is out of range
Generated by 1.9.3