diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-01-20 17:00:09 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-01-20 17:00:09 +0000 |
commit | 052738b8f422060a09a7f5eaadc6b1c19fbcc61d (patch) | |
tree | 7ef068da40ac40593cbfb4c949378324b8cd4e5f /termkey-internal.h | |
parent | 8d2fa34a524f0456e863a22568d6609dcb9ce82a (diff) | |
download | termo-052738b8f422060a09a7f5eaadc6b1c19fbcc61d.tar.gz termo-052738b8f422060a09a7f5eaadc6b1c19fbcc61d.tar.xz termo-052738b8f422060a09a7f5eaadc6b1c19fbcc61d.zip |
Allow {start,stop}_driver to fail, abort constructor, have driver-ti try to write the entire start/stop string or error out on -1
Diffstat (limited to 'termkey-internal.h')
-rw-r--r-- | termkey-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/termkey-internal.h b/termkey-internal.h index c1f4cd6..e277939 100644 --- a/termkey-internal.h +++ b/termkey-internal.h @@ -11,8 +11,8 @@ struct TermKeyDriver const char *name; void *(*new_driver)(TermKey *tk, const char *term); void (*free_driver)(void *info); - void (*start_driver)(TermKey *tk, void *info); - void (*stop_driver)(TermKey *tk, void *info); + int (*start_driver)(TermKey *tk, void *info); + int (*stop_driver)(TermKey *tk, void *info); TermKeyResult (*peekkey)(TermKey *tk, void *info, TermKeyKey *key, int force, size_t *nbytes); }; |