2020-07-15 11:19:18 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdbool.h>
|
2021-03-28 21:04:48 +02:00
|
|
|
#include <wchar.h>
|
2020-07-15 11:19:18 +02:00
|
|
|
|
|
|
|
|
#include "terminal.h"
|
|
|
|
|
|
|
|
|
|
struct extraction_context;
|
|
|
|
|
|
|
|
|
|
struct extraction_context *extract_begin(enum selection_kind kind);
|
|
|
|
|
|
|
|
|
|
bool extract_one(
|
2020-07-15 11:31:38 +02:00
|
|
|
const struct terminal *term, const struct row *row, const struct cell *cell,
|
|
|
|
|
int col, void *context);
|
2020-07-15 11:19:18 +02:00
|
|
|
|
|
|
|
|
bool extract_finish(
|
2021-03-28 21:04:48 +02:00
|
|
|
struct extraction_context *context, bool strip_trailing_empty,
|
|
|
|
|
char **text, size_t *len);
|
|
|
|
|
bool extract_finish_wide(
|
|
|
|
|
struct extraction_context *context, bool strip_trailing_empty,
|
|
|
|
|
wchar_t **text, size_t *len);
|