aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor.h b/editor.h
index ae504f0..1273d6f 100644
--- a/editor.h
+++ b/editor.h
@@ -4,18 +4,18 @@ typedef struct Editor Editor;
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_replace(Editor*, size_t pos, char *c);
bool editor_delete(Editor*, size_t pos, size_t len);
+bool editor_replace(Editor*, size_t pos, char *c);
+void editor_snapshot(Editor*);
bool editor_undo(Editor*);
bool editor_redo(Editor*);
-void editor_snapshot(Editor*);
+//char *editor_get(Editor*, size_t pos, size_t len);
+void editor_iterate(Editor*, void *, size_t pos, iterator_callback_t);
+bool editor_modified(Editor*);
int editor_save(Editor*, const char *file);
-Editor *editor_load(const char *file);
-char *editor_get(Editor*, size_t pos, size_t len);
-void editor_iterate(Editor *ed, void *, size_t pos, iterator_callback_t);
void editor_free(Editor *ed);
-
// TMP
void editor_debug(Editor *ed);