22 #ifndef LUMIERA_INTERFACEREGISTRY_H 23 #define LUMIERA_INTERFACEREGISTRY_H 35 extern PSplay lumiera_interfaceregistry;
36 extern lumiera_recmutex lumiera_interface_mutex;
45 typedef lumiera_interfacenode* LumieraInterfacenode;
62 LumieraInterfacenode
lnk;
68 LumieraInterfacenode*
deps;
79 lumiera_interfaceregistry_destroy (
void);
83 lumiera_interfaceregistry_register_interface (LumieraInterface
self, LumieraPlugin
plugin);
86 lumiera_interfaceregistry_bulkregister_interfaces (LumieraInterface*
self, LumieraPlugin
plugin);
89 lumiera_interfaceregistry_remove_interface (LumieraInterface
self);
92 lumiera_interfaceregistry_bulkremove_interfaces (LumieraInterface*
self);
95 lumiera_interfaceregistry_interfacenode_find (
const char*
interface,
unsigned version,
const char*
name);
98 lumiera_interfaceregistry_interface_find (
const char*
interface,
unsigned version,
const char*
name);
LumieraInterface interface
the interface itself
Lumiera plugins define 'interfaces' as shown in interface.h, the plugin system handles the loading of...
void lumiera_interfaceregistry_init(void)
Initialise the interface registry.
Mutual exclusion locking, header.
size_t deps_size
allocated size of the following dependency table
Lumiera interface macros and structures.
LumieraPlugin plugin
backreference to its plugin if it comes from a plugin, else NULL
Probabilistic splay tree.
psplaynode node
all known interfaces are registered in a tree
Mutual exclusion locking, header.
LumieraInterfacenode * deps
NULL terminated table of all dependencies (interfaces opened on initialisation)
LumieraInterfacenode lnk
temporary used to stack interfaces when recursively opening/closing them
Interface management node.
unsigned refcnt
reference counters and link used for internal reference management