gfio: add graph axis unit change notification callbacks
[fio.git] / graph.h
diff --git a/graph.h b/graph.h
index 7c3e862b5f486d7a6024f3405a6494f7f380a615..e04b5fffacf76b9972871cf35f6ffe38260cfd2b 100644 (file)
--- a/graph.h
+++ b/graph.h
@@ -21,6 +21,9 @@ void graph_set_color(struct graph *g, const char *label,
                double red, double green, double blue);
 void graph_free(struct graph *bg);
 
+typedef void (*graph_axis_unit_change_callback)(struct graph *g, int power_of_ten);
+void graph_x_axis_unit_change_notify(struct graph *g, graph_axis_unit_change_callback f);
+void graph_y_axis_unit_change_notify(struct graph *g, graph_axis_unit_change_callback f);
 
 #endif