Add a CALL macro to interface.h
This commit is contained in:
parent
f114b04509
commit
c84d10c9d5
1 changed files with 9 additions and 0 deletions
|
|
@ -268,6 +268,15 @@ LUMIERA_INTERFACE_DEFINE (plugin, 0,
|
|||
)
|
||||
|
||||
|
||||
/**
|
||||
* Calls a function in interface
|
||||
* @param name name of the interface
|
||||
* @param version version of the interface
|
||||
* @param handle pointer to the interface (LumieraInterface)
|
||||
* @param slot name of the slot to be called
|
||||
*/
|
||||
#define LUMIERA_INTERFACE_CALL(name, version, handle, slot) \
|
||||
(LUMIERA_INTERFACE_CAST(name, version) handle)->slot
|
||||
|
||||
|
||||
typedef struct lumiera_interfaceslot_struct lumiera_interfaceslot;
|
||||
|
|
|
|||
Loading…
Reference in a new issue