mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
msgpack: Allow notifications to execute commands.
Consider: `let vim = rpcstart('nvim', ['--embed'])` Allows `rpcnotify(vim, ...)` to work like an asynchronous `rpcrequest(nvim, ...)`. Helped-by: Michael Reed <m.reed@mykolab.com> Helped-by: Justin M. Keyes <>
This commit is contained in:
@@ -22,6 +22,15 @@ typedef enum {
|
||||
kErrorTypeValidation
|
||||
} ErrorType;
|
||||
|
||||
typedef enum {
|
||||
kMessageTypeRequest,
|
||||
kMessageTypeResponse,
|
||||
kMessageTypeNotification
|
||||
} MessageType;
|
||||
|
||||
/// Used as the message ID of notifications.
|
||||
#define NO_RESPONSE UINT64_MAX
|
||||
|
||||
typedef struct {
|
||||
ErrorType type;
|
||||
char msg[1024];
|
||||
|
Reference in New Issue
Block a user