Lines Matching defs:GlHistory

118 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line,
170 struct GlHistory {
201 static int _glh_cant_load_history(GlHistory *glh, const char *filename,
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);
248 * return GlHistory * The new object, or NULL on error.
250 GlHistory *_new_GlHistory(size_t buflen)
252 GlHistory *glh; /* The object to be returned */
257 glh = (GlHistory *) malloc(sizeof(GlHistory));
341 * Delete a GlHistory object.
344 * glh GlHistory * The object to be deleted.
346 * return GlHistory * The deleted object (always NULL).
348 GlHistory *_del_GlHistory(GlHistory *glh)
394 * glh GlHistory * The input-line history maintenance object.
403 int _glh_add_history(GlHistory *glh, const char *line, int force)
521 * glh GlHistory * The input-line history maintenance object.
530 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim)
608 * glh GlHistory * The input-line history maintenance object.
618 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim)
698 * glh GlHistory * The input-line history maintenance object.
703 int _glh_cancel_search(GlHistory *glh)
734 * glh GlHistory * The input-line history maintenance object.
741 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len)
784 * glh GlHistory * The input-line history maintenance object.
792 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim)
856 * glh GlHistory * The input-line history maintenance object.
865 char *_glh_current_line(GlHistory *glh, char *line, size_t dim)
909 * glh GlHistory * The input-line history maintenance object.
917 GlhLineID _glh_line_id(GlHistory *glh, int offset)
947 * glh GlHistory * The input-line history maintenance object.
956 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim)
994 * glh GlHistory * The input-line history maintenance object.
1009 int _glh_save_history(GlHistory *glh, const char *filename, const char *comment,
1089 * glh GlHistory * The input-line history maintenance object.
1097 static int _glh_cant_save_history(GlHistory *glh, const char *message,
1144 * glh GlHistory * The input-line history maintenance object.
1155 int _glh_load_history(GlHistory *glh, const char *filename, const char *comment,
1277 static int _glh_cant_load_history(GlHistory *glh, const char *filename,
1377 * glh GlHistory * The input-line history maintenance object.
1383 * a single GlHistory object. Note that the
1389 int _glh_set_group(GlHistory *glh, unsigned group)
1421 * glh GlHistory * The input-line history maintenance object.
1425 int _glh_get_group(GlHistory *glh)
1434 * glh GlHistory * The input-line history maintenance object.
1458 int _glh_show_history(GlHistory *glh, GlWriteFn *write_fn, void *data,
1620 * glh GlHistory * The input-line history maintenance object.
1629 int _glh_resize_history(GlHistory *glh, size_t bufsize)
1751 * glh GlHistory * The input-line history maintenance object.
1756 void _glh_limit_history(GlHistory *glh, int max_lines)
1798 * glh GlHistory * The input-line history maintenance object.
1803 void _glh_clear_history(GlHistory *glh, int all_groups)
1877 * glh GlHistory * The input-line history maintenance object.
1881 void _glh_toggle_history(GlHistory *glh, int enable)
1891 * glh GlHistory * The history container object.
1896 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node)
1940 * glh GlHistory * The input-line history maintenance object.
1955 int _glh_lookup_history(GlHistory *glh, GlhLineID id, const char **line,
2017 * glh GlHistory * The input-line history maintenance object.
2022 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id)
2063 * glh GlHistory * The input-line history maintenance object.
2073 void _glh_state_of_history(GlHistory *glh, int *enabled, unsigned *group,
2090 * glh GlHistory * The input-line history maintenance object.
2103 void _glh_range_of_history(GlHistory *glh, unsigned long *oldest,
2121 * glh GlHistory * The input-line history maintenance object.
2127 void _glh_size_of_history(GlHistory *glh, size_t *buff_size, size_t *buff_used)
2146 * glh GlHistory * The container of the history list.
2151 const char *_glh_last_error(GlHistory *glh)
2153 return glh ? _err_get_msg(glh->err) : "NULL GlHistory argument";
2161 * glh GlHistory * The history maintenance buffer.
2169 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line,
2256 * glh GlHistory * The history container object.
2261 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode)
2324 * glh GlHistory * The history container object.
2331 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line,
2491 * glh GlHistory * The input-line history maintenance object.
2497 static int _glh_prepare_for_recall(GlHistory *glh, char *line)
2533 * glh GlHistory * The input-line history maintenance object.
2538 int _glh_search_active(GlHistory *glh)