diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 09:31:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 09:31:38 +0000 |
| commit | 2539e3cbb2fed78f446338ecd589eeb505ae9f45 (patch) | |
| tree | 95f3b25ae3673fa017a7223416e6e6ff8f3f7e6c | |
| parent | selection: refactor: break out text extraction to a separate file (diff) | |
extract: extract_one: make arguments const
| -rw-r--r-- | extract.c | 4 | ||||
| -rw-r--r-- | extract.h | 4 | ||||
| -rw-r--r-- | terminal.h | 3 |
3 files changed, 7 insertions, 4 deletions
@@ -84,8 +84,8 @@ ensure_size(struct extraction_context *ctx, size_t additional_chars) } bool -extract_one(struct terminal *term, struct row *row, struct cell *cell, - int col, void *context) +extract_one(const struct terminal *term, const struct row *row, + const struct cell *cell, int col, void *context) { struct extraction_context *ctx = context; @@ -10,8 +10,8 @@ struct extraction_context; struct extraction_context *extract_begin(enum selection_kind kind); bool extract_one( - struct terminal *term, struct row *row, struct cell *cell, int col, - void *context); + const struct terminal *term, const struct row *row, const struct cell *cell, + int col, void *context); bool extract_finish( 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( 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); |
