2019-03-25 12:35:55 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NVIMSERVER_SERVER_H
|
|
|
|
#define NVIMSERVER_SERVER_H
|
|
|
|
|
2019-03-25 13:10:11 +03:00
|
|
|
#include <msgpack.h>
|
2019-03-25 12:35:55 +03:00
|
|
|
#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);
|
|
|
|
|
2019-03-25 13:10:11 +03:00
|
|
|
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);
|
|
|
|
|
2019-03-25 13:47:48 +03:00
|
|
|
#ifdef DEBUG
|
|
|
|
void debug_function(void);
|
|
|
|
#endif
|
|
|
|
|
2019-03-25 12:35:55 +03:00
|
|
|
#endif // NVIMSERVER_SERVER_H
|