API: Refactor: Implement api/handle module

This module will be used to implement remote management of objects through the
API. Object types to be registered must have a `uint64_t` field named 'handle'.
This commit is contained in:
Thiago de Arruda
2014-05-23 15:49:28 -03:00
parent 72e3125f45
commit 7dfc7bc2e1
5 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#ifndef NVIM_API_HANDLE_H
#define NVIM_API_HANDLE_H
#include "nvim/vim.h"
#define HANDLE_DECLS(type, name) \
type *handle_get_##name(uint64_t handle); \
void handle_register_##name(type *name); \
void handle_unregister_##name(type *name);
void handle_init(void);
#endif // NVIM_API_HANDLE_H