~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/msgpack_rpc/defs.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef NVIM_MSGPACK_RPC_DEFS_H
2
2
#define NVIM_MSGPACK_RPC_DEFS_H
3
3
 
4
 
#include <msgpack.h>
5
 
 
6
4
 
7
5
/// The rpc_method_handlers table, used in msgpack_rpc_dispatch(), stores
8
6
/// functions of this type.
24
22
 
25
23
void msgpack_rpc_init_function_metadata(Dictionary *metadata);
26
24
 
27
 
/// Dispatches to the actual API function after basic payload validation by
28
 
/// `msgpack_rpc_call`. It is responsible for validating/converting arguments
29
 
/// to C types, and converting the return value back to msgpack types.
30
 
/// The implementation is generated at compile time with metadata extracted
31
 
/// from the api/*.h headers,
32
 
///
33
 
/// @param channel_id The channel id
34
 
/// @param method_id The method id
35
 
/// @param req The parsed request object
36
 
/// @param error Pointer to error structure
37
 
/// @return Some object
38
 
Object msgpack_rpc_dispatch(uint64_t channel_id,
39
 
                            msgpack_object *req,
40
 
                            Error *error)
41
 
  FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_NONNULL_ARG(3);
42
 
 
43
25
MsgpackRpcRequestHandler msgpack_rpc_get_handler_for(const char *name,
44
26
                                                     size_t name_len)
45
27
  FUNC_ATTR_NONNULL_ARG(1);