aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-04-01 13:49:20 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-04-01 13:49:20 +0100
commit88230407feb4656748604e7ced1526bdb8982c22 (patch)
tree0f128abe7736428ac890abb54a8fa6e2af9c2eb8 /termkey.h.in
parentdbb13defb7ab00b1f4e801f3daab7dd1a3744ac0 (diff)
downloadtermo-88230407feb4656748604e7ced1526bdb8982c22.tar.gz
termo-88230407feb4656748604e7ced1526bdb8982c22.tar.xz
termo-88230407feb4656748604e7ced1526bdb8982c22.zip
Adjust termkey_strpkey() API more like strptime(); return pointer to end of recognised section, allows for stream parsing
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/termkey.h.in b/termkey.h.in
index f296c58..9c340c2 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -190,8 +190,8 @@ typedef enum {
#define TERMKEY_FORMAT_VIM (TERMKEY_FORMAT_ALTISMETA|TERMKEY_FORMAT_WRAPBRACKET)
-size_t termkey_strfkey(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format);
-TermKeyResult termkey_strpkey(TermKey *tk, const char *str, TermKeyKey *key, TermKeyFormat format);
+size_t termkey_strfkey(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format);
+char *termkey_strpkey(TermKey *tk, const char *str, TermKeyKey *key, TermKeyFormat format);
// Old name for termkey_strfkey()
size_t termkey_snprint_key(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format);