diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-30 20:09:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 20:09:51 +0200 |
commit | 8427da92998292003c80e743b7611ee28060e3b9 (patch) | |
tree | 66f2f89a09c47fc03892f7ffd05c640f75588d49 /src/nvim/ui_client.h | |
parent | e86901eb6859cb262109be37b890763775a7f934 (diff) | |
parent | 1f63052b682a6019d7f092553747272195fbfffd (diff) | |
download | rneovim-8427da92998292003c80e743b7611ee28060e3b9.tar.gz rneovim-8427da92998292003c80e743b7611ee28060e3b9.tar.bz2 rneovim-8427da92998292003c80e743b7611ee28060e3b9.zip |
Merge pull request #18798 from bfredl/doublehash
refactor(api): use hashy hash for looking up api method and event names
Diffstat (limited to 'src/nvim/ui_client.h')
-rw-r--r-- | src/nvim/ui_client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/ui_client.h b/src/nvim/ui_client.h index d31341ae60..41d9fa6227 100644 --- a/src/nvim/ui_client.h +++ b/src/nvim/ui_client.h @@ -3,7 +3,10 @@ #include "nvim/api/private/defs.h" -typedef void (*UIClientHandler)(Array args); +typedef struct { + const char *name; + void (*fn)(Array args); +} UIClientHandler; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ui_client.h.generated.h" |