}
static int collecty_graph_bus_render(sd_bus_message* m, void* data, sd_bus_error* error) {
+ collecty_graph_render_options options = {};
collecty_graph* graph = data;
sd_bus_message* reply = NULL;
const char* object = NULL;
object = NULL;
// Render the graph
- r = collecty_graph_render(graph, object, &buffer, &length);
+ r = collecty_graph_render(graph, object, &options, &buffer, &length);
if (r < 0)
goto ERROR;
return r;
}
-int collecty_graph_render(collecty_graph* self,
- const char* object, char** buffer, size_t* length) {
+int collecty_graph_render(collecty_graph* self, const char* object,
+ const collecty_graph_render_options* options, char** buffer, size_t* length) {
collecty_args* args = NULL;
char** data = NULL;
FILE* f = NULL;
int collecty_graph_require_module(collecty_graph* self,
collecty_args* args, const char* name, const char* object);
-int collecty_graph_render(collecty_graph* self,
- const char* object, char** buffer, size_t* length);
+typedef struct collecty_graph_render_options {
+ // XXX TODO
+} collecty_graph_render_options;
+
+int collecty_graph_render(collecty_graph* self, const char* object,
+ const collecty_graph_render_options* options, char** buffer, size_t* length);
#endif /* COLLECTY_GRAPH_H */