mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: refactor: break out text extraction to a separate file
This commit is contained in:
parent
85c50099af
commit
aafa120f92
4 changed files with 203 additions and 170 deletions
17
extract.h
Normal file
17
extract.h
Normal file
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue