API: Refactor: Register/unregister created/destroyed tabpages

- Add the 'handle' field to `tabpage_T`
- Add declare/implement functions for registering/unregistering/retrieving
  tabpages
- Register/unregister tabpages when they are created/destroyed.
This commit is contained in:
Thiago de Arruda
2014-05-23 15:49:35 -03:00
parent 20848c4064
commit 5fdf854f78
4 changed files with 6 additions and 0 deletions

View File

@@ -738,6 +738,7 @@ struct diffblock_S {
*/
typedef struct tabpage_S tabpage_T;
struct tabpage_S {
uint64_t handle;
tabpage_T *tp_next; /* next tabpage or NULL */
frame_T *tp_topframe; /* topframe for the windows */
win_T *tp_curwin; /* current window in this Tab page */