3 #ifndef GIRARA_INPUT_HISTORY_H 4 #define GIRARA_INPUT_HISTORY_H 6 #include <glib-object.h> 38 #define GIRARA_TYPE_INPUT_HISTORY_IO \ 39 (girara_input_history_io_get_type()) 40 #define GIRARA_INPUT_HISTORY_IO(obj) \ 41 (G_TYPE_CHECK_INSTANCE_CAST((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIO)) 42 #define GIRARA_IS_INPUT_HISTORY_IO(obj) \ 43 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIRARA_TYPE_INPUT_HISTORY_IO)) 44 #define GIRARA_INPUT_HISTORY_IO_GET_INTERFACE(obj) \ 45 (G_TYPE_INSTANCE_GET_INTERFACE((obj), GIRARA_TYPE_INPUT_HISTORY_IO, GiraraInputHistoryIOInterface)) 70 void (*
append)(GiraraInputHistory* history,
const char* input);
87 const char* (*next)(GiraraInputHistory* history,
const char* current_input);
96 const char* (*previous)(GiraraInputHistory* history,
const char* current_input);
105 void (*
reset)(GiraraInputHistory* history);
114 #define GIRARA_TYPE_INPUT_HISTORY \ 115 (girara_input_history_get_type()) 116 #define GIRARA_INPUT_HISTORY(obj) \ 117 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistory)) 118 #define GIRARA_INPUT_HISTORY_CLASS(obj) \ 119 (G_TYPE_CHECK_CLASS_CAST ((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass)) 120 #define GIRARA_IS_INPUT_HISTORY(obj) \ 121 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIRARA_TYPE_INPUT_HISTORY)) 122 #define GIRARA_IS_INPUT_HISTORY_CLASS(obj) \ 123 (G_TYPE_CHECK_CLASS_TYPE ((obj), GIRARA_TYPE_INPUT_HISTORY)) 124 #define GIRARA_INPUT_HISTORY_GET_CLASS(obj) \ 125 (G_TYPE_INSTANCE_GET_CLASS ((obj), GIRARA_TYPE_INPUT_HISTORY, GiraraInputHistoryClass))
void girara_input_history_reset(GiraraInputHistory *history) GIRARA_VISIBLE
GObjectClass parent_class
void(* reset)(GiraraInputHistory *history)
void girara_input_history_io_append(GiraraInputHistoryIO *io, const char *input) GIRARA_VISIBLE
const char * girara_input_history_previous(GiraraInputHistory *history, const char *current_input) GIRARA_VISIBLE
struct girara_input_history_io_s GiraraInputHistoryIO
girara_list_t * girara_input_history_list(GiraraInputHistory *history) GIRARA_VISIBLE
GType girara_input_history_get_type(void) G_GNUC_CONST GIRARA_VISIBLE
const char * girara_input_history_next(GiraraInputHistory *history, const char *current_input) GIRARA_VISIBLE
void(* append)(GiraraInputHistoryIO *io, const char *input)
void girara_input_history_append(GiraraInputHistory *history, const char *input) GIRARA_VISIBLE
GType girara_input_history_io_get_type(void) G_GNUC_CONST GIRARA_VISIBLE
GiraraInputHistory * girara_input_history_new(GiraraInputHistoryIO *io) GIRARA_VISIBLE
struct girara_list_s girara_list_t
void(* append)(GiraraInputHistory *history, const char *input)
GTypeInterface parent_iface
girara_list_t * girara_input_history_io_read(GiraraInputHistoryIO *io) GIRARA_VISIBLE