1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-01 01:32:04 +03:00
vimr/NvimView/NvimServer/server.h

32 lines
800 B
C
Raw Normal View History

/**
* 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>
#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);
#ifdef DEBUG
void debug_function(void);
#endif
#endif // NVIMSERVER_SERVER_H