summaryrefslogtreecommitdiff
path: root/examples/dte/edit.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dte/edit.h')
-rw-r--r--examples/dte/edit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/dte/edit.h b/examples/dte/edit.h
new file mode 100644
index 0000000..2de58b8
--- /dev/null
+++ b/examples/dte/edit.h
@@ -0,0 +1,13 @@
+#ifndef EDIT_H
+#define EDIT_H
+
+#include <stdbool.h>
+#include <stddef.h>
+#include "util/macros.h"
+#include "view.h"
+
+void do_insert(View *view, const char *buf, size_t len) NONNULL_ARG(1);
+char *do_delete(View *view, size_t len, bool sanity_check_newlines) NONNULL_ARGS;
+char *do_replace(View *view, size_t del, const char *buf, size_t ins) NONNULL_ARGS_AND_RETURN;
+
+#endif