API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

AEEINTERFACE()

Brew Release
Brew MP 1.0.2
Description
The standard way to declare the type of a new interface. Defines an opaque type, and the method vtable's struct header. Designed to be used like so:
      AEEINTERFACE(IFoo) {
           uint32 (*AddRef)(IFoo*);
           uint32 (*Release)(IFoo*);
           int    (*QueryInterface)(IFoo *, AEECLSID, void **);
      };
Params
iname
[]:
the interface name for which the method vtable type header should be should be generated
Definition
  •    #define AEEINTERFACE(iname) \
                  typedef struct AEEVTBL(iname) AEEVTBL(iname); \
                  struct AEEVTBL(iname)
    
Comments
This macro is rarely used by itself, it's more commonly used only as part of AEEVTBL_DEFINE().