summaryrefslogtreecommitdiff
path: root/gfio.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-03-21 12:48:32 +0100
committerJens Axboe <axboe@kernel.dk>2012-03-21 12:48:32 +0100
commitb98ab718031a25ecfd3fa64df3f9992baa83b5ac (patch)
treeafb25dab5bad969c8da115c86f21a1adad87de6a /gfio.h
parent470cdbb7a77db8293440c8f7610e49b2537d6b7b (diff)
gfio: use glib hash for tab lookup
Not really a CPU saver, but it reduces the amount of code we have to maintain by getting rid of the list lookup. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'gfio.h')
-rw-r--r--gfio.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gfio.h b/gfio.h
index 4a60292..dd4ee3d 100644
--- a/gfio.h
+++ b/gfio.h
@@ -3,7 +3,6 @@
#include <gtk/gtk.h>
-#include "flist.h"
#include "stat.h"
#include "thread_options.h"
#include "ghelpers.h"
@@ -68,7 +67,7 @@ struct gui {
pthread_t t;
int handler_running;
- struct flist_head list;
+ GHashTable *ge_hash;
} main_ui;
enum {
@@ -91,7 +90,6 @@ enum {
* Notebook entry
*/
struct gui_entry {
- struct flist_head list;
struct gui *ui;
GtkWidget *vbox;