Macros | Functions
ui_bridge.c File Reference
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <limits.h>
#include "nvim/log.h"
#include "nvim/main.h"
#include "nvim/vim.h"
#include "nvim/ui.h"
#include "nvim/memory.h"
#include "nvim/ui_bridge.h"
#include "nvim/ugrid.h"
#include "nvim/api/private/helpers.h"

Macros

#define UI(b)   (((UIBridgeData *)b)->ui)
 
#define UI_BRIDGE_CALL(ui, name, argc, ...)
 
#define INT2PTR(i)   ((void *)(intptr_t)i)
 
#define PTR2INT(p)   ((Integer)(intptr_t)p)
 

Functions

UIui_bridge_attach (UI *ui, ui_main_fn ui_main, event_scheduler scheduler)
 
void ui_bridge_stopped (UIBridgeData *bridge)
 

Macro Definition Documentation

#define INT2PTR (   i)    ((void *)(intptr_t)i)
#define PTR2INT (   p)    ((Integer)(intptr_t)p)
#define UI (   b)    (((UIBridgeData *)b)->ui)
#define UI_BRIDGE_CALL (   ui,
  name,
  argc,
  ... 
)
Value:
((UIBridgeData *)ui)->scheduler( \
event_create(ui_bridge_##name##_event, argc, __VA_ARGS__), UI(ui))
Definition: ui_bridge.h:13
#define UI(b)
Definition: ui_bridge.c:25
char * name
Definition: eval.c:1850

Function Documentation

UI* ui_bridge_attach ( UI ui,
ui_main_fn  ui_main,
event_scheduler  scheduler 
)
void ui_bridge_stopped ( UIBridgeData bridge)