PatchworkOS  3984a1d
A non-POSIX operating system.
Loading...
Searching...
No Matches
history.h File Reference
#include <stdint.h>
#include <string.h>
Include dependency graph for history.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  history_t
 

Macros

#define HISTORY_MAX_ENTRY   32
 

Functions

void history_init (history_t *history)
 
void history_deinit (history_t *history)
 
void history_push (history_t *history, const char *entry)
 
const charhistory_next (history_t *history)
 
const charhistory_previous (history_t *history)
 

Macro Definition Documentation

◆ HISTORY_MAX_ENTRY

#define HISTORY_MAX_ENTRY   32

Definition at line 6 of file history.h.

Function Documentation

◆ history_init()

void history_init ( history_t history)

Definition at line 6 of file history.c.

Here is the caller graph for this function:

◆ history_deinit()

void history_deinit ( history_t history)

Definition at line 12 of file history.c.

Here is the call graph for this function:

◆ history_push()

void history_push ( history_t history,
const char entry 
)

Definition at line 20 of file history.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ history_next()

const char * history_next ( history_t history)

Definition at line 48 of file history.c.

Here is the caller graph for this function:

◆ history_previous()

const char * history_previous ( history_t history)

Definition at line 60 of file history.c.

Here is the caller graph for this function: