X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbash.git;a=blobdiff_plain;f=lib%2Freadline%2Fhistory.h;h=b79e51f4c20f8bdae45dc0a4b7cd0dee0a93fdd6;hp=779a573c956005b97440d50596a2887ddf6d0b4a;hb=54a5fbe126d2a28913a81f7191d7ac6db70e1f43;hpb=eac8fb1b4c9229f78b71d1df7d11327723a3acab diff --git a/lib/readline/history.h b/lib/readline/history.h index 779a573c9..b79e51f4c 100644 --- a/lib/readline/history.h +++ b/lib/readline/history.h @@ -91,6 +91,13 @@ extern void add_history_time PARAMS((const char *)); elements are numbered from 0. */ extern HIST_ENTRY *remove_history PARAMS((int)); +/* Allocate a history entry consisting of STRING and TIMESTAMP and return + a pointer to it. */ +extern HIST_ENTRY *alloc_history_entry PARAMS((char *, char *)); + +/* Copy the history entry H, but not the (opaque) data pointer */ +extern HIST_ENTRY *copy_history_entry PARAMS((HIST_ENTRY *)); + /* Free the history entry H and return any application-specific data associated with it. */ extern histdata_t free_history_entry PARAMS((HIST_ENTRY *)); @@ -241,6 +248,7 @@ extern char **history_tokenize PARAMS((const char *)); extern int history_base; extern int history_length; extern int history_max_entries; +extern int history_offset; extern int history_lines_read_from_file; extern int history_lines_written_to_file;