mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
extract: extract_one: make arguments const
This commit is contained in:
parent
aafa120f92
commit
2539e3cbb2
3 changed files with 7 additions and 4 deletions
|
|
@ -84,8 +84,8 @@ ensure_size(struct extraction_context *ctx, size_t additional_chars)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
extract_one(struct terminal *term, struct row *row, struct cell *cell,
|
extract_one(const struct terminal *term, const struct row *row,
|
||||||
int col, void *context)
|
const struct cell *cell, int col, void *context)
|
||||||
{
|
{
|
||||||
struct extraction_context *ctx = context;
|
struct extraction_context *ctx = context;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ struct extraction_context;
|
||||||
struct extraction_context *extract_begin(enum selection_kind kind);
|
struct extraction_context *extract_begin(enum selection_kind kind);
|
||||||
|
|
||||||
bool extract_one(
|
bool extract_one(
|
||||||
struct terminal *term, struct row *row, struct cell *cell, int col,
|
const struct terminal *term, const struct row *row, const struct cell *cell,
|
||||||
void *context);
|
int col, void *context);
|
||||||
|
|
||||||
bool extract_finish(
|
bool extract_finish(
|
||||||
struct extraction_context *context, char **text, size_t *len);
|
struct extraction_context *context, char **text, size_t *len);
|
||||||
|
|
|
||||||
|
|
@ -542,3 +542,6 @@ void term_disable_app_sync_updates(struct terminal *term);
|
||||||
|
|
||||||
enum term_surface term_surface_kind(
|
enum term_surface term_surface_kind(
|
||||||
const struct terminal *term, const struct wl_surface *surface);
|
const struct terminal *term, const struct wl_surface *surface);
|
||||||
|
|
||||||
|
bool term_scrollback_to_text(const struct terminal *term, wchar_t **text);
|
||||||
|
bool term_view_to_text(const struct terminal *term, wchar_t **text);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue