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);
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);
GiraraInputHistory * girara_input_history_new(GiraraInputHistoryIO *io)
const char * girara_input_history_previous(GiraraInputHistory *history, const char *current_input)
GObjectClass parent_class
void(* reset)(GiraraInputHistory *history)
void girara_input_history_append(GiraraInputHistory *history, const char *input)
void girara_input_history_reset(GiraraInputHistory *history)
struct girara_input_history_io_s GiraraInputHistoryIO
const char * girara_input_history_next(GiraraInputHistory *history, const char *current_input)
void girara_input_history_io_append(GiraraInputHistoryIO *io, const char *input)
girara_list_t * girara_input_history_list(GiraraInputHistory *history)
GType girara_input_history_get_type(void) G_GNUC_CONST
GType girara_input_history_io_get_type(void) G_GNUC_CONST
void(* append)(GiraraInputHistoryIO *io, const char *input)
girara_list_t * girara_input_history_io_read(GiraraInputHistoryIO *io)
struct girara_list_s girara_list_t
void(* append)(GiraraInputHistory *history, const char *input)
GTypeInterface parent_iface