#include <gtk/gtk.h>
+#include "stat.h"
+#include "thread_options.h"
#include "ghelpers.h"
+#include "graph.h"
struct probe_widget {
GtkWidget *hostname;
#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;
};
/*
pthread_t t;
int handler_running;
- struct flist_head list;
+ GHashTable *ge_hash;
} main_ui;
enum {
* Notebook entry
*/
struct gui_entry {
- struct flist_head list;
struct gui *ui;
GtkWidget *vbox;
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 {
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