aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-22 09:21:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-26 08:15:45 +0000
commitae3ec52507c85395f90bf7c0ecc5b79affdc9b63 (patch)
treee2782745aa45cc85b6e17a2533b35fbe0748820f /grid.h
parentgrid: add grid_free() (diff)
grid: add grid_snapshot()
This function deep copies a grid into a newly *allocated* grid struct.
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/grid.h b/grid.h
index c411b602..1131ac46 100644
--- a/grid.h
+++ b/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);