aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/grid.h b/grid.h
index 98b34570..4cb339f2 100644
--- a/grid.h
+++ b/grid.h
@@ -72,3 +72,20 @@ grid_row_in_view(struct grid *grid, int row_no)
xassert(row != NULL);
return row;
}
+
+void grid_row_add_uri_range(struct row *row, struct row_uri_range range);
+
+static inline void
+grid_row_reset_extra(struct row *row)
+{
+ if (likely(row->extra == NULL))
+ return;
+
+ tll_foreach(row->extra->uri_ranges, it) {
+ free(it->item.uri);
+ tll_remove(row->extra->uri_ranges, it);
+ }
+
+ free(row->extra);
+ row->extra = NULL;
+}