mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
32 lines
800 B
C
32 lines
800 B
C
/**
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
* See LICENSE
|
|
*/
|
|
|
|
#ifndef NVIMSERVER_SERVER_H
|
|
#define NVIMSERVER_SERVER_H
|
|
|
|
#include <msgpack.h>
|
|
#include "server_shared_types.h"
|
|
|
|
void server_set_nvim_args(int argc, const char **const args);
|
|
|
|
void server_init_local_port(const char *name);
|
|
void server_destroy_local_port(void);
|
|
|
|
void server_init_remote_port(const char *name);
|
|
void server_destroy_remote_port(void);
|
|
|
|
void server_send_msg(NvimServerMsgId msgId, CFDataRef data);
|
|
|
|
typedef void (^pack_block)(msgpack_packer *packer);
|
|
void send_msg_packing(NvimServerMsgId msgid, pack_block body);
|
|
void msgpack_pack_bool(msgpack_packer *packer, bool value);
|
|
void msgpack_pack_cstr(msgpack_packer *packer, const char *cstr);
|
|
|
|
#ifdef DEBUG
|
|
void debug_function(void);
|
|
#endif
|
|
|
|
#endif // NVIMSERVER_SERVER_H
|