From e4bff757070c94845aa649be28ace56b6624ff37 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 2 Oct 2025 09:00:38 +0000 Subject: [PATCH] graph: Pass the object to the render function Signed-off-by: Michael Tremer --- src/daemon/graph.c | 2 +- src/daemon/graph.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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, -- 2.47.3