API: Refactor: Register/unregister created/destroyed buffers

- Add the 'handle' field to `buf_T`
- Add declare/implement functions for registering/unregistering/retrieving
  buffers
- Register/unregister buffers when they are created/destroyed.
This commit is contained in:
Thiago de Arruda
2014-05-23 15:49:30 -03:00
parent 7dfc7bc2e1
commit ed99198ff1
4 changed files with 13 additions and 0 deletions

View File

@@ -401,6 +401,7 @@ typedef struct {
*/
struct file_buffer {
uint64_t handle; // unique identifier for the buffer
memline_T b_ml; /* associated memline (also contains line
count) */