search for: filter_plugin_config_complete

Displaying 2 results from an estimated 2 matches for "filter_plugin_config_complete".

2018 Jan 14
0
[PATCH nbdkit INCOMPLETE 6/6] filters: Implement chain of filters in front of ordinary plugin methods.
...lters, key, value) == -1) + exit (EXIT_FAILURE); +} + +static int +final_plugin_config_complete (void) { assert (dl); debug ("%s: config_complete", filename); if (!plugin.config_complete) - return; + return 0; + + return plugin.config_complete (); +} + +static int +filter_plugin_config_complete (void *data) +{ + if (data == NULL) + return final_plugin_config_complete (); + else { + struct filter *f = data; + + debug ("%s: config_complete", f->filename); - if (plugin.config_complete () == -1) + if (f->filter.config_complete) + if (f->filter.config_c...
2018 Jan 14
10
[PATCH nbdkit INCOMPLETE 0/6] Introduce filters to nbdkit.
This patch isn't complete (patch 6/6 isn't finished) so it's just for discussion, although it does compile and run. This introduces to nbdkit a concept of "filters" which can be placed in front of plugins to modify their behaviour. Some examples where you might use filters: * Serve a subset of the data, such as (offset, range) or a single partition from a disk image.