aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-07-17 13:13:06 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-07-17 13:13:06 +0200
commitf6734e5869b1326ec0df9528b344650fae035b65 (patch)
tree24cc22cb88e41e410a1f3347bb9028c79ba1d761 /editor.h
parentfe0f10dcfda70989ea294ac6e56d842e931fdbb3 (diff)
downloadvis-f6734e5869b1326ec0df9528b344650fae035b65.tar.gz
vis-f6734e5869b1326ec0df9528b344650fae035b65.tar.xz
Document data structures
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);