diff options
| author | Albert Cervin <albert@acervin.com> | 2022-12-06 12:58:51 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2022-12-06 12:58:51 +0100 |
| commit | 66d50bd7b04922a91fbe3e4d49c68070ec1a7b14 (patch) | |
| tree | 87600e117f4262555bcc875b09e050536cbee492 /src/text.h | |
| parent | 78410b18e5d4d117b714eb9f34c689920c32a985 (diff) | |
| download | dged-66d50bd7b04922a91fbe3e4d49c68070ec1a7b14.tar.gz dged-66d50bd7b04922a91fbe3e4d49c68070ec1a7b14.tar.xz dged-66d50bd7b04922a91fbe3e4d49c68070ec1a7b14.zip | |
Add minibuffer
Diffstat (limited to 'src/text.h')
| -rw-r--r-- | src/text.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,11 +29,11 @@ struct text_chunk { uint32_t nchars; }; -typedef void (*chunk_cb)(struct text_chunk *chunk); +typedef void (*chunk_cb)(struct text_chunk *chunk, void *userdata); void text_for_each_line(struct text *text, uint32_t line, uint32_t nlines, - chunk_cb callback); + chunk_cb callback, void *userdata); -void text_for_each_chunk(struct text *text, chunk_cb callback); +void text_for_each_chunk(struct text *text, chunk_cb callback, void *userdata); struct text_chunk text_get_line(struct text *text, uint32_t line); |
