Lines Matching refs:GlHistory

118 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line,
170 struct GlHistory { struct
201 static int _glh_cant_load_history(GlHistory *glh, const char *filename, argument
203 static int _glh_cant_save_history(GlHistory *glh, const char *message,
208 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node);
209 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id);
210 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line,
212 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode);
213 static int _glh_prepare_for_recall(GlHistory *glh, char *line);
250 GlHistory *_new_GlHistory(size_t buflen) in _new_GlHistory()
252 GlHistory *glh; /* The object to be returned */ in _new_GlHistory()
257 glh = (GlHistory *) malloc(sizeof(GlHistory)); in _new_GlHistory()
348 GlHistory *_del_GlHistory(GlHistory *glh) in _del_GlHistory()
403 int _glh_add_history(GlHistory *glh, const char *line, int force) in _glh_add_history()
530 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim) in _glh_find_backwards()
618 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim) in _glh_find_forwards()
703 int _glh_cancel_search(GlHistory *glh) in _glh_cancel_search()
741 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len) in _glh_search_prefix()
792 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim) in _glh_oldest_line()
865 char *_glh_current_line(GlHistory *glh, char *line, size_t dim) in _glh_current_line()
917 GlhLineID _glh_line_id(GlHistory *glh, int offset) in _glh_line_id()
956 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim) in _glh_recall_line()
1009 int _glh_save_history(GlHistory *glh, const char *filename, const char *comment, in _glh_save_history()
1097 static int _glh_cant_save_history(GlHistory *glh, const char *message, in _glh_cant_save_history()
1155 int _glh_load_history(GlHistory *glh, const char *filename, const char *comment, in _glh_load_history()
1277 static int _glh_cant_load_history(GlHistory *glh, const char *filename, in _glh_cant_load_history()
1389 int _glh_set_group(GlHistory *glh, unsigned group) in _glh_set_group()
1425 int _glh_get_group(GlHistory *glh) in _glh_get_group()
1458 int _glh_show_history(GlHistory *glh, GlWriteFn *write_fn, void *data, in _glh_show_history()
1629 int _glh_resize_history(GlHistory *glh, size_t bufsize) in _glh_resize_history()
1756 void _glh_limit_history(GlHistory *glh, int max_lines) in _glh_limit_history()
1803 void _glh_clear_history(GlHistory *glh, int all_groups) in _glh_clear_history()
1881 void _glh_toggle_history(GlHistory *glh, int enable) in _glh_toggle_history()
1896 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node) in _glh_discard_line()
1955 int _glh_lookup_history(GlHistory *glh, GlhLineID id, const char **line, in _glh_lookup_history()
2022 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id) in _glh_find_id()
2073 void _glh_state_of_history(GlHistory *glh, int *enabled, unsigned *group, in _glh_state_of_history()
2103 void _glh_range_of_history(GlHistory *glh, unsigned long *oldest, in _glh_range_of_history()
2127 void _glh_size_of_history(GlHistory *glh, size_t *buff_size, size_t *buff_used) in _glh_size_of_history()
2151 const char *_glh_last_error(GlHistory *glh) in _glh_last_error()
2169 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line, in _glh_acquire_copy()
2261 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode) in _glh_discard_copy()
2331 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line, in glh_find_bucket()
2497 static int _glh_prepare_for_recall(GlHistory *glh, char *line) in _glh_prepare_for_recall()
2538 int _glh_search_active(GlHistory *glh) in _glh_search_active()