From: Michael Tremer Date: Thu, 2 Oct 2025 09:00:38 +0000 (+0000) Subject: graph: Pass the object to the render function X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4bff757070c94845aa649be28ace56b6624ff37;p=collecty.git graph: Pass the object to the render function Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graph.c b/src/daemon/graph.c index 900f836..3b6b076 100644 --- a/src/daemon/graph.c +++ b/src/daemon/graph.c @@ -172,7 +172,7 @@ int collecty_graph_render(collecty_graph* self, goto ERROR; // Call the implementation to add some arguments - r = self->impl->render(self->ctx, self, args); + r = self->impl->render(self->ctx, self, args, object); if (r < 0) goto ERROR; diff --git a/src/daemon/graph.h b/src/daemon/graph.h index 1f703c1..37a7f49 100644 --- a/src/daemon/graph.h +++ b/src/daemon/graph.h @@ -35,7 +35,8 @@ typedef struct collecty_graph_impl { int (*available)(collecty_ctx* ctx, collecty_daemon* daemon); // Render! - int (*render)(collecty_ctx* ctx, collecty_graph* graph, collecty_args* args); + int (*render)(collecty_ctx* ctx, collecty_graph* graph, + collecty_args* args, const char* object); } collecty_graph_impl; int collecty_graph_create(collecty_graph** graph,