aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor.h b/editor.h
index bde4da9..49de36b 100644
--- a/editor.h
+++ b/editor.h
@@ -12,9 +12,11 @@ typedef struct {
typedef bool (*iterator_callback_t)(void *, size_t pos, const char *content, size_t len);
Editor *editor_load(const char *file);
-bool editor_insert(Editor*, size_t pos, char *c);
+bool editor_insert(Editor*, size_t pos, const char *data);
+bool editor_insert_raw(Editor*, size_t pos, const char *data, size_t len);
bool editor_delete(Editor*, size_t pos, size_t len);
-bool editor_replace(Editor*, size_t pos, char *c);
+bool editor_replace(Editor*, size_t pos, const char *data);
+bool editor_replace_raw(Editor*, size_t pos, const char *data, size_t len);
void editor_snapshot(Editor*);
bool editor_undo(Editor*);
bool editor_redo(Editor*);