aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-30 20:15:30 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-30 23:12:54 +0100
commitc9662de55d78baa82dfcac1afab170a0d8e4f163 (patch)
tree86e9efd6b1fc229cf70a30fbd598715a673b8bb8 /buffer.h
parentd94bb93f10365a39d90cc0d4d4b151fc797767df (diff)
downloadvis-c9662de55d78baa82dfcac1afab170a0d8e4f163.tar.gz
vis-c9662de55d78baa82dfcac1afab170a0d8e4f163.tar.xz
Implement system clipboard registers "* and "+
Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste.
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index 0dc2dc6..037055b 100644
--- a/buffer.h
+++ b/buffer.h
@@ -16,6 +16,8 @@ typedef struct {
void buffer_init(Buffer*);
/* release/free all data stored in this buffer, reset size to zero */
void buffer_release(Buffer*);
+/* set buffer size to zero, keep allocated memory */
+void buffer_clear(Buffer*);
/* reserve space to store at least size bytes in this buffer.*/
bool buffer_grow(Buffer*, size_t size);
/* truncate buffer, but keep associated memory region for further data */