X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gfio.h;h=71b2db74cdf8bfdfe7580ba6bc862acfa39556d6;hp=d115f7c75b7a204df68b5bc279a3be6c6e974e24;hb=057754389863aa18cbf36b1f2a556a422ea2f4b5;hpb=49c34176d4130b3d4c4d90397a497b335f7ddbac diff --git a/gfio.h b/gfio.h index d115f7c7..71b2db74 100644 --- a/gfio.h +++ b/gfio.h @@ -3,6 +3,8 @@ #include +#include "stat.h" +#include "thread_options.h" #include "ghelpers.h" struct probe_widget { @@ -65,7 +67,7 @@ struct gui { pthread_t t; int handler_running; - struct flist_head list; + GHashTable *ge_hash; } main_ui; enum { @@ -88,7 +90,6 @@ enum { * Notebook entry */ struct gui_entry { - struct flist_head list; struct gui *ui; GtkWidget *vbox; @@ -118,8 +119,11 @@ struct gui_entry { struct graph *lat_bucket_graph; struct gfio_client *client; - int nr_job_files; - char **job_files; + char *job_file; + char *host; + int port; + int type; + int server_start; }; struct end_results { @@ -140,8 +144,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