From 3ca61b3354c02e7f961e3cd6808a94fd9b740586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 11 Jul 2017 22:28:08 +0200 Subject: vis: cleanup register related API Also expose all register slots through the Lua API. --- text.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'text.h') 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. * -- cgit v1.2.3