X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=gfio.h;h=b8de680a06184e98e0facf127d72234fbffdcdf3;hb=bf0f6cc7a98bbbb5247db6a7866d3de323d1f693;hp=dc810a63f87cee2863f0840c0f53f8eb844ded23;hpb=0cf3ece062d6856bd79b89770780296c99937a98;p=fio.git diff --git a/gfio.h b/gfio.h index dc810a63..b8de680a 100644 --- a/gfio.h +++ b/gfio.h @@ -3,7 +3,10 @@ #include +#include "stat.h" +#include "thread_options.h" #include "ghelpers.h" +#include "graph.h" struct probe_widget { GtkWidget *hostname; @@ -35,7 +38,11 @@ struct gfio_graphs { #define DRAWING_AREA_YDIM 400 GtkWidget *drawing_area; struct graph *iops_graph; + graph_label_t read_iops; + graph_label_t write_iops; struct graph *bandwidth_graph; + graph_label_t read_bw; + graph_label_t write_bw; }; /* @@ -65,7 +72,7 @@ struct gui { pthread_t t; int handler_running; - struct flist_head list; + GHashTable *ge_hash; } main_ui; enum { @@ -88,7 +95,6 @@ enum { * Notebook entry */ struct gui_entry { - struct flist_head list; struct gui *ui; GtkWidget *vbox; @@ -143,8 +149,13 @@ struct gfio_client { unsigned int nr_du; }; -#define ARRAYSIZE(x) (sizeof((x)) / (sizeof((x)[0]))) - #define GFIO_MIME "text/fio" +extern void gfio_view_log(struct gui *ui); +extern void gfio_set_state(struct gui_entry *ge, unsigned int state); +extern void clear_ge_ui_info(struct gui_entry *ge); + +extern const char *gfio_graph_font; +extern GdkColor gfio_color_white; + #endif