diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2009-07-15 20:40:44 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2009-07-15 20:40:44 +0100 |
commit | be998cef1b8a46391956dc212ef3bf1351da0f3a (patch) | |
tree | b5634e51fc74ca524f94a05ece2ddc430994ec58 /demo-async.c | |
parent | af50967d12929b5745e868796ba50e4ee9b54f6d (diff) | |
download | termo-be998cef1b8a46391956dc212ef3bf1351da0f3a.tar.gz termo-be998cef1b8a46391956dc212ef3bf1351da0f3a.tar.xz termo-be998cef1b8a46391956dc212ef3bf1351da0f3a.zip |
Renamed all type names to CamelCaseNames for visual distinctness, separate from variables/functions
Diffstat (limited to 'demo-async.c')
-rw-r--r-- | demo-async.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demo-async.c b/demo-async.c index 2574faa..9b48434 100644 --- a/demo-async.c +++ b/demo-async.c @@ -3,7 +3,7 @@ #include "termkey.h" -static void on_key(termkey_t *tk, termkey_key *key) +static void on_key(TermKey *tk, TermKeyKey *key) { char buffer[50]; termkey_snprint_key(tk, buffer, sizeof buffer, key, TERMKEY_FORMAT_VIM); @@ -14,7 +14,7 @@ int main(int argc, char *argv[]) { TERMKEY_CHECK_VERSION; - termkey_t *tk = termkey_new(0, 0); + TermKey *tk = termkey_new(0, 0); if(!tk) { fprintf(stderr, "Cannot allocate termkey instance\n"); @@ -26,8 +26,8 @@ int main(int argc, char *argv[]) fd.fd = 0; /* the file descriptor we passed to termkey_new() */ fd.events = POLLIN; - termkey_result ret; - termkey_key key; + TermKeyResult ret; + TermKeyKey key; int running = 1; int nextwait = -1; |