#include <inttypes.h>
#include <msgpack.h>
#include <stdbool.h>
#include <string.h>
#include <uv.h>
#include "nvim/api/private/helpers.h"
#include "nvim/api/ui.h"
#include "nvim/api/vim.h"
#include "nvim/ascii.h"
#include "nvim/channel.h"
#include "nvim/eval.h"
#include "nvim/event/libuv_process.h"
#include "nvim/event/loop.h"
#include "nvim/event/rstream.h"
#include "nvim/event/socket.h"
#include "nvim/event/wstream.h"
#include "nvim/lib/kvec.h"
#include "nvim/log.h"
#include "nvim/main.h"
#include "nvim/map.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/msgpack_rpc/channel.h"
#include "nvim/msgpack_rpc/helpers.h"
#include "nvim/os/input.h"
#include "nvim/os_unix.h"
#include "nvim/ui.h"
#include "nvim/vim.h"
Macros | |
#define | REQ "[request] " |
#define | RES "[response] " |
#define | NOT "[notify] " |
#define | ERR "[error] " |
#define | MUR_OFF 2 |
Functions | |
void | rpc_start (Channel *channel) |
bool | rpc_send_event (uint64_t id, const char *name, Array args) |
Object | rpc_send_call (uint64_t id, const char *method_name, Array args, Error *err) |
void | rpc_subscribe (uint64_t id, char *event) |
void | rpc_unsubscribe (uint64_t id, char *event) |
void | rpc_close (Channel *channel) |
void | rpc_free (Channel *channel) |
void | rpc_set_client_info (uint64_t id, Dictionary info) |
Dictionary | rpc_client_info (Channel *chan) |
const char * | rpc_client_name (Channel *chan) |
#define ERR "[error] " |
#define MUR_OFF 2 |
#define NOT "[notify] " |
#define REQ "[request] " |
#define RES "[response] " |
Dictionary rpc_client_info | ( | Channel * | chan | ) |
const char* rpc_client_name | ( | Channel * | chan | ) |
Mark rpc state as closed, and release its reference to the channel. Don't call this directly, call channel_close(id, kChannelPartRpc, &error)
Sends a method call to a channel
id | The channel id | |
method_name | The method name, an arbitrary string | |
args | Array with method arguments | |
[out] | error | True if the return value is an error |
void rpc_set_client_info | ( | uint64_t | id, |
Dictionary | info | ||
) |
void rpc_subscribe | ( | uint64_t | id, |
char * | event | ||
) |
Subscribes to event broadcasts
id | The channel id |
event | The event type string |
void rpc_unsubscribe | ( | uint64_t | id, |
char * | event | ||
) |
Unsubscribes to event broadcasts
id | The channel id |
event | The event type string |