Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

IDL structure in C

IDL structures are mapped to C structures, with a typedef to allow the name of the structure to be used as a type. Types declared within a structure will have the name of the enclosing structure prepended to their names, as is done with definitions within modules and interfaces. For example:

struct extended_point
{
  short x;
  float y;
  IFoo foo;
};

is mapped as:

typedef struct extended_point
{
  short int x;
  float y;
  IFoo* foo;
} extended_point;