From f6968dc0f7775591108aebbfe30e597dd0882c91 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 13 Apr 2016 16:37:09 +0200 Subject: api: call multiple methods atomically (useful in async contexts) remove unused response_id parameter of handle_nvim_... helpers --- src/nvim/api/private/defs.h | 4 ++-- src/nvim/api/private/dispatch.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/nvim/api/private') diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h index a6710193ff..1d5ecd3071 100644 --- a/src/nvim/api/private/defs.h +++ b/src/nvim/api/private/defs.h @@ -33,8 +33,8 @@ typedef enum { /// Used as the message ID of notifications. #define NO_RESPONSE UINT64_MAX -/// Used as channel_id when the call is local -#define INVALID_CHANNEL UINT64_MAX +/// Used as channel_id when the call is local. +#define INTERNAL_CALL UINT64_MAX typedef struct { ErrorType type; diff --git a/src/nvim/api/private/dispatch.h b/src/nvim/api/private/dispatch.h index d91456c306..a4840c1e46 100644 --- a/src/nvim/api/private/dispatch.h +++ b/src/nvim/api/private/dispatch.h @@ -4,7 +4,6 @@ #include "nvim/api/private/defs.h" typedef Object (*ApiDispatchWrapper)(uint64_t channel_id, - uint64_t request_id, Array args, Error *error); -- cgit