diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-07-17 13:13:06 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-07-17 13:13:06 +0200 |
| commit | f6734e5869b1326ec0df9528b344650fae035b65 (patch) | |
| tree | 24cc22cb88e41e410a1f3347bb9028c79ba1d761 /editor.h | |
| parent | fe0f10dcfda70989ea294ac6e56d842e931fdbb3 (diff) | |
| download | vis-f6734e5869b1326ec0df9528b344650fae035b65.tar.gz vis-f6734e5869b1326ec0df9528b344650fae035b65.tar.xz | |
Document data structures
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |
