Updated: October 28, 2024 |
Interface metadata structure
#include <aoi.h> typedef struct { const char *name; int32_t version; void *interface; } AOInterface_t;
All components that use or implement the interface must agree on what the interface pointer is supposed to refer to, but it can refer to anything you want. Typically, it's a pointer to an array of function pointers, a pointer to a function, or a pointer to a string.