diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 09:19:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 09:19:18 +0000 |
| commit | aafa120f92b2f41d1a753493676ee7ee0cb7a1ff (patch) | |
| tree | 087cdd12fb40afe288b5941c20d297159c03337b /extract.h | |
| parent | conf: add definitions for pipe-{scrollback,view} bindings (diff) | |
selection: refactor: break out text extraction to a separate file
Diffstat (limited to 'extract.h')
| -rw-r--r-- | extract.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/extract.h b/extract.h new file mode 100644 index 00000000..2219780d --- /dev/null +++ b/extract.h @@ -0,0 +1,17 @@ +#pragma once + +#include <stddef.h> +#include <stdbool.h> + +#include "terminal.h" + +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); + +bool extract_finish( + struct extraction_context *context, char **text, size_t *len); |
