diff options
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); |
