Go to the source code of this file.
#define GIRARA_INPUT_HISTORY_GET_PRIVATE |
( |
|
obj | ) |
|
Value:
#define GIRARA_TYPE_INPUT_HISTORY
Definition at line 20 of file input-history.c.
void girara_input_history_append |
( |
GiraraInputHistory * |
history, |
|
|
const char * |
input |
|
) |
| |
Append a new line of input.
- Parameters
-
history | an input history instance |
input | the input |
Definition at line 303 of file input-history.c.
girara_list_t* girara_input_history_list |
( |
GiraraInputHistory * |
history | ) |
|
Get a list of all the inputs stored.
- Parameters
-
history | an input history instance |
- Returns
- a list containing all inputs
Definition at line 310 of file input-history.c.
Create new input history object.
- Parameters
-
io | a GiraraInputHistoryIO instance, may be NULL |
- Returns
- an input history object
Definition at line 150 of file input-history.c.
const char* girara_input_history_next |
( |
GiraraInputHistory * |
history, |
|
|
const char * |
current_input |
|
) |
| |
Get the "next" input from the history
- Parameters
-
history | an input history instance |
current_input | input used to find the "next" input |
- Returns
- "next" input
Definition at line 317 of file input-history.c.
const char* girara_input_history_previous |
( |
GiraraInputHistory * |
history, |
|
|
const char * |
current_input |
|
) |
| |
Get the "previous" input from the history
- Parameters
-
history | an input history instance |
current_input | input used to find the "next" input |
- Returns
- "previous" input
Definition at line 324 of file input-history.c.
void girara_input_history_reset |
( |
GiraraInputHistory * |
history | ) |
|
Reset state of the input history
- Parameters
-
history | an input history instance |
Definition at line 331 of file input-history.c.