summaryrefslogtreecommitdiff
path: root/sys/teken/teken.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/teken/teken.h')
-rw-r--r--sys/teken/teken.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/teken/teken.h b/sys/teken/teken.h
index a12ec21d3a6d7..570812505a4ac 100644
--- a/sys/teken/teken.h
+++ b/sys/teken/teken.h
@@ -118,7 +118,7 @@ typedef struct {
tf_respond_t *tf_respond;
} teken_funcs_t;
-typedef teken_char_t teken_scs_t(teken_t *, teken_char_t);
+typedef teken_char_t teken_scs_t(const teken_t *, teken_char_t);
/*
* Terminal state.
@@ -166,11 +166,11 @@ void teken_init(teken_t *, const teken_funcs_t *, void *);
void teken_input(teken_t *, const void *, size_t);
/* Get/set teken attributes. */
-const teken_pos_t *teken_get_cursor(teken_t *);
-const teken_attr_t *teken_get_curattr(teken_t *);
-const teken_attr_t *teken_get_defattr(teken_t *);
-void teken_get_defattr_cons25(teken_t *, int *, int *);
-const teken_pos_t *teken_get_winsize(teken_t *);
+const teken_pos_t *teken_get_cursor(const teken_t *);
+const teken_attr_t *teken_get_curattr(const teken_t *);
+const teken_attr_t *teken_get_defattr(const teken_t *);
+void teken_get_defattr_cons25(const teken_t *, int *, int *);
+const teken_pos_t *teken_get_winsize(const teken_t *);
void teken_set_cursor(teken_t *, const teken_pos_t *);
void teken_set_curattr(teken_t *, const teken_attr_t *);
void teken_set_defattr(teken_t *, const teken_attr_t *);
@@ -202,7 +202,7 @@ void teken_set_winsize_noreset(teken_t *, const teken_pos_t *);
#define TKEY_F10 0x13
#define TKEY_F11 0x14
#define TKEY_F12 0x15
-const char *teken_get_sequence(teken_t *, unsigned int);
+const char *teken_get_sequence(const teken_t *, unsigned int);
/* Legacy features. */
void teken_set_8bit(teken_t *);