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:
Christian Thaeter 2008-11-05 11:07:49 +01:00
parent 4d2fe242d0
commit c30c98bebd

View file

@ -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;