aboutsummaryrefslogtreecommitdiff
path: root/extract.h
blob: 2219780d75f8b6796e4c02ac380b221b652f1daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);