]> git.lizzy.rs Git - nothing.git/blob - src/ui/history.h
(#893) Remove source_code from Script
[nothing.git] / src / ui / history.h
1 #ifndef HISTORY_H_
2 #define HISTORY_H_
3
4 typedef struct History History;
5
6 History *create_history(size_t capacity);
7 void destroy_history(History *history);
8
9 int history_push(History *history, const char *command);
10 const char *history_current(History *history);
11 void history_prev(History *history);
12 void history_next(History *history);
13
14 #endif  // HISTORY_H_