3 #ifndef GIRARA_INPUT_HISTORY_H
4 #define GIRARA_INPUT_HISTORY_H
6 #include <glib-object.h>
37 #define GIRARA_TYPE_INPUT_HISTORY_IO \
38 (girara_input_history_io_get_type())
39 #define GIRARA_INPUT_HISTORY_IO(obj) \
40 (G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIO))
41 #define GIRARA_IS_INPUT_HISTORY_IO(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY_IO))
43 #define GIRARA_INPUT_HISTORY_IO_GET_INTERFACE(obj) \
44 (G_TYPE_INSTANCE_GET_INTERFACE((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIOInterface))
69 void (*
append)(GiraraInputHistory* history,
const char* input);
77 girara_list_t* (*list)(GiraraInputHistory* history);
86 const char* (*next)(GiraraInputHistory* history,
const char* current_input);
95 const char* (*previous)(GiraraInputHistory* history,
const char* current_input);
104 void (*
reset)(GiraraInputHistory* history);
113 #define GIRARA_TYPE_INPUT_HISTORY \
114 (girara_input_history_get_type ())
115 #define GIRARA_INPUT_HISTORY(obj) \
116 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistory))
117 #define GIRARA_INPUT_HISTORY_CLASS(obj) \
118 (G_TYPE_CHECK_CLASS_CAST ((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
119 #define GIRARA_IS_INPUT_HISTORY(obj) \
120 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIRARA_TYPE_INPUT_HISTORY))
121 #define GIRARA_IS_INPUT_HISTORY_CLASS(obj) \
122 (G_TYPE_CHECK_CLASS_TYPE ((obj), GIRARA_TYPE_INPUT_HISTORY))
123 #define GIRARA_INPUT_HISTORY_GET_CLASS(obj) \
124 (G_TYPE_INSTANCE_GET_CLASS ((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
157 const char* current_input);
167 const char* current_input);