aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-07-11 22:28:08 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-07-11 22:38:20 +0200
commit3ca61b3354c02e7f961e3cd6808a94fd9b740586 (patch)
treebfe5e89e393c9c1f78ff5549e6c054420888e741 /text.h
parentebee314027fb8ba47052dc016bc44758fa58f5fc (diff)
downloadvis-3ca61b3354c02e7f961e3cd6808a94fd9b740586.tar.gz
vis-3ca61b3354c02e7f961e3cd6808a94fd9b740586.tar.xz
vis: cleanup register related API
Also expose all register slots through the Lua API.
Diffstat (limited to 'text.h')
-rw-r--r--text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/text.h b/text.h
index e76ad5b..06b7843 100644
--- a/text.h
+++ b/text.h
@@ -30,6 +30,12 @@ typedef struct Text Text;
typedef struct Piece Piece;
typedef struct TextSave TextSave;
+/** A contiguous part of the text. */
+typedef struct {
+ const char *data; /**< Content, might not be NUL-terminated. */
+ size_t len; /**< Length in bytes. */
+} TextString;
+
/**
* Iterator used to navigate the buffer content.
*