diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-17 07:34:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-17 07:34:51 +0000 |
| commit | ac42ce43032fc2bbabc2c1b132942d3933fe9f49 (patch) | |
| tree | 3013a8a2d262d86a15c54b53ff48d6de9fb0499f /extract.h | |
| parent | wayland: don't assume data-device globals are added before seats (diff) | |
| parent | Merge branch 'master' into pipe-grid-to-external-tool (diff) | |
Merge branch 'pipe-grid-to-external-tool'
Closes https://codeberg.org/dnkl/foot/issues/29
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..0b3693d2 --- /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( + 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); |
