PatchworkOS
Loading...
Searching...
No Matches
history.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <string.h>
5
6#define HISTORY_MAX_ENTRY 32
7
14
15void history_init(history_t* history);
16
17void history_deinit(history_t* history);
18
19void history_push(history_t* history, const char* entry);
20
21const char* history_next(history_t* history);
22
23const char* history_previous(history_t* history);
#define HISTORY_MAX_ENTRY
Definition history.h:6
const char * history_previous(history_t *history)
Definition history.c:60
void history_deinit(history_t *history)
Definition history.c:12
void history_push(history_t *history, const char *entry)
Definition history.c:20
void history_init(history_t *history)
Definition history.c:6
const char * history_next(history_t *history)
Definition history.c:48
static start_entry_t entries[START_ENTRY_MAX]
Definition start_menu.c:21
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
uint64_t index
Definition history.h:12
uint64_t count
Definition history.h:11