Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if (r < 0)
goto ERROR;
+ // Select the output format
+ if (options->format) {
+ r = collecty_args_push(args, "--imgformat=%s", options->format);
+ if (r < 0)
+ goto ERROR;
+ }
+
// Write the graph to the output stream
r = collecty_args_push(args, "-");
if (r < 0)
collecty_args* args, const char* name, const char* object);
typedef struct collecty_graph_render_options {
- // XXX TODO
+ const char* format;
} collecty_graph_render_options;
int collecty_graph_render(collecty_graph* self, const char* object,