The number of readout interfaces, successfully registered by the plugins is supposed to be counted and stored in the session context object. Although this is not used by the GUI, we want the API to support this feature. Sgned-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> --- src/libkshark-plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libkshark-plugin.c b/src/libkshark-plugin.c index bc68186..ebd2579 100644 --- a/src/libkshark-plugin.c +++ b/src/libkshark-plugin.c @@ -457,6 +457,7 @@ kshark_register_input(struct kshark_context *kshark_ctx, input->interface = plugin; input->next = kshark_ctx->inputs; kshark_ctx->inputs = input; + kshark_ctx->n_inputs++; return input; conflict: @@ -489,6 +490,7 @@ void kshark_unregister_input(struct kshark_context *kshark_ctx, *last = this_input->next; free(this_input); + kshark_ctx->n_inputs--; return; } -- 2.25.1