mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
grid: add grid_snapshot()
This function deep copies a grid into a newly *allocated* grid struct.
This commit is contained in:
parent
bb74fe3f7d
commit
ae3ec52507
2 changed files with 83 additions and 0 deletions
1
grid.h
1
grid.h
|
|
@ -4,6 +4,7 @@
|
|||
#include "debug.h"
|
||||
#include "terminal.h"
|
||||
|
||||
struct grid *grid_snapshot(const struct grid *grid);
|
||||
void grid_free(struct grid *grid);
|
||||
|
||||
void grid_swap_row(struct grid *grid, int row_a, int row_b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue