void (*LND_FilterCreateFunc) (void); void (*LND_FilterModifyFunc) (LND_Filter *filter); void (*LND_FilterFactoryFunc) (LND_FilterFactory *factory, void *user_data); LND_FilterFactory* libnd_filter_factory_new (const char *name, LND_FilterCreateFunc create_func, LND_FilterModifyFunc modify_func); void libnd_filter_factory_free (LND_FilterFactory *factory); gboolean libnd_filter_factory_register (LND_FilterFactory *factory); void libnd_filter_factory_foreach (LND_FilterFactoryFunc callback, void *user_data); LND_FilterFactory* libnd_filter_factory_find (const char *name); |
void (*LND_FilterFactoryFunc) (LND_FilterFactory *factory, void *user_data); |
This is the signature of callbacks passed to libnd_filter_factory_foreach()
.
currently iterated factory.
arbitrary data.
LND_FilterFactory* libnd_filter_factory_new (const char *name, LND_FilterCreateFunc create_func, LND_FilterModifyFunc modify_func); |
name of the new factory.
implementation of the filter creation function.
implementation of the filter modification function.
new filter factory.
void libnd_filter_factory_free (LND_FilterFactory *factory); |
The factory releases the memory occupied by a filter factory.
factory to free.
gboolean libnd_filter_factory_register (LND_FilterFactory *factory); |
This function adds factory to the registry of known factories.
filter factory to register.
TRUE if the factory was registered, FALSE if the factory was already known or in case of an error.
void libnd_filter_factory_foreach (LND_FilterFactoryFunc callback, void *user_data); |
The function iterates over all registered filter factories, calling callback for each of them.
callback function to call for each registered factory.
arbitrary user data passed to callback.