10 #define TYPE_HISTORY (history_get_type ())
11 #define HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HISTORY, History))
12 #define HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HISTORY, HistoryClass))
13 #define IS_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HISTORY))
14 #define IS_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HISTORY))
15 #define HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HISTORY, HistoryClass))
17 typedef struct _History History;
18 typedef struct _HistoryClass HistoryClass;
21 GObject parent_instance;
27 struct _HistoryClass {
28 GObjectClass parent_class;
31 void history_insert_word(History *self, const gchar *word);
32 void history_insert_res(History *self, RESULT *res);
33 void history_prev(gpointer data);
35 void history_save_words(History *self);
36 void history_load_words(History *self);
38 RESULT* history_last_result(History *self);
40 GType history_get_type (void);
44 void history_free_data(RESULT *res);
46 RESULT* result_new(BOOK_INFO *binfo, EB_Position *pos);
47 RESULT* result_duplicate(RESULT *res);
48 void result_copy(RESULT *to, RESULT *from);
49 void result_free(gpointer data);
50 void result_clear_all();
51 gboolean result_compare(RESULT *res1, RESULT *res2);
53 #endif /* __HISTORY_H_ */