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

Macros

#define UI(b)   (((UIBridgeData *)b)->ui)
 
#define UI_BRIDGE_CALL(ui, name, argc, ...)   ((UIBridgeData *)ui)->scheduler(event_create(ui_bridge_##name##_event, argc, __VA_ARGS__), UI(ui))
 
#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

◆ INT2PTR

#define INT2PTR (   i)    ((void *)(intptr_t)i)

◆ PTR2INT

#define PTR2INT (   p)    ((Integer)(intptr_t)p)

◆ UI

#define UI (   b)    (((UIBridgeData *)b)->ui)

◆ UI_BRIDGE_CALL

#define UI_BRIDGE_CALL (   ui,
  name,
  argc,
  ... 
)    ((UIBridgeData *)ui)->scheduler(event_create(ui_bridge_##name##_event, argc, __VA_ARGS__), UI(ui))

Function Documentation

◆ ui_bridge_attach()

UI* ui_bridge_attach ( UI ui,
ui_main_fn  ui_main,
event_scheduler  scheduler 
)

◆ ui_bridge_stopped()

void ui_bridge_stopped ( UIBridgeData bridge)