add a LUMIERA_INTERFACE_CLOSE macro
This is a small typesafe wrapper around the interface_close() function and since we need INTERFACE_OPEN wraped too this makes it more orthogonal
This commit is contained in:
parent
4d2fe242d0
commit
c30c98bebd
1 changed files with 3 additions and 0 deletions
|
|
@ -320,6 +320,9 @@ LUMIERA_INTERFACE_INSTANCE (lumieraorg__plugin, 0,
|
|||
#define LUMIERA_INTERFACE_OPEN(interface, version, minminor, name) \
|
||||
LUMIERA_INTERFACE_CAST(interface, version) lumiera_interface_open (#interface, version, minminor, #name)
|
||||
|
||||
#define LUMIERA_INTERFACE_CLOSE(handle) \
|
||||
lumiera_interface_close (&(handle)->interface_header_)
|
||||
|
||||
|
||||
typedef struct lumiera_interfaceslot_struct lumiera_interfaceslot;
|
||||
typedef lumiera_interfaceslot* LumieraInterfaceslot;
|
||||
|
|
|
|||
Loading…
Reference in a new issue