Lines Matching defs:GlHistory

43 typedef struct GlHistory GlHistory;
48 GlHistory *_new_GlHistory(size_t buflen);
53 GlHistory *_del_GlHistory(GlHistory *glh);
55 int _glh_add_history(GlHistory *glh, const char *line, int force);
57 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len);
59 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim);
60 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim);
62 int _glh_cancel_search(GlHistory *glh);
64 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim);
65 char *_glh_current_line(GlHistory *glh, char *line, size_t dim);
79 GlhLineID _glh_line_id(GlHistory *glh, int offset);
85 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim);
91 int _glh_save_history(GlHistory *glh, const char *filename,
98 int _glh_load_history(GlHistory *glh, const char *filename, const char *comment,
104 int _glh_set_group(GlHistory *glh, unsigned group);
105 int _glh_get_group(GlHistory *glh);
111 int _glh_show_history(GlHistory *glh, GlWriteFn *write_fn, void *data,
117 int _glh_resize_history(GlHistory *glh, size_t bufsize);
123 void _glh_limit_history(GlHistory *glh, int max_lines);
129 void _glh_clear_history(GlHistory *glh, int all_groups);
134 void _glh_toggle_history(GlHistory *glh, int enable);
140 int _glh_lookup_history(GlHistory *glh, GlhLineID id, const char **line,
146 void _glh_state_of_history(GlHistory *glh, int *enabled, unsigned *group,
152 void _glh_range_of_history(GlHistory *glh, unsigned long *oldest,
159 void _glh_size_of_history(GlHistory *glh, size_t *buff_size, size_t *buff_used);
164 const char *_glh_last_error(GlHistory *glh);
169 int _glh_search_active(GlHistory *glh);