aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/liveupdate.h
blob: 77fb420bf06edd8dd74d42a6d4933f23321ecbd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef NVIM_LIVEUPDATE_H
#define NVIM_LIVEUPDATE_H

#include "nvim/buffer_defs.h"

bool liveupdate_register(buf_T *buf, uint64_t channel_id, bool send_buffer);
void liveupdate_unregister(buf_T *buf, uint64_t channel_id);
void liveupdate_unregister_all(buf_T *buf);
void liveupdate_send_changes(buf_T *buf, linenr_T firstline, int64_t num_added,
                             int64_t num_removed, bool send_tick);
void liveupdate_send_tick(buf_T *buf);

#endif  // NVIM_LIVEUPDATE_H