aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorLukas Fürmetz <fuermetz@mailbox.org>2017-11-16 13:31:37 +0100
committerLukas Fürmetz <fuermetz@mailbox.org>2017-11-16 13:31:37 +0100
commit01c86854bda5db58db2986106b669e49460bf0d2 (patch)
treed7fbe3c1a4b9f6395ee77aa753b9551cc6a26ffb /vterm-module.h
parent14ef6c59279d6fde95e70db924e376ea9bb57516 (diff)
Cleanup vterm-module.c and vterm-module.h
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/vterm-module.h b/vterm-module.h
index 86bf79a..64a923f 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -1,6 +1,5 @@
#include <emacs-module.h>
#include <inttypes.h>
-#include <semaphore.h>
#include <stdbool.h>
#include <vterm.h>
@@ -13,20 +12,24 @@ struct Term {
pthread_t thread;
};
-static void vterm_put_caret(VTerm *vt, emacs_env *env, int row, int col,
- int offset);
-static void vterm_redraw(VTerm *vt, emacs_env *env);
-static void vterm_flush_output(struct Term *term);
+static bool compare_cells(VTermScreenCell *a, VTermScreenCell *b);
+
+static void term_redraw(struct Term *term, emacs_env *env);
+static void term_flush_output(struct Term *term);
+static void term_process_key(struct Term *term, unsigned char *key, size_t len,
+ VTermModifier modifier);
+static void term_put_caret(struct Term *term, emacs_env *env, int row, int col,
+ int offset);
static void term_finalize(void *object);
+
static emacs_value Fvterm_new(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data);
-static void *event_loop(void *arg);
-static void process_key(struct Term *term, unsigned char *key, size_t len,
- VTermModifier modifier);
static emacs_value Fvterm_update(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data);
static emacs_value Fvterm_kill(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data);
static emacs_value Fvterm_set_size(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data);
+
+static void *event_loop(void *arg);
int emacs_module_init(struct emacs_runtime *ert);