]> git.ipfire.org Git - collecty.git/commitdiff
graph: Pass the object to the render function
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 09:00:38 +0000 (09:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 09:00:38 +0000 (09:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/graph.c
src/daemon/graph.h

index 900f836c166354635694250cf8eb2229ce00386f..3b6b0769275a7deb986e2cc21b1455719cac41e3 100644 (file)
@@ -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;
 
index 1f703c128d1a49266fd699cd9fd0bc3a480367c7..37a7f49a8522f7913cd5f2940fa25238652e756c 100644 (file)
@@ -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,