aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/dispatch.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-30 20:09:51 +0200
committerGitHub <noreply@github.com>2022-05-30 20:09:51 +0200
commit8427da92998292003c80e743b7611ee28060e3b9 (patch)
tree66f2f89a09c47fc03892f7ffd05c640f75588d49 /src/nvim/api/private/dispatch.h
parente86901eb6859cb262109be37b890763775a7f934 (diff)
parent1f63052b682a6019d7f092553747272195fbfffd (diff)
downloadrneovim-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/api/private/dispatch.h')
-rw-r--r--src/nvim/api/private/dispatch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/private/dispatch.h b/src/nvim/api/private/dispatch.h
index bad5a13934..4b7c394944 100644
--- a/src/nvim/api/private/dispatch.h
+++ b/src/nvim/api/private/dispatch.h
@@ -10,6 +10,7 @@ typedef Object (*ApiDispatchWrapper)(uint64_t channel_id,
/// The rpc_method_handlers table, used in msgpack_rpc_dispatch(), stores
/// functions of this type.
typedef struct {
+ const char *name;
ApiDispatchWrapper fn;
bool fast; // Function is safe to be executed immediately while running the
// uv loop (the loop is run very frequently due to breakcheck).