|
rofi 1.7.8
|

Functions | |
| void | history_set (const char *filename, const char *entry) __attribute__((nonnull)) |
| void | history_remove (const char *filename, const char *entry) __attribute__((nonnull)) |
| char ** | history_get_list (const char *filename, unsigned int *length) __attribute__((nonnull)) |
Implements a very simple history module that can be used by a Mode.
This uses the following options from the config object:
| char ** history_get_list | ( | const char * | filename, |
| unsigned int * | length ) |
| filename | The filename of the history cache. |
| length | The length of the returned list. |
Gets the entries in the list (in order of usage)
Definition at line 324 of file history.c.
References __history_get_element_list_fields(), and config.
Referenced by get_apps(), and get_ssh().


| void history_remove | ( | const char * | filename, |
| const char * | entry ) |
| filename | The filename of the history cache. |
| entry | The entry to remove |
Removes the entry from the history.
Definition at line 260 of file history.c.
References __history_get_element_list(), __history_write_element_list(), and config.
Referenced by delete_entry(), delete_ssh(), and exec_cmd().


| void history_set | ( | const char * | filename, |
| const char * | entry ) |
| filename | The filename of the history cache. |
| entry | The entry to add/increment |
Sets the entry in the history, if it exists its use-count is incremented.
Definition at line 179 of file history.c.
References __history_get_element_list(), __history_write_element_list(), config, __element::index, and __element::name.
Referenced by exec_cmd(), and exec_ssh().

