1 // Auto generated 2019-01-13 02:04:50.926393 from nvim API level:6
2 #include "auto/neovimapi6.h"
3 #include "neovimconnector.h"
4 #include "msgpackrequest.h"
5 #include "msgpackiodevice.h"
6 #include "util.h"
7
8 namespace NeovimQt {
9 /* Unpack Neovim EXT types Window, Buffer Tabpage which are all
10 * uint64_t see Neovim:msgpack_rpc_to_
11 */
unpackBufferApi6(MsgpackIODevice * dev,const char * in,quint32 size)12 QVariant unpackBufferApi6(MsgpackIODevice *dev, const char* in, quint32 size)
13 {
14 msgpack_unpacked result;
15 msgpack_unpacked_init(&result);
16 msgpack_unpack_return ret = msgpack_unpack_next(&result, in, size, NULL);
17
18 QVariant variant;
19
20 if (ret == MSGPACK_UNPACK_SUCCESS) {
21 switch (result.data.type) {
22 case MSGPACK_OBJECT_NEGATIVE_INTEGER:
23 variant = (qint64)result.data.via.i64;
24 break;
25 case MSGPACK_OBJECT_POSITIVE_INTEGER:
26 variant = (quint64)result.data.via.u64;
27 break;
28 default:
29 // TODO it would be nice if we could call back MsgpackIoDevice method or primitive types here
30 qWarning() << "Unsupported type found for EXT type" << result.data.type << result.data;
31 }
32 }
33
34 msgpack_unpacked_destroy(&result);
35 return variant;
36 }
37 #define unpackWindowApi6 unpackBufferApi6
38 #define unpackTabpageApi6 unpackBufferApi6
39
NeovimApi6(NeovimConnector * c)40 NeovimApi6::NeovimApi6(NeovimConnector *c)
41 :m_c(c)
42 {
43 // EXT types
44 m_c->m_dev->registerExtType(0, unpackBufferApi6);
45 m_c->m_dev->registerExtType(1, unpackWindowApi6);
46 m_c->m_dev->registerExtType(2, unpackTabpageApi6);
47 connect(m_c->m_dev, &MsgpackIODevice::notification,
48 this, &NeovimApi6::neovimNotification);
49 }
50
51 // Slots
nvim_buf_line_count(int64_t buffer)52 MsgpackRequest* NeovimApi6::nvim_buf_line_count(int64_t buffer)
53 {
54 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_line_count", 1);
55 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_LINE_COUNT);
56 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
57 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
58 m_c->m_dev->send(buffer);
59 return r;
60 }
buffer_get_line(int64_t buffer,int64_t index)61 MsgpackRequest* NeovimApi6::buffer_get_line(int64_t buffer, int64_t index)
62 {
63 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_line", 2);
64 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_LINE);
65 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
66 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
67 m_c->m_dev->send(buffer);
68 m_c->m_dev->send(index);
69 return r;
70 }
nvim_buf_attach(int64_t buffer,bool send_buffer,QVariantMap opts)71 MsgpackRequest* NeovimApi6::nvim_buf_attach(int64_t buffer, bool send_buffer, QVariantMap opts)
72 {
73 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_attach", 3);
74 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_ATTACH);
75 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
76 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
77 m_c->m_dev->send(buffer);
78 m_c->m_dev->send(send_buffer);
79 m_c->m_dev->send(opts);
80 return r;
81 }
nvim_buf_detach(int64_t buffer)82 MsgpackRequest* NeovimApi6::nvim_buf_detach(int64_t buffer)
83 {
84 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_detach", 1);
85 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_DETACH);
86 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
87 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
88 m_c->m_dev->send(buffer);
89 return r;
90 }
buffer_set_line(int64_t buffer,int64_t index,QByteArray line)91 MsgpackRequest* NeovimApi6::buffer_set_line(int64_t buffer, int64_t index, QByteArray line)
92 {
93 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_set_line", 3);
94 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_SET_LINE);
95 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
96 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
97 m_c->m_dev->send(buffer);
98 m_c->m_dev->send(index);
99 m_c->m_dev->send(line);
100 return r;
101 }
buffer_del_line(int64_t buffer,int64_t index)102 MsgpackRequest* NeovimApi6::buffer_del_line(int64_t buffer, int64_t index)
103 {
104 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_del_line", 2);
105 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_DEL_LINE);
106 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
107 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
108 m_c->m_dev->send(buffer);
109 m_c->m_dev->send(index);
110 return r;
111 }
buffer_get_line_slice(int64_t buffer,int64_t start,int64_t end,bool include_start,bool include_end)112 MsgpackRequest* NeovimApi6::buffer_get_line_slice(int64_t buffer, int64_t start, int64_t end, bool include_start, bool include_end)
113 {
114 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_line_slice", 5);
115 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_LINE_SLICE);
116 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
117 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
118 m_c->m_dev->send(buffer);
119 m_c->m_dev->send(start);
120 m_c->m_dev->send(end);
121 m_c->m_dev->send(include_start);
122 m_c->m_dev->send(include_end);
123 return r;
124 }
nvim_buf_get_lines(int64_t buffer,int64_t start,int64_t end,bool strict_indexing)125 MsgpackRequest* NeovimApi6::nvim_buf_get_lines(int64_t buffer, int64_t start, int64_t end, bool strict_indexing)
126 {
127 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_lines", 4);
128 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_LINES);
129 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
130 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
131 m_c->m_dev->send(buffer);
132 m_c->m_dev->send(start);
133 m_c->m_dev->send(end);
134 m_c->m_dev->send(strict_indexing);
135 return r;
136 }
buffer_set_line_slice(int64_t buffer,int64_t start,int64_t end,bool include_start,bool include_end,QList<QByteArray> replacement)137 MsgpackRequest* NeovimApi6::buffer_set_line_slice(int64_t buffer, int64_t start, int64_t end, bool include_start, bool include_end, QList<QByteArray> replacement)
138 {
139 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_set_line_slice", 6);
140 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_SET_LINE_SLICE);
141 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
142 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
143 m_c->m_dev->send(buffer);
144 m_c->m_dev->send(start);
145 m_c->m_dev->send(end);
146 m_c->m_dev->send(include_start);
147 m_c->m_dev->send(include_end);
148 m_c->m_dev->sendArrayOf(replacement);
149 return r;
150 }
nvim_buf_set_lines(int64_t buffer,int64_t start,int64_t end,bool strict_indexing,QList<QByteArray> replacement)151 MsgpackRequest* NeovimApi6::nvim_buf_set_lines(int64_t buffer, int64_t start, int64_t end, bool strict_indexing, QList<QByteArray> replacement)
152 {
153 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_set_lines", 5);
154 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_LINES);
155 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
156 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
157 m_c->m_dev->send(buffer);
158 m_c->m_dev->send(start);
159 m_c->m_dev->send(end);
160 m_c->m_dev->send(strict_indexing);
161 m_c->m_dev->sendArrayOf(replacement);
162 return r;
163 }
nvim_buf_get_offset(int64_t buffer,int64_t index)164 MsgpackRequest* NeovimApi6::nvim_buf_get_offset(int64_t buffer, int64_t index)
165 {
166 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_offset", 2);
167 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_OFFSET);
168 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
169 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
170 m_c->m_dev->send(buffer);
171 m_c->m_dev->send(index);
172 return r;
173 }
nvim_buf_get_var(int64_t buffer,QByteArray name)174 MsgpackRequest* NeovimApi6::nvim_buf_get_var(int64_t buffer, QByteArray name)
175 {
176 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_var", 2);
177 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_VAR);
178 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
179 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
180 m_c->m_dev->send(buffer);
181 m_c->m_dev->send(name);
182 return r;
183 }
nvim_buf_get_changedtick(int64_t buffer)184 MsgpackRequest* NeovimApi6::nvim_buf_get_changedtick(int64_t buffer)
185 {
186 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_changedtick", 1);
187 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_CHANGEDTICK);
188 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
189 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
190 m_c->m_dev->send(buffer);
191 return r;
192 }
nvim_buf_get_keymap(int64_t buffer,QByteArray mode)193 MsgpackRequest* NeovimApi6::nvim_buf_get_keymap(int64_t buffer, QByteArray mode)
194 {
195 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_keymap", 2);
196 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_KEYMAP);
197 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
198 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
199 m_c->m_dev->send(buffer);
200 m_c->m_dev->send(mode);
201 return r;
202 }
nvim_buf_get_commands(int64_t buffer,QVariantMap opts)203 MsgpackRequest* NeovimApi6::nvim_buf_get_commands(int64_t buffer, QVariantMap opts)
204 {
205 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_commands", 2);
206 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_COMMANDS);
207 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
208 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
209 m_c->m_dev->send(buffer);
210 m_c->m_dev->send(opts);
211 return r;
212 }
nvim_buf_set_var(int64_t buffer,QByteArray name,QVariant value)213 MsgpackRequest* NeovimApi6::nvim_buf_set_var(int64_t buffer, QByteArray name, QVariant value)
214 {
215 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_set_var", 3);
216 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_VAR);
217 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
218 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
219 m_c->m_dev->send(buffer);
220 m_c->m_dev->send(name);
221 m_c->m_dev->send(value);
222 return r;
223 }
nvim_buf_del_var(int64_t buffer,QByteArray name)224 MsgpackRequest* NeovimApi6::nvim_buf_del_var(int64_t buffer, QByteArray name)
225 {
226 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_del_var", 2);
227 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_DEL_VAR);
228 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
229 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
230 m_c->m_dev->send(buffer);
231 m_c->m_dev->send(name);
232 return r;
233 }
buffer_set_var(int64_t buffer,QByteArray name,QVariant value)234 MsgpackRequest* NeovimApi6::buffer_set_var(int64_t buffer, QByteArray name, QVariant value)
235 {
236 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_set_var", 3);
237 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_SET_VAR);
238 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
239 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
240 m_c->m_dev->send(buffer);
241 m_c->m_dev->send(name);
242 m_c->m_dev->send(value);
243 return r;
244 }
buffer_del_var(int64_t buffer,QByteArray name)245 MsgpackRequest* NeovimApi6::buffer_del_var(int64_t buffer, QByteArray name)
246 {
247 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_del_var", 2);
248 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_DEL_VAR);
249 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
250 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
251 m_c->m_dev->send(buffer);
252 m_c->m_dev->send(name);
253 return r;
254 }
nvim_buf_get_option(int64_t buffer,QByteArray name)255 MsgpackRequest* NeovimApi6::nvim_buf_get_option(int64_t buffer, QByteArray name)
256 {
257 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_option", 2);
258 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_OPTION);
259 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
260 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
261 m_c->m_dev->send(buffer);
262 m_c->m_dev->send(name);
263 return r;
264 }
nvim_buf_set_option(int64_t buffer,QByteArray name,QVariant value)265 MsgpackRequest* NeovimApi6::nvim_buf_set_option(int64_t buffer, QByteArray name, QVariant value)
266 {
267 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_set_option", 3);
268 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_OPTION);
269 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
270 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
271 m_c->m_dev->send(buffer);
272 m_c->m_dev->send(name);
273 m_c->m_dev->send(value);
274 return r;
275 }
nvim_buf_get_number(int64_t buffer)276 MsgpackRequest* NeovimApi6::nvim_buf_get_number(int64_t buffer)
277 {
278 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_number", 1);
279 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_NUMBER);
280 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
281 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
282 m_c->m_dev->send(buffer);
283 return r;
284 }
nvim_buf_get_name(int64_t buffer)285 MsgpackRequest* NeovimApi6::nvim_buf_get_name(int64_t buffer)
286 {
287 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_name", 1);
288 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_NAME);
289 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
290 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
291 m_c->m_dev->send(buffer);
292 return r;
293 }
nvim_buf_set_name(int64_t buffer,QByteArray name)294 MsgpackRequest* NeovimApi6::nvim_buf_set_name(int64_t buffer, QByteArray name)
295 {
296 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_set_name", 2);
297 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_NAME);
298 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
299 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
300 m_c->m_dev->send(buffer);
301 m_c->m_dev->send(name);
302 return r;
303 }
nvim_buf_is_loaded(int64_t buffer)304 MsgpackRequest* NeovimApi6::nvim_buf_is_loaded(int64_t buffer)
305 {
306 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_is_loaded", 1);
307 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_IS_LOADED);
308 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
309 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
310 m_c->m_dev->send(buffer);
311 return r;
312 }
nvim_buf_is_valid(int64_t buffer)313 MsgpackRequest* NeovimApi6::nvim_buf_is_valid(int64_t buffer)
314 {
315 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_is_valid", 1);
316 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_IS_VALID);
317 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
318 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
319 m_c->m_dev->send(buffer);
320 return r;
321 }
buffer_insert(int64_t buffer,int64_t lnum,QList<QByteArray> lines)322 MsgpackRequest* NeovimApi6::buffer_insert(int64_t buffer, int64_t lnum, QList<QByteArray> lines)
323 {
324 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_insert", 3);
325 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_INSERT);
326 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
327 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
328 m_c->m_dev->send(buffer);
329 m_c->m_dev->send(lnum);
330 m_c->m_dev->sendArrayOf(lines);
331 return r;
332 }
nvim_buf_get_mark(int64_t buffer,QByteArray name)333 MsgpackRequest* NeovimApi6::nvim_buf_get_mark(int64_t buffer, QByteArray name)
334 {
335 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_get_mark", 2);
336 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_MARK);
337 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
338 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
339 m_c->m_dev->send(buffer);
340 m_c->m_dev->send(name);
341 return r;
342 }
nvim_buf_add_highlight(int64_t buffer,int64_t ns_id,QByteArray hl_group,int64_t line,int64_t col_start,int64_t col_end)343 MsgpackRequest* NeovimApi6::nvim_buf_add_highlight(int64_t buffer, int64_t ns_id, QByteArray hl_group, int64_t line, int64_t col_start, int64_t col_end)
344 {
345 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_add_highlight", 6);
346 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_ADD_HIGHLIGHT);
347 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
348 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
349 m_c->m_dev->send(buffer);
350 m_c->m_dev->send(ns_id);
351 m_c->m_dev->send(hl_group);
352 m_c->m_dev->send(line);
353 m_c->m_dev->send(col_start);
354 m_c->m_dev->send(col_end);
355 return r;
356 }
nvim_buf_clear_namespace(int64_t buffer,int64_t ns_id,int64_t line_start,int64_t line_end)357 MsgpackRequest* NeovimApi6::nvim_buf_clear_namespace(int64_t buffer, int64_t ns_id, int64_t line_start, int64_t line_end)
358 {
359 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_clear_namespace", 4);
360 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_CLEAR_NAMESPACE);
361 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
362 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
363 m_c->m_dev->send(buffer);
364 m_c->m_dev->send(ns_id);
365 m_c->m_dev->send(line_start);
366 m_c->m_dev->send(line_end);
367 return r;
368 }
nvim_buf_clear_highlight(int64_t buffer,int64_t ns_id,int64_t line_start,int64_t line_end)369 MsgpackRequest* NeovimApi6::nvim_buf_clear_highlight(int64_t buffer, int64_t ns_id, int64_t line_start, int64_t line_end)
370 {
371 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_clear_highlight", 4);
372 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_CLEAR_HIGHLIGHT);
373 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
374 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
375 m_c->m_dev->send(buffer);
376 m_c->m_dev->send(ns_id);
377 m_c->m_dev->send(line_start);
378 m_c->m_dev->send(line_end);
379 return r;
380 }
nvim_buf_set_virtual_text(int64_t buffer,int64_t ns_id,int64_t line,QVariantList chunks,QVariantMap opts)381 MsgpackRequest* NeovimApi6::nvim_buf_set_virtual_text(int64_t buffer, int64_t ns_id, int64_t line, QVariantList chunks, QVariantMap opts)
382 {
383 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_buf_set_virtual_text", 5);
384 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_VIRTUAL_TEXT);
385 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
386 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
387 m_c->m_dev->send(buffer);
388 m_c->m_dev->send(ns_id);
389 m_c->m_dev->send(line);
390 m_c->m_dev->send(chunks);
391 m_c->m_dev->send(opts);
392 return r;
393 }
nvim_tabpage_list_wins(int64_t tabpage)394 MsgpackRequest* NeovimApi6::nvim_tabpage_list_wins(int64_t tabpage)
395 {
396 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_list_wins", 1);
397 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_LIST_WINS);
398 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
399 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
400 m_c->m_dev->send(tabpage);
401 return r;
402 }
nvim_tabpage_get_var(int64_t tabpage,QByteArray name)403 MsgpackRequest* NeovimApi6::nvim_tabpage_get_var(int64_t tabpage, QByteArray name)
404 {
405 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_get_var", 2);
406 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_VAR);
407 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
408 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
409 m_c->m_dev->send(tabpage);
410 m_c->m_dev->send(name);
411 return r;
412 }
nvim_tabpage_set_var(int64_t tabpage,QByteArray name,QVariant value)413 MsgpackRequest* NeovimApi6::nvim_tabpage_set_var(int64_t tabpage, QByteArray name, QVariant value)
414 {
415 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_set_var", 3);
416 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_SET_VAR);
417 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
418 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
419 m_c->m_dev->send(tabpage);
420 m_c->m_dev->send(name);
421 m_c->m_dev->send(value);
422 return r;
423 }
nvim_tabpage_del_var(int64_t tabpage,QByteArray name)424 MsgpackRequest* NeovimApi6::nvim_tabpage_del_var(int64_t tabpage, QByteArray name)
425 {
426 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_del_var", 2);
427 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_DEL_VAR);
428 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
429 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
430 m_c->m_dev->send(tabpage);
431 m_c->m_dev->send(name);
432 return r;
433 }
tabpage_set_var(int64_t tabpage,QByteArray name,QVariant value)434 MsgpackRequest* NeovimApi6::tabpage_set_var(int64_t tabpage, QByteArray name, QVariant value)
435 {
436 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("tabpage_set_var", 3);
437 r->setFunction(NeovimApi6::NEOVIM_FN_TABPAGE_SET_VAR);
438 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
439 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
440 m_c->m_dev->send(tabpage);
441 m_c->m_dev->send(name);
442 m_c->m_dev->send(value);
443 return r;
444 }
tabpage_del_var(int64_t tabpage,QByteArray name)445 MsgpackRequest* NeovimApi6::tabpage_del_var(int64_t tabpage, QByteArray name)
446 {
447 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("tabpage_del_var", 2);
448 r->setFunction(NeovimApi6::NEOVIM_FN_TABPAGE_DEL_VAR);
449 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
450 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
451 m_c->m_dev->send(tabpage);
452 m_c->m_dev->send(name);
453 return r;
454 }
nvim_tabpage_get_win(int64_t tabpage)455 MsgpackRequest* NeovimApi6::nvim_tabpage_get_win(int64_t tabpage)
456 {
457 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_get_win", 1);
458 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_WIN);
459 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
460 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
461 m_c->m_dev->send(tabpage);
462 return r;
463 }
nvim_tabpage_get_number(int64_t tabpage)464 MsgpackRequest* NeovimApi6::nvim_tabpage_get_number(int64_t tabpage)
465 {
466 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_get_number", 1);
467 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_NUMBER);
468 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
469 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
470 m_c->m_dev->send(tabpage);
471 return r;
472 }
nvim_tabpage_is_valid(int64_t tabpage)473 MsgpackRequest* NeovimApi6::nvim_tabpage_is_valid(int64_t tabpage)
474 {
475 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_tabpage_is_valid", 1);
476 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_IS_VALID);
477 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
478 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
479 m_c->m_dev->send(tabpage);
480 return r;
481 }
nvim_ui_attach(int64_t width,int64_t height,QVariantMap options)482 MsgpackRequest* NeovimApi6::nvim_ui_attach(int64_t width, int64_t height, QVariantMap options)
483 {
484 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_ui_attach", 3);
485 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_UI_ATTACH);
486 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
487 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
488 m_c->m_dev->send(width);
489 m_c->m_dev->send(height);
490 m_c->m_dev->send(options);
491 return r;
492 }
ui_attach(int64_t width,int64_t height,bool enable_rgb)493 MsgpackRequest* NeovimApi6::ui_attach(int64_t width, int64_t height, bool enable_rgb)
494 {
495 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("ui_attach", 3);
496 r->setFunction(NeovimApi6::NEOVIM_FN_UI_ATTACH);
497 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
498 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
499 m_c->m_dev->send(width);
500 m_c->m_dev->send(height);
501 m_c->m_dev->send(enable_rgb);
502 return r;
503 }
nvim_ui_detach()504 MsgpackRequest* NeovimApi6::nvim_ui_detach()
505 {
506 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_ui_detach", 0);
507 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_UI_DETACH);
508 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
509 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
510 return r;
511 }
nvim_ui_try_resize(int64_t width,int64_t height)512 MsgpackRequest* NeovimApi6::nvim_ui_try_resize(int64_t width, int64_t height)
513 {
514 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_ui_try_resize", 2);
515 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_UI_TRY_RESIZE);
516 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
517 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
518 m_c->m_dev->send(width);
519 m_c->m_dev->send(height);
520 return r;
521 }
nvim_ui_set_option(QByteArray name,QVariant value)522 MsgpackRequest* NeovimApi6::nvim_ui_set_option(QByteArray name, QVariant value)
523 {
524 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_ui_set_option", 2);
525 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_UI_SET_OPTION);
526 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
527 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
528 m_c->m_dev->send(name);
529 m_c->m_dev->send(value);
530 return r;
531 }
nvim_ui_try_resize_grid(int64_t grid,int64_t width,int64_t height)532 MsgpackRequest* NeovimApi6::nvim_ui_try_resize_grid(int64_t grid, int64_t width, int64_t height)
533 {
534 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_ui_try_resize_grid", 3);
535 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_UI_TRY_RESIZE_GRID);
536 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
537 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
538 m_c->m_dev->send(grid);
539 m_c->m_dev->send(width);
540 m_c->m_dev->send(height);
541 return r;
542 }
nvim_command(QByteArray command)543 MsgpackRequest* NeovimApi6::nvim_command(QByteArray command)
544 {
545 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_command", 1);
546 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_COMMAND);
547 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
548 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
549 m_c->m_dev->send(command);
550 return r;
551 }
nvim_get_hl_by_name(QByteArray name,bool rgb)552 MsgpackRequest* NeovimApi6::nvim_get_hl_by_name(QByteArray name, bool rgb)
553 {
554 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_hl_by_name", 2);
555 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_HL_BY_NAME);
556 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
557 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
558 m_c->m_dev->send(name);
559 m_c->m_dev->send(rgb);
560 return r;
561 }
nvim_get_hl_by_id(int64_t hl_id,bool rgb)562 MsgpackRequest* NeovimApi6::nvim_get_hl_by_id(int64_t hl_id, bool rgb)
563 {
564 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_hl_by_id", 2);
565 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_HL_BY_ID);
566 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
567 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
568 m_c->m_dev->send(hl_id);
569 m_c->m_dev->send(rgb);
570 return r;
571 }
nvim_feedkeys(QByteArray keys,QByteArray mode,bool escape_csi)572 MsgpackRequest* NeovimApi6::nvim_feedkeys(QByteArray keys, QByteArray mode, bool escape_csi)
573 {
574 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_feedkeys", 3);
575 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_FEEDKEYS);
576 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
577 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
578 m_c->m_dev->send(keys);
579 m_c->m_dev->send(mode);
580 m_c->m_dev->send(escape_csi);
581 return r;
582 }
nvim_input(QByteArray keys)583 MsgpackRequest* NeovimApi6::nvim_input(QByteArray keys)
584 {
585 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_input", 1);
586 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_INPUT);
587 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
588 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
589 m_c->m_dev->send(keys);
590 return r;
591 }
nvim_replace_termcodes(QByteArray str,bool from_part,bool do_lt,bool special)592 MsgpackRequest* NeovimApi6::nvim_replace_termcodes(QByteArray str, bool from_part, bool do_lt, bool special)
593 {
594 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_replace_termcodes", 4);
595 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_REPLACE_TERMCODES);
596 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
597 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
598 m_c->m_dev->send(str);
599 m_c->m_dev->send(from_part);
600 m_c->m_dev->send(do_lt);
601 m_c->m_dev->send(special);
602 return r;
603 }
nvim_command_output(QByteArray command)604 MsgpackRequest* NeovimApi6::nvim_command_output(QByteArray command)
605 {
606 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_command_output", 1);
607 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_COMMAND_OUTPUT);
608 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
609 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
610 m_c->m_dev->send(command);
611 return r;
612 }
nvim_eval(QByteArray expr)613 MsgpackRequest* NeovimApi6::nvim_eval(QByteArray expr)
614 {
615 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_eval", 1);
616 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_EVAL);
617 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
618 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
619 m_c->m_dev->send(expr);
620 return r;
621 }
nvim_execute_lua(QByteArray code,QVariantList args)622 MsgpackRequest* NeovimApi6::nvim_execute_lua(QByteArray code, QVariantList args)
623 {
624 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_execute_lua", 2);
625 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_EXECUTE_LUA);
626 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
627 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
628 m_c->m_dev->send(code);
629 m_c->m_dev->send(args);
630 return r;
631 }
nvim_call_function(QByteArray fn,QVariantList args)632 MsgpackRequest* NeovimApi6::nvim_call_function(QByteArray fn, QVariantList args)
633 {
634 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_call_function", 2);
635 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_CALL_FUNCTION);
636 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
637 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
638 m_c->m_dev->send(fn);
639 m_c->m_dev->send(args);
640 return r;
641 }
nvim_call_dict_function(QVariant dict,QByteArray fn,QVariantList args)642 MsgpackRequest* NeovimApi6::nvim_call_dict_function(QVariant dict, QByteArray fn, QVariantList args)
643 {
644 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_call_dict_function", 3);
645 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_CALL_DICT_FUNCTION);
646 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
647 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
648 m_c->m_dev->send(dict);
649 m_c->m_dev->send(fn);
650 m_c->m_dev->send(args);
651 return r;
652 }
nvim_strwidth(QByteArray text)653 MsgpackRequest* NeovimApi6::nvim_strwidth(QByteArray text)
654 {
655 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_strwidth", 1);
656 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_STRWIDTH);
657 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
658 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
659 m_c->m_dev->send(text);
660 return r;
661 }
nvim_list_runtime_paths()662 MsgpackRequest* NeovimApi6::nvim_list_runtime_paths()
663 {
664 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_list_runtime_paths", 0);
665 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_LIST_RUNTIME_PATHS);
666 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
667 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
668 return r;
669 }
nvim_set_current_dir(QByteArray dir)670 MsgpackRequest* NeovimApi6::nvim_set_current_dir(QByteArray dir)
671 {
672 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_current_dir", 1);
673 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_DIR);
674 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
675 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
676 m_c->m_dev->send(dir);
677 return r;
678 }
nvim_get_current_line()679 MsgpackRequest* NeovimApi6::nvim_get_current_line()
680 {
681 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_current_line", 0);
682 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_LINE);
683 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
684 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
685 return r;
686 }
nvim_set_current_line(QByteArray line)687 MsgpackRequest* NeovimApi6::nvim_set_current_line(QByteArray line)
688 {
689 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_current_line", 1);
690 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_LINE);
691 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
692 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
693 m_c->m_dev->send(line);
694 return r;
695 }
nvim_del_current_line()696 MsgpackRequest* NeovimApi6::nvim_del_current_line()
697 {
698 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_del_current_line", 0);
699 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_DEL_CURRENT_LINE);
700 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
701 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
702 return r;
703 }
nvim_get_var(QByteArray name)704 MsgpackRequest* NeovimApi6::nvim_get_var(QByteArray name)
705 {
706 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_var", 1);
707 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_VAR);
708 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
709 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
710 m_c->m_dev->send(name);
711 return r;
712 }
nvim_set_var(QByteArray name,QVariant value)713 MsgpackRequest* NeovimApi6::nvim_set_var(QByteArray name, QVariant value)
714 {
715 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_var", 2);
716 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_VAR);
717 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
718 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
719 m_c->m_dev->send(name);
720 m_c->m_dev->send(value);
721 return r;
722 }
nvim_del_var(QByteArray name)723 MsgpackRequest* NeovimApi6::nvim_del_var(QByteArray name)
724 {
725 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_del_var", 1);
726 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_DEL_VAR);
727 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
728 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
729 m_c->m_dev->send(name);
730 return r;
731 }
vim_set_var(QByteArray name,QVariant value)732 MsgpackRequest* NeovimApi6::vim_set_var(QByteArray name, QVariant value)
733 {
734 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_set_var", 2);
735 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SET_VAR);
736 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
737 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
738 m_c->m_dev->send(name);
739 m_c->m_dev->send(value);
740 return r;
741 }
vim_del_var(QByteArray name)742 MsgpackRequest* NeovimApi6::vim_del_var(QByteArray name)
743 {
744 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_del_var", 1);
745 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_DEL_VAR);
746 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
747 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
748 m_c->m_dev->send(name);
749 return r;
750 }
nvim_get_vvar(QByteArray name)751 MsgpackRequest* NeovimApi6::nvim_get_vvar(QByteArray name)
752 {
753 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_vvar", 1);
754 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_VVAR);
755 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
756 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
757 m_c->m_dev->send(name);
758 return r;
759 }
nvim_get_option(QByteArray name)760 MsgpackRequest* NeovimApi6::nvim_get_option(QByteArray name)
761 {
762 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_option", 1);
763 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_OPTION);
764 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
765 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
766 m_c->m_dev->send(name);
767 return r;
768 }
nvim_set_option(QByteArray name,QVariant value)769 MsgpackRequest* NeovimApi6::nvim_set_option(QByteArray name, QVariant value)
770 {
771 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_option", 2);
772 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_OPTION);
773 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
774 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
775 m_c->m_dev->send(name);
776 m_c->m_dev->send(value);
777 return r;
778 }
nvim_out_write(QByteArray str)779 MsgpackRequest* NeovimApi6::nvim_out_write(QByteArray str)
780 {
781 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_out_write", 1);
782 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_OUT_WRITE);
783 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
784 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
785 m_c->m_dev->send(str);
786 return r;
787 }
nvim_err_write(QByteArray str)788 MsgpackRequest* NeovimApi6::nvim_err_write(QByteArray str)
789 {
790 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_err_write", 1);
791 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_ERR_WRITE);
792 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
793 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
794 m_c->m_dev->send(str);
795 return r;
796 }
nvim_err_writeln(QByteArray str)797 MsgpackRequest* NeovimApi6::nvim_err_writeln(QByteArray str)
798 {
799 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_err_writeln", 1);
800 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_ERR_WRITELN);
801 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
802 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
803 m_c->m_dev->send(str);
804 return r;
805 }
nvim_list_bufs()806 MsgpackRequest* NeovimApi6::nvim_list_bufs()
807 {
808 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_list_bufs", 0);
809 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_LIST_BUFS);
810 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
811 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
812 return r;
813 }
nvim_get_current_buf()814 MsgpackRequest* NeovimApi6::nvim_get_current_buf()
815 {
816 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_current_buf", 0);
817 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_BUF);
818 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
819 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
820 return r;
821 }
nvim_set_current_buf(int64_t buffer)822 MsgpackRequest* NeovimApi6::nvim_set_current_buf(int64_t buffer)
823 {
824 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_current_buf", 1);
825 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_BUF);
826 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
827 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
828 m_c->m_dev->send(buffer);
829 return r;
830 }
nvim_list_wins()831 MsgpackRequest* NeovimApi6::nvim_list_wins()
832 {
833 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_list_wins", 0);
834 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_LIST_WINS);
835 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
836 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
837 return r;
838 }
nvim_get_current_win()839 MsgpackRequest* NeovimApi6::nvim_get_current_win()
840 {
841 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_current_win", 0);
842 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_WIN);
843 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
844 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
845 return r;
846 }
nvim_set_current_win(int64_t window)847 MsgpackRequest* NeovimApi6::nvim_set_current_win(int64_t window)
848 {
849 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_current_win", 1);
850 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_WIN);
851 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
852 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
853 m_c->m_dev->send(window);
854 return r;
855 }
nvim_list_tabpages()856 MsgpackRequest* NeovimApi6::nvim_list_tabpages()
857 {
858 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_list_tabpages", 0);
859 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_LIST_TABPAGES);
860 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
861 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
862 return r;
863 }
nvim_get_current_tabpage()864 MsgpackRequest* NeovimApi6::nvim_get_current_tabpage()
865 {
866 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_current_tabpage", 0);
867 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_TABPAGE);
868 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
869 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
870 return r;
871 }
nvim_set_current_tabpage(int64_t tabpage)872 MsgpackRequest* NeovimApi6::nvim_set_current_tabpage(int64_t tabpage)
873 {
874 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_current_tabpage", 1);
875 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_TABPAGE);
876 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
877 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
878 m_c->m_dev->send(tabpage);
879 return r;
880 }
nvim_create_namespace(QByteArray name)881 MsgpackRequest* NeovimApi6::nvim_create_namespace(QByteArray name)
882 {
883 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_create_namespace", 1);
884 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_CREATE_NAMESPACE);
885 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
886 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
887 m_c->m_dev->send(name);
888 return r;
889 }
nvim_get_namespaces()890 MsgpackRequest* NeovimApi6::nvim_get_namespaces()
891 {
892 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_namespaces", 0);
893 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_NAMESPACES);
894 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
895 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
896 return r;
897 }
nvim_subscribe(QByteArray event)898 MsgpackRequest* NeovimApi6::nvim_subscribe(QByteArray event)
899 {
900 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_subscribe", 1);
901 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SUBSCRIBE);
902 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
903 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
904 m_c->m_dev->send(event);
905 return r;
906 }
nvim_unsubscribe(QByteArray event)907 MsgpackRequest* NeovimApi6::nvim_unsubscribe(QByteArray event)
908 {
909 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_unsubscribe", 1);
910 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_UNSUBSCRIBE);
911 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
912 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
913 m_c->m_dev->send(event);
914 return r;
915 }
nvim_get_color_by_name(QByteArray name)916 MsgpackRequest* NeovimApi6::nvim_get_color_by_name(QByteArray name)
917 {
918 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_color_by_name", 1);
919 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_COLOR_BY_NAME);
920 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
921 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
922 m_c->m_dev->send(name);
923 return r;
924 }
nvim_get_color_map()925 MsgpackRequest* NeovimApi6::nvim_get_color_map()
926 {
927 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_color_map", 0);
928 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_COLOR_MAP);
929 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
930 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
931 return r;
932 }
nvim_get_mode()933 MsgpackRequest* NeovimApi6::nvim_get_mode()
934 {
935 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_mode", 0);
936 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_MODE);
937 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
938 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
939 return r;
940 }
nvim_get_keymap(QByteArray mode)941 MsgpackRequest* NeovimApi6::nvim_get_keymap(QByteArray mode)
942 {
943 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_keymap", 1);
944 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_KEYMAP);
945 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
946 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
947 m_c->m_dev->send(mode);
948 return r;
949 }
nvim_get_commands(QVariantMap opts)950 MsgpackRequest* NeovimApi6::nvim_get_commands(QVariantMap opts)
951 {
952 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_commands", 1);
953 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_COMMANDS);
954 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
955 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
956 m_c->m_dev->send(opts);
957 return r;
958 }
nvim_get_api_info()959 MsgpackRequest* NeovimApi6::nvim_get_api_info()
960 {
961 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_api_info", 0);
962 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_API_INFO);
963 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
964 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
965 return r;
966 }
nvim_set_client_info(QByteArray name,QVariantMap version,QByteArray type,QVariantMap methods,QVariantMap attributes)967 MsgpackRequest* NeovimApi6::nvim_set_client_info(QByteArray name, QVariantMap version, QByteArray type, QVariantMap methods, QVariantMap attributes)
968 {
969 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_set_client_info", 5);
970 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SET_CLIENT_INFO);
971 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
972 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
973 m_c->m_dev->send(name);
974 m_c->m_dev->send(version);
975 m_c->m_dev->send(type);
976 m_c->m_dev->send(methods);
977 m_c->m_dev->send(attributes);
978 return r;
979 }
nvim_get_chan_info(int64_t chan)980 MsgpackRequest* NeovimApi6::nvim_get_chan_info(int64_t chan)
981 {
982 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_chan_info", 1);
983 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_CHAN_INFO);
984 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
985 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
986 m_c->m_dev->send(chan);
987 return r;
988 }
nvim_list_chans()989 MsgpackRequest* NeovimApi6::nvim_list_chans()
990 {
991 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_list_chans", 0);
992 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_LIST_CHANS);
993 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
994 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
995 return r;
996 }
nvim_call_atomic(QVariantList calls)997 MsgpackRequest* NeovimApi6::nvim_call_atomic(QVariantList calls)
998 {
999 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_call_atomic", 1);
1000 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_CALL_ATOMIC);
1001 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1002 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1003 m_c->m_dev->send(calls);
1004 return r;
1005 }
nvim_parse_expression(QByteArray expr,QByteArray flags,bool highlight)1006 MsgpackRequest* NeovimApi6::nvim_parse_expression(QByteArray expr, QByteArray flags, bool highlight)
1007 {
1008 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_parse_expression", 3);
1009 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_PARSE_EXPRESSION);
1010 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1011 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1012 m_c->m_dev->send(expr);
1013 m_c->m_dev->send(flags);
1014 m_c->m_dev->send(highlight);
1015 return r;
1016 }
nvim_list_uis()1017 MsgpackRequest* NeovimApi6::nvim_list_uis()
1018 {
1019 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_list_uis", 0);
1020 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_LIST_UIS);
1021 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1022 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1023 return r;
1024 }
nvim_get_proc_children(int64_t pid)1025 MsgpackRequest* NeovimApi6::nvim_get_proc_children(int64_t pid)
1026 {
1027 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_proc_children", 1);
1028 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_PROC_CHILDREN);
1029 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1030 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1031 m_c->m_dev->send(pid);
1032 return r;
1033 }
nvim_get_proc(int64_t pid)1034 MsgpackRequest* NeovimApi6::nvim_get_proc(int64_t pid)
1035 {
1036 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_get_proc", 1);
1037 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_GET_PROC);
1038 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1039 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1040 m_c->m_dev->send(pid);
1041 return r;
1042 }
nvim_select_popupmenu_item(int64_t item,bool insert,bool finish,QVariantMap opts)1043 MsgpackRequest* NeovimApi6::nvim_select_popupmenu_item(int64_t item, bool insert, bool finish, QVariantMap opts)
1044 {
1045 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_select_popupmenu_item", 4);
1046 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_SELECT_POPUPMENU_ITEM);
1047 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1048 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1049 m_c->m_dev->send(item);
1050 m_c->m_dev->send(insert);
1051 m_c->m_dev->send(finish);
1052 m_c->m_dev->send(opts);
1053 return r;
1054 }
nvim_win_get_buf(int64_t window)1055 MsgpackRequest* NeovimApi6::nvim_win_get_buf(int64_t window)
1056 {
1057 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_buf", 1);
1058 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_BUF);
1059 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1060 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1061 m_c->m_dev->send(window);
1062 return r;
1063 }
nvim_win_set_buf(int64_t window,int64_t buffer)1064 MsgpackRequest* NeovimApi6::nvim_win_set_buf(int64_t window, int64_t buffer)
1065 {
1066 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_set_buf", 2);
1067 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_BUF);
1068 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1069 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1070 m_c->m_dev->send(window);
1071 m_c->m_dev->send(buffer);
1072 return r;
1073 }
nvim_win_get_cursor(int64_t window)1074 MsgpackRequest* NeovimApi6::nvim_win_get_cursor(int64_t window)
1075 {
1076 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_cursor", 1);
1077 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_CURSOR);
1078 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1079 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1080 m_c->m_dev->send(window);
1081 return r;
1082 }
nvim_win_set_cursor(int64_t window,QPoint pos)1083 MsgpackRequest* NeovimApi6::nvim_win_set_cursor(int64_t window, QPoint pos)
1084 {
1085 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_set_cursor", 2);
1086 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_CURSOR);
1087 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1088 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1089 m_c->m_dev->send(window);
1090 m_c->m_dev->send(pos);
1091 return r;
1092 }
nvim_win_get_height(int64_t window)1093 MsgpackRequest* NeovimApi6::nvim_win_get_height(int64_t window)
1094 {
1095 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_height", 1);
1096 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_HEIGHT);
1097 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1098 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1099 m_c->m_dev->send(window);
1100 return r;
1101 }
nvim_win_set_height(int64_t window,int64_t height)1102 MsgpackRequest* NeovimApi6::nvim_win_set_height(int64_t window, int64_t height)
1103 {
1104 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_set_height", 2);
1105 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_HEIGHT);
1106 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1107 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1108 m_c->m_dev->send(window);
1109 m_c->m_dev->send(height);
1110 return r;
1111 }
nvim_win_get_width(int64_t window)1112 MsgpackRequest* NeovimApi6::nvim_win_get_width(int64_t window)
1113 {
1114 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_width", 1);
1115 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_WIDTH);
1116 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1117 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1118 m_c->m_dev->send(window);
1119 return r;
1120 }
nvim_win_set_width(int64_t window,int64_t width)1121 MsgpackRequest* NeovimApi6::nvim_win_set_width(int64_t window, int64_t width)
1122 {
1123 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_set_width", 2);
1124 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_WIDTH);
1125 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1126 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1127 m_c->m_dev->send(window);
1128 m_c->m_dev->send(width);
1129 return r;
1130 }
nvim_win_get_var(int64_t window,QByteArray name)1131 MsgpackRequest* NeovimApi6::nvim_win_get_var(int64_t window, QByteArray name)
1132 {
1133 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_var", 2);
1134 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_VAR);
1135 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1136 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1137 m_c->m_dev->send(window);
1138 m_c->m_dev->send(name);
1139 return r;
1140 }
nvim_win_set_var(int64_t window,QByteArray name,QVariant value)1141 MsgpackRequest* NeovimApi6::nvim_win_set_var(int64_t window, QByteArray name, QVariant value)
1142 {
1143 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_set_var", 3);
1144 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_VAR);
1145 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1146 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1147 m_c->m_dev->send(window);
1148 m_c->m_dev->send(name);
1149 m_c->m_dev->send(value);
1150 return r;
1151 }
nvim_win_del_var(int64_t window,QByteArray name)1152 MsgpackRequest* NeovimApi6::nvim_win_del_var(int64_t window, QByteArray name)
1153 {
1154 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_del_var", 2);
1155 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_DEL_VAR);
1156 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1157 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1158 m_c->m_dev->send(window);
1159 m_c->m_dev->send(name);
1160 return r;
1161 }
window_set_var(int64_t window,QByteArray name,QVariant value)1162 MsgpackRequest* NeovimApi6::window_set_var(int64_t window, QByteArray name, QVariant value)
1163 {
1164 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_set_var", 3);
1165 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_SET_VAR);
1166 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1167 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1168 m_c->m_dev->send(window);
1169 m_c->m_dev->send(name);
1170 m_c->m_dev->send(value);
1171 return r;
1172 }
window_del_var(int64_t window,QByteArray name)1173 MsgpackRequest* NeovimApi6::window_del_var(int64_t window, QByteArray name)
1174 {
1175 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_del_var", 2);
1176 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_DEL_VAR);
1177 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1178 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1179 m_c->m_dev->send(window);
1180 m_c->m_dev->send(name);
1181 return r;
1182 }
nvim_win_get_option(int64_t window,QByteArray name)1183 MsgpackRequest* NeovimApi6::nvim_win_get_option(int64_t window, QByteArray name)
1184 {
1185 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_option", 2);
1186 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_OPTION);
1187 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1188 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1189 m_c->m_dev->send(window);
1190 m_c->m_dev->send(name);
1191 return r;
1192 }
nvim_win_set_option(int64_t window,QByteArray name,QVariant value)1193 MsgpackRequest* NeovimApi6::nvim_win_set_option(int64_t window, QByteArray name, QVariant value)
1194 {
1195 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_set_option", 3);
1196 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_OPTION);
1197 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1198 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1199 m_c->m_dev->send(window);
1200 m_c->m_dev->send(name);
1201 m_c->m_dev->send(value);
1202 return r;
1203 }
nvim_win_get_position(int64_t window)1204 MsgpackRequest* NeovimApi6::nvim_win_get_position(int64_t window)
1205 {
1206 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_position", 1);
1207 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_POSITION);
1208 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1209 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1210 m_c->m_dev->send(window);
1211 return r;
1212 }
nvim_win_get_tabpage(int64_t window)1213 MsgpackRequest* NeovimApi6::nvim_win_get_tabpage(int64_t window)
1214 {
1215 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_tabpage", 1);
1216 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_TABPAGE);
1217 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1218 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1219 m_c->m_dev->send(window);
1220 return r;
1221 }
nvim_win_get_number(int64_t window)1222 MsgpackRequest* NeovimApi6::nvim_win_get_number(int64_t window)
1223 {
1224 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_get_number", 1);
1225 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_NUMBER);
1226 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1227 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1228 m_c->m_dev->send(window);
1229 return r;
1230 }
nvim_win_is_valid(int64_t window)1231 MsgpackRequest* NeovimApi6::nvim_win_is_valid(int64_t window)
1232 {
1233 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("nvim_win_is_valid", 1);
1234 r->setFunction(NeovimApi6::NEOVIM_FN_NVIM_WIN_IS_VALID);
1235 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1236 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1237 m_c->m_dev->send(window);
1238 return r;
1239 }
buffer_line_count(int64_t buffer)1240 MsgpackRequest* NeovimApi6::buffer_line_count(int64_t buffer)
1241 {
1242 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_line_count", 1);
1243 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_LINE_COUNT);
1244 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1245 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1246 m_c->m_dev->send(buffer);
1247 return r;
1248 }
buffer_get_lines(int64_t buffer,int64_t start,int64_t end,bool strict_indexing)1249 MsgpackRequest* NeovimApi6::buffer_get_lines(int64_t buffer, int64_t start, int64_t end, bool strict_indexing)
1250 {
1251 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_lines", 4);
1252 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_LINES);
1253 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1254 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1255 m_c->m_dev->send(buffer);
1256 m_c->m_dev->send(start);
1257 m_c->m_dev->send(end);
1258 m_c->m_dev->send(strict_indexing);
1259 return r;
1260 }
buffer_set_lines(int64_t buffer,int64_t start,int64_t end,bool strict_indexing,QList<QByteArray> replacement)1261 MsgpackRequest* NeovimApi6::buffer_set_lines(int64_t buffer, int64_t start, int64_t end, bool strict_indexing, QList<QByteArray> replacement)
1262 {
1263 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_set_lines", 5);
1264 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_SET_LINES);
1265 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1266 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1267 m_c->m_dev->send(buffer);
1268 m_c->m_dev->send(start);
1269 m_c->m_dev->send(end);
1270 m_c->m_dev->send(strict_indexing);
1271 m_c->m_dev->sendArrayOf(replacement);
1272 return r;
1273 }
buffer_get_var(int64_t buffer,QByteArray name)1274 MsgpackRequest* NeovimApi6::buffer_get_var(int64_t buffer, QByteArray name)
1275 {
1276 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_var", 2);
1277 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_VAR);
1278 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1279 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1280 m_c->m_dev->send(buffer);
1281 m_c->m_dev->send(name);
1282 return r;
1283 }
buffer_get_option(int64_t buffer,QByteArray name)1284 MsgpackRequest* NeovimApi6::buffer_get_option(int64_t buffer, QByteArray name)
1285 {
1286 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_option", 2);
1287 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_OPTION);
1288 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1289 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1290 m_c->m_dev->send(buffer);
1291 m_c->m_dev->send(name);
1292 return r;
1293 }
buffer_set_option(int64_t buffer,QByteArray name,QVariant value)1294 MsgpackRequest* NeovimApi6::buffer_set_option(int64_t buffer, QByteArray name, QVariant value)
1295 {
1296 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_set_option", 3);
1297 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_SET_OPTION);
1298 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1299 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1300 m_c->m_dev->send(buffer);
1301 m_c->m_dev->send(name);
1302 m_c->m_dev->send(value);
1303 return r;
1304 }
buffer_get_number(int64_t buffer)1305 MsgpackRequest* NeovimApi6::buffer_get_number(int64_t buffer)
1306 {
1307 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_number", 1);
1308 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_NUMBER);
1309 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1310 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1311 m_c->m_dev->send(buffer);
1312 return r;
1313 }
buffer_get_name(int64_t buffer)1314 MsgpackRequest* NeovimApi6::buffer_get_name(int64_t buffer)
1315 {
1316 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_name", 1);
1317 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_NAME);
1318 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1319 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1320 m_c->m_dev->send(buffer);
1321 return r;
1322 }
buffer_set_name(int64_t buffer,QByteArray name)1323 MsgpackRequest* NeovimApi6::buffer_set_name(int64_t buffer, QByteArray name)
1324 {
1325 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_set_name", 2);
1326 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_SET_NAME);
1327 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1328 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1329 m_c->m_dev->send(buffer);
1330 m_c->m_dev->send(name);
1331 return r;
1332 }
buffer_is_valid(int64_t buffer)1333 MsgpackRequest* NeovimApi6::buffer_is_valid(int64_t buffer)
1334 {
1335 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_is_valid", 1);
1336 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_IS_VALID);
1337 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1338 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1339 m_c->m_dev->send(buffer);
1340 return r;
1341 }
buffer_get_mark(int64_t buffer,QByteArray name)1342 MsgpackRequest* NeovimApi6::buffer_get_mark(int64_t buffer, QByteArray name)
1343 {
1344 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_get_mark", 2);
1345 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_GET_MARK);
1346 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1347 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1348 m_c->m_dev->send(buffer);
1349 m_c->m_dev->send(name);
1350 return r;
1351 }
buffer_add_highlight(int64_t buffer,int64_t ns_id,QByteArray hl_group,int64_t line,int64_t col_start,int64_t col_end)1352 MsgpackRequest* NeovimApi6::buffer_add_highlight(int64_t buffer, int64_t ns_id, QByteArray hl_group, int64_t line, int64_t col_start, int64_t col_end)
1353 {
1354 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_add_highlight", 6);
1355 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_ADD_HIGHLIGHT);
1356 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1357 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1358 m_c->m_dev->send(buffer);
1359 m_c->m_dev->send(ns_id);
1360 m_c->m_dev->send(hl_group);
1361 m_c->m_dev->send(line);
1362 m_c->m_dev->send(col_start);
1363 m_c->m_dev->send(col_end);
1364 return r;
1365 }
buffer_clear_highlight(int64_t buffer,int64_t ns_id,int64_t line_start,int64_t line_end)1366 MsgpackRequest* NeovimApi6::buffer_clear_highlight(int64_t buffer, int64_t ns_id, int64_t line_start, int64_t line_end)
1367 {
1368 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("buffer_clear_highlight", 4);
1369 r->setFunction(NeovimApi6::NEOVIM_FN_BUFFER_CLEAR_HIGHLIGHT);
1370 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1371 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1372 m_c->m_dev->send(buffer);
1373 m_c->m_dev->send(ns_id);
1374 m_c->m_dev->send(line_start);
1375 m_c->m_dev->send(line_end);
1376 return r;
1377 }
tabpage_get_windows(int64_t tabpage)1378 MsgpackRequest* NeovimApi6::tabpage_get_windows(int64_t tabpage)
1379 {
1380 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("tabpage_get_windows", 1);
1381 r->setFunction(NeovimApi6::NEOVIM_FN_TABPAGE_GET_WINDOWS);
1382 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1383 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1384 m_c->m_dev->send(tabpage);
1385 return r;
1386 }
tabpage_get_var(int64_t tabpage,QByteArray name)1387 MsgpackRequest* NeovimApi6::tabpage_get_var(int64_t tabpage, QByteArray name)
1388 {
1389 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("tabpage_get_var", 2);
1390 r->setFunction(NeovimApi6::NEOVIM_FN_TABPAGE_GET_VAR);
1391 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1392 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1393 m_c->m_dev->send(tabpage);
1394 m_c->m_dev->send(name);
1395 return r;
1396 }
tabpage_get_window(int64_t tabpage)1397 MsgpackRequest* NeovimApi6::tabpage_get_window(int64_t tabpage)
1398 {
1399 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("tabpage_get_window", 1);
1400 r->setFunction(NeovimApi6::NEOVIM_FN_TABPAGE_GET_WINDOW);
1401 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1402 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1403 m_c->m_dev->send(tabpage);
1404 return r;
1405 }
tabpage_is_valid(int64_t tabpage)1406 MsgpackRequest* NeovimApi6::tabpage_is_valid(int64_t tabpage)
1407 {
1408 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("tabpage_is_valid", 1);
1409 r->setFunction(NeovimApi6::NEOVIM_FN_TABPAGE_IS_VALID);
1410 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1411 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1412 m_c->m_dev->send(tabpage);
1413 return r;
1414 }
ui_detach()1415 MsgpackRequest* NeovimApi6::ui_detach()
1416 {
1417 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("ui_detach", 0);
1418 r->setFunction(NeovimApi6::NEOVIM_FN_UI_DETACH);
1419 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1420 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1421 return r;
1422 }
ui_try_resize(int64_t width,int64_t height)1423 MsgpackRequest* NeovimApi6::ui_try_resize(int64_t width, int64_t height)
1424 {
1425 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("ui_try_resize", 2);
1426 r->setFunction(NeovimApi6::NEOVIM_FN_UI_TRY_RESIZE);
1427 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1428 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1429 m_c->m_dev->send(width);
1430 m_c->m_dev->send(height);
1431 return r;
1432 }
vim_command(QByteArray command)1433 MsgpackRequest* NeovimApi6::vim_command(QByteArray command)
1434 {
1435 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_command", 1);
1436 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_COMMAND);
1437 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1438 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1439 m_c->m_dev->send(command);
1440 return r;
1441 }
vim_feedkeys(QByteArray keys,QByteArray mode,bool escape_csi)1442 MsgpackRequest* NeovimApi6::vim_feedkeys(QByteArray keys, QByteArray mode, bool escape_csi)
1443 {
1444 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_feedkeys", 3);
1445 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_FEEDKEYS);
1446 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1447 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1448 m_c->m_dev->send(keys);
1449 m_c->m_dev->send(mode);
1450 m_c->m_dev->send(escape_csi);
1451 return r;
1452 }
vim_input(QByteArray keys)1453 MsgpackRequest* NeovimApi6::vim_input(QByteArray keys)
1454 {
1455 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_input", 1);
1456 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_INPUT);
1457 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1458 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1459 m_c->m_dev->send(keys);
1460 return r;
1461 }
vim_replace_termcodes(QByteArray str,bool from_part,bool do_lt,bool special)1462 MsgpackRequest* NeovimApi6::vim_replace_termcodes(QByteArray str, bool from_part, bool do_lt, bool special)
1463 {
1464 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_replace_termcodes", 4);
1465 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_REPLACE_TERMCODES);
1466 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1467 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1468 m_c->m_dev->send(str);
1469 m_c->m_dev->send(from_part);
1470 m_c->m_dev->send(do_lt);
1471 m_c->m_dev->send(special);
1472 return r;
1473 }
vim_command_output(QByteArray command)1474 MsgpackRequest* NeovimApi6::vim_command_output(QByteArray command)
1475 {
1476 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_command_output", 1);
1477 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_COMMAND_OUTPUT);
1478 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1479 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1480 m_c->m_dev->send(command);
1481 return r;
1482 }
vim_eval(QByteArray expr)1483 MsgpackRequest* NeovimApi6::vim_eval(QByteArray expr)
1484 {
1485 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_eval", 1);
1486 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_EVAL);
1487 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1488 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1489 m_c->m_dev->send(expr);
1490 return r;
1491 }
vim_call_function(QByteArray fn,QVariantList args)1492 MsgpackRequest* NeovimApi6::vim_call_function(QByteArray fn, QVariantList args)
1493 {
1494 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_call_function", 2);
1495 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_CALL_FUNCTION);
1496 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1497 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1498 m_c->m_dev->send(fn);
1499 m_c->m_dev->send(args);
1500 return r;
1501 }
vim_strwidth(QByteArray text)1502 MsgpackRequest* NeovimApi6::vim_strwidth(QByteArray text)
1503 {
1504 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_strwidth", 1);
1505 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_STRWIDTH);
1506 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1507 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1508 m_c->m_dev->send(text);
1509 return r;
1510 }
vim_list_runtime_paths()1511 MsgpackRequest* NeovimApi6::vim_list_runtime_paths()
1512 {
1513 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_list_runtime_paths", 0);
1514 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_LIST_RUNTIME_PATHS);
1515 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1516 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1517 return r;
1518 }
vim_change_directory(QByteArray dir)1519 MsgpackRequest* NeovimApi6::vim_change_directory(QByteArray dir)
1520 {
1521 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_change_directory", 1);
1522 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_CHANGE_DIRECTORY);
1523 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1524 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1525 m_c->m_dev->send(dir);
1526 return r;
1527 }
vim_get_current_line()1528 MsgpackRequest* NeovimApi6::vim_get_current_line()
1529 {
1530 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_current_line", 0);
1531 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_LINE);
1532 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1533 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1534 return r;
1535 }
vim_set_current_line(QByteArray line)1536 MsgpackRequest* NeovimApi6::vim_set_current_line(QByteArray line)
1537 {
1538 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_set_current_line", 1);
1539 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_LINE);
1540 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1541 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1542 m_c->m_dev->send(line);
1543 return r;
1544 }
vim_del_current_line()1545 MsgpackRequest* NeovimApi6::vim_del_current_line()
1546 {
1547 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_del_current_line", 0);
1548 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_DEL_CURRENT_LINE);
1549 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1550 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1551 return r;
1552 }
vim_get_var(QByteArray name)1553 MsgpackRequest* NeovimApi6::vim_get_var(QByteArray name)
1554 {
1555 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_var", 1);
1556 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_VAR);
1557 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1558 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1559 m_c->m_dev->send(name);
1560 return r;
1561 }
vim_get_vvar(QByteArray name)1562 MsgpackRequest* NeovimApi6::vim_get_vvar(QByteArray name)
1563 {
1564 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_vvar", 1);
1565 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_VVAR);
1566 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1567 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1568 m_c->m_dev->send(name);
1569 return r;
1570 }
vim_get_option(QByteArray name)1571 MsgpackRequest* NeovimApi6::vim_get_option(QByteArray name)
1572 {
1573 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_option", 1);
1574 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_OPTION);
1575 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1576 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1577 m_c->m_dev->send(name);
1578 return r;
1579 }
vim_set_option(QByteArray name,QVariant value)1580 MsgpackRequest* NeovimApi6::vim_set_option(QByteArray name, QVariant value)
1581 {
1582 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_set_option", 2);
1583 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SET_OPTION);
1584 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1585 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1586 m_c->m_dev->send(name);
1587 m_c->m_dev->send(value);
1588 return r;
1589 }
vim_out_write(QByteArray str)1590 MsgpackRequest* NeovimApi6::vim_out_write(QByteArray str)
1591 {
1592 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_out_write", 1);
1593 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_OUT_WRITE);
1594 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1595 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1596 m_c->m_dev->send(str);
1597 return r;
1598 }
vim_err_write(QByteArray str)1599 MsgpackRequest* NeovimApi6::vim_err_write(QByteArray str)
1600 {
1601 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_err_write", 1);
1602 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_ERR_WRITE);
1603 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1604 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1605 m_c->m_dev->send(str);
1606 return r;
1607 }
vim_report_error(QByteArray str)1608 MsgpackRequest* NeovimApi6::vim_report_error(QByteArray str)
1609 {
1610 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_report_error", 1);
1611 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_REPORT_ERROR);
1612 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1613 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1614 m_c->m_dev->send(str);
1615 return r;
1616 }
vim_get_buffers()1617 MsgpackRequest* NeovimApi6::vim_get_buffers()
1618 {
1619 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_buffers", 0);
1620 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_BUFFERS);
1621 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1622 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1623 return r;
1624 }
vim_get_current_buffer()1625 MsgpackRequest* NeovimApi6::vim_get_current_buffer()
1626 {
1627 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_current_buffer", 0);
1628 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_BUFFER);
1629 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1630 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1631 return r;
1632 }
vim_set_current_buffer(int64_t buffer)1633 MsgpackRequest* NeovimApi6::vim_set_current_buffer(int64_t buffer)
1634 {
1635 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_set_current_buffer", 1);
1636 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_BUFFER);
1637 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1638 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1639 m_c->m_dev->send(buffer);
1640 return r;
1641 }
vim_get_windows()1642 MsgpackRequest* NeovimApi6::vim_get_windows()
1643 {
1644 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_windows", 0);
1645 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_WINDOWS);
1646 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1647 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1648 return r;
1649 }
vim_get_current_window()1650 MsgpackRequest* NeovimApi6::vim_get_current_window()
1651 {
1652 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_current_window", 0);
1653 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_WINDOW);
1654 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1655 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1656 return r;
1657 }
vim_set_current_window(int64_t window)1658 MsgpackRequest* NeovimApi6::vim_set_current_window(int64_t window)
1659 {
1660 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_set_current_window", 1);
1661 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_WINDOW);
1662 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1663 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1664 m_c->m_dev->send(window);
1665 return r;
1666 }
vim_get_tabpages()1667 MsgpackRequest* NeovimApi6::vim_get_tabpages()
1668 {
1669 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_tabpages", 0);
1670 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_TABPAGES);
1671 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1672 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1673 return r;
1674 }
vim_get_current_tabpage()1675 MsgpackRequest* NeovimApi6::vim_get_current_tabpage()
1676 {
1677 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_current_tabpage", 0);
1678 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_TABPAGE);
1679 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1680 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1681 return r;
1682 }
vim_set_current_tabpage(int64_t tabpage)1683 MsgpackRequest* NeovimApi6::vim_set_current_tabpage(int64_t tabpage)
1684 {
1685 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_set_current_tabpage", 1);
1686 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_TABPAGE);
1687 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1688 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1689 m_c->m_dev->send(tabpage);
1690 return r;
1691 }
vim_subscribe(QByteArray event)1692 MsgpackRequest* NeovimApi6::vim_subscribe(QByteArray event)
1693 {
1694 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_subscribe", 1);
1695 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_SUBSCRIBE);
1696 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1697 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1698 m_c->m_dev->send(event);
1699 return r;
1700 }
vim_unsubscribe(QByteArray event)1701 MsgpackRequest* NeovimApi6::vim_unsubscribe(QByteArray event)
1702 {
1703 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_unsubscribe", 1);
1704 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_UNSUBSCRIBE);
1705 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1706 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1707 m_c->m_dev->send(event);
1708 return r;
1709 }
vim_name_to_color(QByteArray name)1710 MsgpackRequest* NeovimApi6::vim_name_to_color(QByteArray name)
1711 {
1712 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_name_to_color", 1);
1713 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_NAME_TO_COLOR);
1714 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1715 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1716 m_c->m_dev->send(name);
1717 return r;
1718 }
vim_get_color_map()1719 MsgpackRequest* NeovimApi6::vim_get_color_map()
1720 {
1721 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("vim_get_color_map", 0);
1722 r->setFunction(NeovimApi6::NEOVIM_FN_VIM_GET_COLOR_MAP);
1723 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1724 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1725 return r;
1726 }
window_get_buffer(int64_t window)1727 MsgpackRequest* NeovimApi6::window_get_buffer(int64_t window)
1728 {
1729 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_buffer", 1);
1730 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_BUFFER);
1731 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1732 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1733 m_c->m_dev->send(window);
1734 return r;
1735 }
window_get_cursor(int64_t window)1736 MsgpackRequest* NeovimApi6::window_get_cursor(int64_t window)
1737 {
1738 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_cursor", 1);
1739 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_CURSOR);
1740 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1741 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1742 m_c->m_dev->send(window);
1743 return r;
1744 }
window_set_cursor(int64_t window,QPoint pos)1745 MsgpackRequest* NeovimApi6::window_set_cursor(int64_t window, QPoint pos)
1746 {
1747 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_set_cursor", 2);
1748 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_SET_CURSOR);
1749 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1750 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1751 m_c->m_dev->send(window);
1752 m_c->m_dev->send(pos);
1753 return r;
1754 }
window_get_height(int64_t window)1755 MsgpackRequest* NeovimApi6::window_get_height(int64_t window)
1756 {
1757 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_height", 1);
1758 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_HEIGHT);
1759 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1760 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1761 m_c->m_dev->send(window);
1762 return r;
1763 }
window_set_height(int64_t window,int64_t height)1764 MsgpackRequest* NeovimApi6::window_set_height(int64_t window, int64_t height)
1765 {
1766 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_set_height", 2);
1767 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_SET_HEIGHT);
1768 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1769 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1770 m_c->m_dev->send(window);
1771 m_c->m_dev->send(height);
1772 return r;
1773 }
window_get_width(int64_t window)1774 MsgpackRequest* NeovimApi6::window_get_width(int64_t window)
1775 {
1776 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_width", 1);
1777 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_WIDTH);
1778 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1779 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1780 m_c->m_dev->send(window);
1781 return r;
1782 }
window_set_width(int64_t window,int64_t width)1783 MsgpackRequest* NeovimApi6::window_set_width(int64_t window, int64_t width)
1784 {
1785 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_set_width", 2);
1786 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_SET_WIDTH);
1787 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1788 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1789 m_c->m_dev->send(window);
1790 m_c->m_dev->send(width);
1791 return r;
1792 }
window_get_var(int64_t window,QByteArray name)1793 MsgpackRequest* NeovimApi6::window_get_var(int64_t window, QByteArray name)
1794 {
1795 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_var", 2);
1796 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_VAR);
1797 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1798 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1799 m_c->m_dev->send(window);
1800 m_c->m_dev->send(name);
1801 return r;
1802 }
window_get_option(int64_t window,QByteArray name)1803 MsgpackRequest* NeovimApi6::window_get_option(int64_t window, QByteArray name)
1804 {
1805 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_option", 2);
1806 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_OPTION);
1807 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1808 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1809 m_c->m_dev->send(window);
1810 m_c->m_dev->send(name);
1811 return r;
1812 }
window_set_option(int64_t window,QByteArray name,QVariant value)1813 MsgpackRequest* NeovimApi6::window_set_option(int64_t window, QByteArray name, QVariant value)
1814 {
1815 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_set_option", 3);
1816 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_SET_OPTION);
1817 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1818 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1819 m_c->m_dev->send(window);
1820 m_c->m_dev->send(name);
1821 m_c->m_dev->send(value);
1822 return r;
1823 }
window_get_position(int64_t window)1824 MsgpackRequest* NeovimApi6::window_get_position(int64_t window)
1825 {
1826 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_position", 1);
1827 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_POSITION);
1828 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1829 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1830 m_c->m_dev->send(window);
1831 return r;
1832 }
window_get_tabpage(int64_t window)1833 MsgpackRequest* NeovimApi6::window_get_tabpage(int64_t window)
1834 {
1835 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_get_tabpage", 1);
1836 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_GET_TABPAGE);
1837 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1838 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1839 m_c->m_dev->send(window);
1840 return r;
1841 }
window_is_valid(int64_t window)1842 MsgpackRequest* NeovimApi6::window_is_valid(int64_t window)
1843 {
1844 MsgpackRequest *r = m_c->m_dev->startRequestUnchecked("window_is_valid", 1);
1845 r->setFunction(NeovimApi6::NEOVIM_FN_WINDOW_IS_VALID);
1846 connect(r, &MsgpackRequest::finished, this, &NeovimApi6::handleResponse);
1847 connect(r, &MsgpackRequest::error, this, &NeovimApi6::handleResponseError);
1848 m_c->m_dev->send(window);
1849 return r;
1850 }
1851
1852 // Handlers
1853
handleResponseError(quint32 msgid,quint64 fun,const QVariant & res)1854 void NeovimApi6::handleResponseError(quint32 msgid, quint64 fun, const QVariant& res)
1855 {
1856
1857 // TODO: support Neovim error types Exception/Validation/etc
1858 QString errMsg;
1859 const QVariantList asList = res.toList();
1860 if (asList.size() >= 2) {
1861 if (asList.at(1).canConvert<QByteArray>()) {
1862 errMsg = m_c->m_dev->decode(asList.at(1).toByteArray());
1863 } else {
1864 errMsg = tr("Received unsupported Neovim error type");
1865 }
1866 }
1867
1868 switch(fun) {
1869 case NeovimApi6::NEOVIM_FN_NVIM_BUF_LINE_COUNT:
1870 emit err_nvim_buf_line_count(errMsg, res);
1871 break;
1872 case NeovimApi6::NEOVIM_FN_BUFFER_GET_LINE:
1873 emit err_buffer_get_line(errMsg, res);
1874 break;
1875 case NeovimApi6::NEOVIM_FN_NVIM_BUF_ATTACH:
1876 emit err_nvim_buf_attach(errMsg, res);
1877 break;
1878 case NeovimApi6::NEOVIM_FN_NVIM_BUF_DETACH:
1879 emit err_nvim_buf_detach(errMsg, res);
1880 break;
1881 case NeovimApi6::NEOVIM_FN_BUFFER_SET_LINE:
1882 emit err_buffer_set_line(errMsg, res);
1883 break;
1884 case NeovimApi6::NEOVIM_FN_BUFFER_DEL_LINE:
1885 emit err_buffer_del_line(errMsg, res);
1886 break;
1887 case NeovimApi6::NEOVIM_FN_BUFFER_GET_LINE_SLICE:
1888 emit err_buffer_get_line_slice(errMsg, res);
1889 break;
1890 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_LINES:
1891 emit err_nvim_buf_get_lines(errMsg, res);
1892 break;
1893 case NeovimApi6::NEOVIM_FN_BUFFER_SET_LINE_SLICE:
1894 emit err_buffer_set_line_slice(errMsg, res);
1895 break;
1896 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_LINES:
1897 emit err_nvim_buf_set_lines(errMsg, res);
1898 break;
1899 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_OFFSET:
1900 emit err_nvim_buf_get_offset(errMsg, res);
1901 break;
1902 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_VAR:
1903 emit err_nvim_buf_get_var(errMsg, res);
1904 break;
1905 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_CHANGEDTICK:
1906 emit err_nvim_buf_get_changedtick(errMsg, res);
1907 break;
1908 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_KEYMAP:
1909 emit err_nvim_buf_get_keymap(errMsg, res);
1910 break;
1911 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_COMMANDS:
1912 emit err_nvim_buf_get_commands(errMsg, res);
1913 break;
1914 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_VAR:
1915 emit err_nvim_buf_set_var(errMsg, res);
1916 break;
1917 case NeovimApi6::NEOVIM_FN_NVIM_BUF_DEL_VAR:
1918 emit err_nvim_buf_del_var(errMsg, res);
1919 break;
1920 case NeovimApi6::NEOVIM_FN_BUFFER_SET_VAR:
1921 emit err_buffer_set_var(errMsg, res);
1922 break;
1923 case NeovimApi6::NEOVIM_FN_BUFFER_DEL_VAR:
1924 emit err_buffer_del_var(errMsg, res);
1925 break;
1926 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_OPTION:
1927 emit err_nvim_buf_get_option(errMsg, res);
1928 break;
1929 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_OPTION:
1930 emit err_nvim_buf_set_option(errMsg, res);
1931 break;
1932 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_NUMBER:
1933 emit err_nvim_buf_get_number(errMsg, res);
1934 break;
1935 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_NAME:
1936 emit err_nvim_buf_get_name(errMsg, res);
1937 break;
1938 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_NAME:
1939 emit err_nvim_buf_set_name(errMsg, res);
1940 break;
1941 case NeovimApi6::NEOVIM_FN_NVIM_BUF_IS_LOADED:
1942 emit err_nvim_buf_is_loaded(errMsg, res);
1943 break;
1944 case NeovimApi6::NEOVIM_FN_NVIM_BUF_IS_VALID:
1945 emit err_nvim_buf_is_valid(errMsg, res);
1946 break;
1947 case NeovimApi6::NEOVIM_FN_BUFFER_INSERT:
1948 emit err_buffer_insert(errMsg, res);
1949 break;
1950 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_MARK:
1951 emit err_nvim_buf_get_mark(errMsg, res);
1952 break;
1953 case NeovimApi6::NEOVIM_FN_NVIM_BUF_ADD_HIGHLIGHT:
1954 emit err_nvim_buf_add_highlight(errMsg, res);
1955 break;
1956 case NeovimApi6::NEOVIM_FN_NVIM_BUF_CLEAR_NAMESPACE:
1957 emit err_nvim_buf_clear_namespace(errMsg, res);
1958 break;
1959 case NeovimApi6::NEOVIM_FN_NVIM_BUF_CLEAR_HIGHLIGHT:
1960 emit err_nvim_buf_clear_highlight(errMsg, res);
1961 break;
1962 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_VIRTUAL_TEXT:
1963 emit err_nvim_buf_set_virtual_text(errMsg, res);
1964 break;
1965 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_LIST_WINS:
1966 emit err_nvim_tabpage_list_wins(errMsg, res);
1967 break;
1968 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_VAR:
1969 emit err_nvim_tabpage_get_var(errMsg, res);
1970 break;
1971 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_SET_VAR:
1972 emit err_nvim_tabpage_set_var(errMsg, res);
1973 break;
1974 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_DEL_VAR:
1975 emit err_nvim_tabpage_del_var(errMsg, res);
1976 break;
1977 case NeovimApi6::NEOVIM_FN_TABPAGE_SET_VAR:
1978 emit err_tabpage_set_var(errMsg, res);
1979 break;
1980 case NeovimApi6::NEOVIM_FN_TABPAGE_DEL_VAR:
1981 emit err_tabpage_del_var(errMsg, res);
1982 break;
1983 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_WIN:
1984 emit err_nvim_tabpage_get_win(errMsg, res);
1985 break;
1986 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_NUMBER:
1987 emit err_nvim_tabpage_get_number(errMsg, res);
1988 break;
1989 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_IS_VALID:
1990 emit err_nvim_tabpage_is_valid(errMsg, res);
1991 break;
1992 case NeovimApi6::NEOVIM_FN_NVIM_UI_ATTACH:
1993 emit err_nvim_ui_attach(errMsg, res);
1994 break;
1995 case NeovimApi6::NEOVIM_FN_UI_ATTACH:
1996 emit err_ui_attach(errMsg, res);
1997 break;
1998 case NeovimApi6::NEOVIM_FN_NVIM_UI_DETACH:
1999 emit err_nvim_ui_detach(errMsg, res);
2000 break;
2001 case NeovimApi6::NEOVIM_FN_NVIM_UI_TRY_RESIZE:
2002 emit err_nvim_ui_try_resize(errMsg, res);
2003 break;
2004 case NeovimApi6::NEOVIM_FN_NVIM_UI_SET_OPTION:
2005 emit err_nvim_ui_set_option(errMsg, res);
2006 break;
2007 case NeovimApi6::NEOVIM_FN_NVIM_UI_TRY_RESIZE_GRID:
2008 emit err_nvim_ui_try_resize_grid(errMsg, res);
2009 break;
2010 case NeovimApi6::NEOVIM_FN_NVIM_COMMAND:
2011 emit err_nvim_command(errMsg, res);
2012 break;
2013 case NeovimApi6::NEOVIM_FN_NVIM_GET_HL_BY_NAME:
2014 emit err_nvim_get_hl_by_name(errMsg, res);
2015 break;
2016 case NeovimApi6::NEOVIM_FN_NVIM_GET_HL_BY_ID:
2017 emit err_nvim_get_hl_by_id(errMsg, res);
2018 break;
2019 case NeovimApi6::NEOVIM_FN_NVIM_FEEDKEYS:
2020 emit err_nvim_feedkeys(errMsg, res);
2021 break;
2022 case NeovimApi6::NEOVIM_FN_NVIM_INPUT:
2023 emit err_nvim_input(errMsg, res);
2024 break;
2025 case NeovimApi6::NEOVIM_FN_NVIM_REPLACE_TERMCODES:
2026 emit err_nvim_replace_termcodes(errMsg, res);
2027 break;
2028 case NeovimApi6::NEOVIM_FN_NVIM_COMMAND_OUTPUT:
2029 emit err_nvim_command_output(errMsg, res);
2030 break;
2031 case NeovimApi6::NEOVIM_FN_NVIM_EVAL:
2032 emit err_nvim_eval(errMsg, res);
2033 break;
2034 case NeovimApi6::NEOVIM_FN_NVIM_EXECUTE_LUA:
2035 emit err_nvim_execute_lua(errMsg, res);
2036 break;
2037 case NeovimApi6::NEOVIM_FN_NVIM_CALL_FUNCTION:
2038 emit err_nvim_call_function(errMsg, res);
2039 break;
2040 case NeovimApi6::NEOVIM_FN_NVIM_CALL_DICT_FUNCTION:
2041 emit err_nvim_call_dict_function(errMsg, res);
2042 break;
2043 case NeovimApi6::NEOVIM_FN_NVIM_STRWIDTH:
2044 emit err_nvim_strwidth(errMsg, res);
2045 break;
2046 case NeovimApi6::NEOVIM_FN_NVIM_LIST_RUNTIME_PATHS:
2047 emit err_nvim_list_runtime_paths(errMsg, res);
2048 break;
2049 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_DIR:
2050 emit err_nvim_set_current_dir(errMsg, res);
2051 break;
2052 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_LINE:
2053 emit err_nvim_get_current_line(errMsg, res);
2054 break;
2055 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_LINE:
2056 emit err_nvim_set_current_line(errMsg, res);
2057 break;
2058 case NeovimApi6::NEOVIM_FN_NVIM_DEL_CURRENT_LINE:
2059 emit err_nvim_del_current_line(errMsg, res);
2060 break;
2061 case NeovimApi6::NEOVIM_FN_NVIM_GET_VAR:
2062 emit err_nvim_get_var(errMsg, res);
2063 break;
2064 case NeovimApi6::NEOVIM_FN_NVIM_SET_VAR:
2065 emit err_nvim_set_var(errMsg, res);
2066 break;
2067 case NeovimApi6::NEOVIM_FN_NVIM_DEL_VAR:
2068 emit err_nvim_del_var(errMsg, res);
2069 break;
2070 case NeovimApi6::NEOVIM_FN_VIM_SET_VAR:
2071 emit err_vim_set_var(errMsg, res);
2072 break;
2073 case NeovimApi6::NEOVIM_FN_VIM_DEL_VAR:
2074 emit err_vim_del_var(errMsg, res);
2075 break;
2076 case NeovimApi6::NEOVIM_FN_NVIM_GET_VVAR:
2077 emit err_nvim_get_vvar(errMsg, res);
2078 break;
2079 case NeovimApi6::NEOVIM_FN_NVIM_GET_OPTION:
2080 emit err_nvim_get_option(errMsg, res);
2081 break;
2082 case NeovimApi6::NEOVIM_FN_NVIM_SET_OPTION:
2083 emit err_nvim_set_option(errMsg, res);
2084 break;
2085 case NeovimApi6::NEOVIM_FN_NVIM_OUT_WRITE:
2086 emit err_nvim_out_write(errMsg, res);
2087 break;
2088 case NeovimApi6::NEOVIM_FN_NVIM_ERR_WRITE:
2089 emit err_nvim_err_write(errMsg, res);
2090 break;
2091 case NeovimApi6::NEOVIM_FN_NVIM_ERR_WRITELN:
2092 emit err_nvim_err_writeln(errMsg, res);
2093 break;
2094 case NeovimApi6::NEOVIM_FN_NVIM_LIST_BUFS:
2095 emit err_nvim_list_bufs(errMsg, res);
2096 break;
2097 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_BUF:
2098 emit err_nvim_get_current_buf(errMsg, res);
2099 break;
2100 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_BUF:
2101 emit err_nvim_set_current_buf(errMsg, res);
2102 break;
2103 case NeovimApi6::NEOVIM_FN_NVIM_LIST_WINS:
2104 emit err_nvim_list_wins(errMsg, res);
2105 break;
2106 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_WIN:
2107 emit err_nvim_get_current_win(errMsg, res);
2108 break;
2109 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_WIN:
2110 emit err_nvim_set_current_win(errMsg, res);
2111 break;
2112 case NeovimApi6::NEOVIM_FN_NVIM_LIST_TABPAGES:
2113 emit err_nvim_list_tabpages(errMsg, res);
2114 break;
2115 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_TABPAGE:
2116 emit err_nvim_get_current_tabpage(errMsg, res);
2117 break;
2118 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_TABPAGE:
2119 emit err_nvim_set_current_tabpage(errMsg, res);
2120 break;
2121 case NeovimApi6::NEOVIM_FN_NVIM_CREATE_NAMESPACE:
2122 emit err_nvim_create_namespace(errMsg, res);
2123 break;
2124 case NeovimApi6::NEOVIM_FN_NVIM_GET_NAMESPACES:
2125 emit err_nvim_get_namespaces(errMsg, res);
2126 break;
2127 case NeovimApi6::NEOVIM_FN_NVIM_SUBSCRIBE:
2128 emit err_nvim_subscribe(errMsg, res);
2129 break;
2130 case NeovimApi6::NEOVIM_FN_NVIM_UNSUBSCRIBE:
2131 emit err_nvim_unsubscribe(errMsg, res);
2132 break;
2133 case NeovimApi6::NEOVIM_FN_NVIM_GET_COLOR_BY_NAME:
2134 emit err_nvim_get_color_by_name(errMsg, res);
2135 break;
2136 case NeovimApi6::NEOVIM_FN_NVIM_GET_COLOR_MAP:
2137 emit err_nvim_get_color_map(errMsg, res);
2138 break;
2139 case NeovimApi6::NEOVIM_FN_NVIM_GET_MODE:
2140 emit err_nvim_get_mode(errMsg, res);
2141 break;
2142 case NeovimApi6::NEOVIM_FN_NVIM_GET_KEYMAP:
2143 emit err_nvim_get_keymap(errMsg, res);
2144 break;
2145 case NeovimApi6::NEOVIM_FN_NVIM_GET_COMMANDS:
2146 emit err_nvim_get_commands(errMsg, res);
2147 break;
2148 case NeovimApi6::NEOVIM_FN_NVIM_GET_API_INFO:
2149 emit err_nvim_get_api_info(errMsg, res);
2150 break;
2151 case NeovimApi6::NEOVIM_FN_NVIM_SET_CLIENT_INFO:
2152 emit err_nvim_set_client_info(errMsg, res);
2153 break;
2154 case NeovimApi6::NEOVIM_FN_NVIM_GET_CHAN_INFO:
2155 emit err_nvim_get_chan_info(errMsg, res);
2156 break;
2157 case NeovimApi6::NEOVIM_FN_NVIM_LIST_CHANS:
2158 emit err_nvim_list_chans(errMsg, res);
2159 break;
2160 case NeovimApi6::NEOVIM_FN_NVIM_CALL_ATOMIC:
2161 emit err_nvim_call_atomic(errMsg, res);
2162 break;
2163 case NeovimApi6::NEOVIM_FN_NVIM_PARSE_EXPRESSION:
2164 emit err_nvim_parse_expression(errMsg, res);
2165 break;
2166 case NeovimApi6::NEOVIM_FN_NVIM_LIST_UIS:
2167 emit err_nvim_list_uis(errMsg, res);
2168 break;
2169 case NeovimApi6::NEOVIM_FN_NVIM_GET_PROC_CHILDREN:
2170 emit err_nvim_get_proc_children(errMsg, res);
2171 break;
2172 case NeovimApi6::NEOVIM_FN_NVIM_GET_PROC:
2173 emit err_nvim_get_proc(errMsg, res);
2174 break;
2175 case NeovimApi6::NEOVIM_FN_NVIM_SELECT_POPUPMENU_ITEM:
2176 emit err_nvim_select_popupmenu_item(errMsg, res);
2177 break;
2178 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_BUF:
2179 emit err_nvim_win_get_buf(errMsg, res);
2180 break;
2181 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_BUF:
2182 emit err_nvim_win_set_buf(errMsg, res);
2183 break;
2184 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_CURSOR:
2185 emit err_nvim_win_get_cursor(errMsg, res);
2186 break;
2187 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_CURSOR:
2188 emit err_nvim_win_set_cursor(errMsg, res);
2189 break;
2190 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_HEIGHT:
2191 emit err_nvim_win_get_height(errMsg, res);
2192 break;
2193 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_HEIGHT:
2194 emit err_nvim_win_set_height(errMsg, res);
2195 break;
2196 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_WIDTH:
2197 emit err_nvim_win_get_width(errMsg, res);
2198 break;
2199 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_WIDTH:
2200 emit err_nvim_win_set_width(errMsg, res);
2201 break;
2202 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_VAR:
2203 emit err_nvim_win_get_var(errMsg, res);
2204 break;
2205 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_VAR:
2206 emit err_nvim_win_set_var(errMsg, res);
2207 break;
2208 case NeovimApi6::NEOVIM_FN_NVIM_WIN_DEL_VAR:
2209 emit err_nvim_win_del_var(errMsg, res);
2210 break;
2211 case NeovimApi6::NEOVIM_FN_WINDOW_SET_VAR:
2212 emit err_window_set_var(errMsg, res);
2213 break;
2214 case NeovimApi6::NEOVIM_FN_WINDOW_DEL_VAR:
2215 emit err_window_del_var(errMsg, res);
2216 break;
2217 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_OPTION:
2218 emit err_nvim_win_get_option(errMsg, res);
2219 break;
2220 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_OPTION:
2221 emit err_nvim_win_set_option(errMsg, res);
2222 break;
2223 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_POSITION:
2224 emit err_nvim_win_get_position(errMsg, res);
2225 break;
2226 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_TABPAGE:
2227 emit err_nvim_win_get_tabpage(errMsg, res);
2228 break;
2229 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_NUMBER:
2230 emit err_nvim_win_get_number(errMsg, res);
2231 break;
2232 case NeovimApi6::NEOVIM_FN_NVIM_WIN_IS_VALID:
2233 emit err_nvim_win_is_valid(errMsg, res);
2234 break;
2235 case NeovimApi6::NEOVIM_FN_BUFFER_LINE_COUNT:
2236 emit err_buffer_line_count(errMsg, res);
2237 break;
2238 case NeovimApi6::NEOVIM_FN_BUFFER_GET_LINES:
2239 emit err_buffer_get_lines(errMsg, res);
2240 break;
2241 case NeovimApi6::NEOVIM_FN_BUFFER_SET_LINES:
2242 emit err_buffer_set_lines(errMsg, res);
2243 break;
2244 case NeovimApi6::NEOVIM_FN_BUFFER_GET_VAR:
2245 emit err_buffer_get_var(errMsg, res);
2246 break;
2247 case NeovimApi6::NEOVIM_FN_BUFFER_GET_OPTION:
2248 emit err_buffer_get_option(errMsg, res);
2249 break;
2250 case NeovimApi6::NEOVIM_FN_BUFFER_SET_OPTION:
2251 emit err_buffer_set_option(errMsg, res);
2252 break;
2253 case NeovimApi6::NEOVIM_FN_BUFFER_GET_NUMBER:
2254 emit err_buffer_get_number(errMsg, res);
2255 break;
2256 case NeovimApi6::NEOVIM_FN_BUFFER_GET_NAME:
2257 emit err_buffer_get_name(errMsg, res);
2258 break;
2259 case NeovimApi6::NEOVIM_FN_BUFFER_SET_NAME:
2260 emit err_buffer_set_name(errMsg, res);
2261 break;
2262 case NeovimApi6::NEOVIM_FN_BUFFER_IS_VALID:
2263 emit err_buffer_is_valid(errMsg, res);
2264 break;
2265 case NeovimApi6::NEOVIM_FN_BUFFER_GET_MARK:
2266 emit err_buffer_get_mark(errMsg, res);
2267 break;
2268 case NeovimApi6::NEOVIM_FN_BUFFER_ADD_HIGHLIGHT:
2269 emit err_buffer_add_highlight(errMsg, res);
2270 break;
2271 case NeovimApi6::NEOVIM_FN_BUFFER_CLEAR_HIGHLIGHT:
2272 emit err_buffer_clear_highlight(errMsg, res);
2273 break;
2274 case NeovimApi6::NEOVIM_FN_TABPAGE_GET_WINDOWS:
2275 emit err_tabpage_get_windows(errMsg, res);
2276 break;
2277 case NeovimApi6::NEOVIM_FN_TABPAGE_GET_VAR:
2278 emit err_tabpage_get_var(errMsg, res);
2279 break;
2280 case NeovimApi6::NEOVIM_FN_TABPAGE_GET_WINDOW:
2281 emit err_tabpage_get_window(errMsg, res);
2282 break;
2283 case NeovimApi6::NEOVIM_FN_TABPAGE_IS_VALID:
2284 emit err_tabpage_is_valid(errMsg, res);
2285 break;
2286 case NeovimApi6::NEOVIM_FN_UI_DETACH:
2287 emit err_ui_detach(errMsg, res);
2288 break;
2289 case NeovimApi6::NEOVIM_FN_UI_TRY_RESIZE:
2290 emit err_ui_try_resize(errMsg, res);
2291 break;
2292 case NeovimApi6::NEOVIM_FN_VIM_COMMAND:
2293 emit err_vim_command(errMsg, res);
2294 break;
2295 case NeovimApi6::NEOVIM_FN_VIM_FEEDKEYS:
2296 emit err_vim_feedkeys(errMsg, res);
2297 break;
2298 case NeovimApi6::NEOVIM_FN_VIM_INPUT:
2299 emit err_vim_input(errMsg, res);
2300 break;
2301 case NeovimApi6::NEOVIM_FN_VIM_REPLACE_TERMCODES:
2302 emit err_vim_replace_termcodes(errMsg, res);
2303 break;
2304 case NeovimApi6::NEOVIM_FN_VIM_COMMAND_OUTPUT:
2305 emit err_vim_command_output(errMsg, res);
2306 break;
2307 case NeovimApi6::NEOVIM_FN_VIM_EVAL:
2308 emit err_vim_eval(errMsg, res);
2309 break;
2310 case NeovimApi6::NEOVIM_FN_VIM_CALL_FUNCTION:
2311 emit err_vim_call_function(errMsg, res);
2312 break;
2313 case NeovimApi6::NEOVIM_FN_VIM_STRWIDTH:
2314 emit err_vim_strwidth(errMsg, res);
2315 break;
2316 case NeovimApi6::NEOVIM_FN_VIM_LIST_RUNTIME_PATHS:
2317 emit err_vim_list_runtime_paths(errMsg, res);
2318 break;
2319 case NeovimApi6::NEOVIM_FN_VIM_CHANGE_DIRECTORY:
2320 emit err_vim_change_directory(errMsg, res);
2321 break;
2322 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_LINE:
2323 emit err_vim_get_current_line(errMsg, res);
2324 break;
2325 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_LINE:
2326 emit err_vim_set_current_line(errMsg, res);
2327 break;
2328 case NeovimApi6::NEOVIM_FN_VIM_DEL_CURRENT_LINE:
2329 emit err_vim_del_current_line(errMsg, res);
2330 break;
2331 case NeovimApi6::NEOVIM_FN_VIM_GET_VAR:
2332 emit err_vim_get_var(errMsg, res);
2333 break;
2334 case NeovimApi6::NEOVIM_FN_VIM_GET_VVAR:
2335 emit err_vim_get_vvar(errMsg, res);
2336 break;
2337 case NeovimApi6::NEOVIM_FN_VIM_GET_OPTION:
2338 emit err_vim_get_option(errMsg, res);
2339 break;
2340 case NeovimApi6::NEOVIM_FN_VIM_SET_OPTION:
2341 emit err_vim_set_option(errMsg, res);
2342 break;
2343 case NeovimApi6::NEOVIM_FN_VIM_OUT_WRITE:
2344 emit err_vim_out_write(errMsg, res);
2345 break;
2346 case NeovimApi6::NEOVIM_FN_VIM_ERR_WRITE:
2347 emit err_vim_err_write(errMsg, res);
2348 break;
2349 case NeovimApi6::NEOVIM_FN_VIM_REPORT_ERROR:
2350 emit err_vim_report_error(errMsg, res);
2351 break;
2352 case NeovimApi6::NEOVIM_FN_VIM_GET_BUFFERS:
2353 emit err_vim_get_buffers(errMsg, res);
2354 break;
2355 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_BUFFER:
2356 emit err_vim_get_current_buffer(errMsg, res);
2357 break;
2358 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_BUFFER:
2359 emit err_vim_set_current_buffer(errMsg, res);
2360 break;
2361 case NeovimApi6::NEOVIM_FN_VIM_GET_WINDOWS:
2362 emit err_vim_get_windows(errMsg, res);
2363 break;
2364 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_WINDOW:
2365 emit err_vim_get_current_window(errMsg, res);
2366 break;
2367 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_WINDOW:
2368 emit err_vim_set_current_window(errMsg, res);
2369 break;
2370 case NeovimApi6::NEOVIM_FN_VIM_GET_TABPAGES:
2371 emit err_vim_get_tabpages(errMsg, res);
2372 break;
2373 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_TABPAGE:
2374 emit err_vim_get_current_tabpage(errMsg, res);
2375 break;
2376 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_TABPAGE:
2377 emit err_vim_set_current_tabpage(errMsg, res);
2378 break;
2379 case NeovimApi6::NEOVIM_FN_VIM_SUBSCRIBE:
2380 emit err_vim_subscribe(errMsg, res);
2381 break;
2382 case NeovimApi6::NEOVIM_FN_VIM_UNSUBSCRIBE:
2383 emit err_vim_unsubscribe(errMsg, res);
2384 break;
2385 case NeovimApi6::NEOVIM_FN_VIM_NAME_TO_COLOR:
2386 emit err_vim_name_to_color(errMsg, res);
2387 break;
2388 case NeovimApi6::NEOVIM_FN_VIM_GET_COLOR_MAP:
2389 emit err_vim_get_color_map(errMsg, res);
2390 break;
2391 case NeovimApi6::NEOVIM_FN_WINDOW_GET_BUFFER:
2392 emit err_window_get_buffer(errMsg, res);
2393 break;
2394 case NeovimApi6::NEOVIM_FN_WINDOW_GET_CURSOR:
2395 emit err_window_get_cursor(errMsg, res);
2396 break;
2397 case NeovimApi6::NEOVIM_FN_WINDOW_SET_CURSOR:
2398 emit err_window_set_cursor(errMsg, res);
2399 break;
2400 case NeovimApi6::NEOVIM_FN_WINDOW_GET_HEIGHT:
2401 emit err_window_get_height(errMsg, res);
2402 break;
2403 case NeovimApi6::NEOVIM_FN_WINDOW_SET_HEIGHT:
2404 emit err_window_set_height(errMsg, res);
2405 break;
2406 case NeovimApi6::NEOVIM_FN_WINDOW_GET_WIDTH:
2407 emit err_window_get_width(errMsg, res);
2408 break;
2409 case NeovimApi6::NEOVIM_FN_WINDOW_SET_WIDTH:
2410 emit err_window_set_width(errMsg, res);
2411 break;
2412 case NeovimApi6::NEOVIM_FN_WINDOW_GET_VAR:
2413 emit err_window_get_var(errMsg, res);
2414 break;
2415 case NeovimApi6::NEOVIM_FN_WINDOW_GET_OPTION:
2416 emit err_window_get_option(errMsg, res);
2417 break;
2418 case NeovimApi6::NEOVIM_FN_WINDOW_SET_OPTION:
2419 emit err_window_set_option(errMsg, res);
2420 break;
2421 case NeovimApi6::NEOVIM_FN_WINDOW_GET_POSITION:
2422 emit err_window_get_position(errMsg, res);
2423 break;
2424 case NeovimApi6::NEOVIM_FN_WINDOW_GET_TABPAGE:
2425 emit err_window_get_tabpage(errMsg, res);
2426 break;
2427 case NeovimApi6::NEOVIM_FN_WINDOW_IS_VALID:
2428 emit err_window_is_valid(errMsg, res);
2429 break;
2430 default:
2431 m_c->setError(NeovimConnector::RuntimeMsgpackError, QString("Received error for function that should not fail: %s").arg(fun));
2432 }
2433 }
2434
handleResponse(quint32 msgid,quint64 fun,const QVariant & res)2435 void NeovimApi6::handleResponse(quint32 msgid, quint64 fun, const QVariant& res)
2436 {
2437 switch(fun) {
2438 case NeovimApi6::NEOVIM_FN_NVIM_BUF_LINE_COUNT:
2439 {
2440 int64_t data;
2441 if (decode(res, data)) {
2442 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_line_count");
2443 return;
2444 } else {
2445 emit on_nvim_buf_line_count(data);
2446 }
2447
2448 }
2449 break;
2450 case NeovimApi6::NEOVIM_FN_BUFFER_GET_LINE:
2451 {
2452 QByteArray data;
2453 if (decode(res, data)) {
2454 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_line");
2455 return;
2456 } else {
2457 emit on_buffer_get_line(data);
2458 }
2459
2460 }
2461 break;
2462 case NeovimApi6::NEOVIM_FN_NVIM_BUF_ATTACH:
2463 {
2464 bool data;
2465 if (decode(res, data)) {
2466 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_attach");
2467 return;
2468 } else {
2469 emit on_nvim_buf_attach(data);
2470 }
2471
2472 }
2473 break;
2474 case NeovimApi6::NEOVIM_FN_NVIM_BUF_DETACH:
2475 {
2476 bool data;
2477 if (decode(res, data)) {
2478 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_detach");
2479 return;
2480 } else {
2481 emit on_nvim_buf_detach(data);
2482 }
2483
2484 }
2485 break;
2486 case NeovimApi6::NEOVIM_FN_BUFFER_SET_LINE:
2487 {
2488 emit on_buffer_set_line();
2489
2490 }
2491 break;
2492 case NeovimApi6::NEOVIM_FN_BUFFER_DEL_LINE:
2493 {
2494 emit on_buffer_del_line();
2495
2496 }
2497 break;
2498 case NeovimApi6::NEOVIM_FN_BUFFER_GET_LINE_SLICE:
2499 {
2500 QList<QByteArray> data;
2501 if (decode(res, data)) {
2502 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_line_slice");
2503 return;
2504 } else {
2505 emit on_buffer_get_line_slice(data);
2506 }
2507
2508 }
2509 break;
2510 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_LINES:
2511 {
2512 QList<QByteArray> data;
2513 if (decode(res, data)) {
2514 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_lines");
2515 return;
2516 } else {
2517 emit on_nvim_buf_get_lines(data);
2518 }
2519
2520 }
2521 break;
2522 case NeovimApi6::NEOVIM_FN_BUFFER_SET_LINE_SLICE:
2523 {
2524 emit on_buffer_set_line_slice();
2525
2526 }
2527 break;
2528 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_LINES:
2529 {
2530 emit on_nvim_buf_set_lines();
2531
2532 }
2533 break;
2534 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_OFFSET:
2535 {
2536 int64_t data;
2537 if (decode(res, data)) {
2538 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_offset");
2539 return;
2540 } else {
2541 emit on_nvim_buf_get_offset(data);
2542 }
2543
2544 }
2545 break;
2546 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_VAR:
2547 {
2548 QVariant data;
2549 if (decode(res, data)) {
2550 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_var");
2551 return;
2552 } else {
2553 emit on_nvim_buf_get_var(data);
2554 }
2555
2556 }
2557 break;
2558 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_CHANGEDTICK:
2559 {
2560 int64_t data;
2561 if (decode(res, data)) {
2562 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_changedtick");
2563 return;
2564 } else {
2565 emit on_nvim_buf_get_changedtick(data);
2566 }
2567
2568 }
2569 break;
2570 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_KEYMAP:
2571 {
2572 QList<QVariantMap> data;
2573 if (decode(res, data)) {
2574 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_keymap");
2575 return;
2576 } else {
2577 emit on_nvim_buf_get_keymap(data);
2578 }
2579
2580 }
2581 break;
2582 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_COMMANDS:
2583 {
2584 QVariantMap data;
2585 if (decode(res, data)) {
2586 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_commands");
2587 return;
2588 } else {
2589 emit on_nvim_buf_get_commands(data);
2590 }
2591
2592 }
2593 break;
2594 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_VAR:
2595 {
2596 emit on_nvim_buf_set_var();
2597
2598 }
2599 break;
2600 case NeovimApi6::NEOVIM_FN_NVIM_BUF_DEL_VAR:
2601 {
2602 emit on_nvim_buf_del_var();
2603
2604 }
2605 break;
2606 case NeovimApi6::NEOVIM_FN_BUFFER_SET_VAR:
2607 {
2608 QVariant data;
2609 if (decode(res, data)) {
2610 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_set_var");
2611 return;
2612 } else {
2613 emit on_buffer_set_var(data);
2614 }
2615
2616 }
2617 break;
2618 case NeovimApi6::NEOVIM_FN_BUFFER_DEL_VAR:
2619 {
2620 QVariant data;
2621 if (decode(res, data)) {
2622 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_del_var");
2623 return;
2624 } else {
2625 emit on_buffer_del_var(data);
2626 }
2627
2628 }
2629 break;
2630 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_OPTION:
2631 {
2632 QVariant data;
2633 if (decode(res, data)) {
2634 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_option");
2635 return;
2636 } else {
2637 emit on_nvim_buf_get_option(data);
2638 }
2639
2640 }
2641 break;
2642 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_OPTION:
2643 {
2644 emit on_nvim_buf_set_option();
2645
2646 }
2647 break;
2648 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_NUMBER:
2649 {
2650 int64_t data;
2651 if (decode(res, data)) {
2652 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_number");
2653 return;
2654 } else {
2655 emit on_nvim_buf_get_number(data);
2656 }
2657
2658 }
2659 break;
2660 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_NAME:
2661 {
2662 QByteArray data;
2663 if (decode(res, data)) {
2664 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_name");
2665 return;
2666 } else {
2667 emit on_nvim_buf_get_name(data);
2668 }
2669
2670 }
2671 break;
2672 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_NAME:
2673 {
2674 emit on_nvim_buf_set_name();
2675
2676 }
2677 break;
2678 case NeovimApi6::NEOVIM_FN_NVIM_BUF_IS_LOADED:
2679 {
2680 bool data;
2681 if (decode(res, data)) {
2682 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_is_loaded");
2683 return;
2684 } else {
2685 emit on_nvim_buf_is_loaded(data);
2686 }
2687
2688 }
2689 break;
2690 case NeovimApi6::NEOVIM_FN_NVIM_BUF_IS_VALID:
2691 {
2692 bool data;
2693 if (decode(res, data)) {
2694 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_is_valid");
2695 return;
2696 } else {
2697 emit on_nvim_buf_is_valid(data);
2698 }
2699
2700 }
2701 break;
2702 case NeovimApi6::NEOVIM_FN_BUFFER_INSERT:
2703 {
2704 emit on_buffer_insert();
2705
2706 }
2707 break;
2708 case NeovimApi6::NEOVIM_FN_NVIM_BUF_GET_MARK:
2709 {
2710 QPoint data;
2711 if (decode(res, data)) {
2712 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_get_mark");
2713 return;
2714 } else {
2715 emit on_nvim_buf_get_mark(data);
2716 }
2717
2718 }
2719 break;
2720 case NeovimApi6::NEOVIM_FN_NVIM_BUF_ADD_HIGHLIGHT:
2721 {
2722 int64_t data;
2723 if (decode(res, data)) {
2724 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_add_highlight");
2725 return;
2726 } else {
2727 emit on_nvim_buf_add_highlight(data);
2728 }
2729
2730 }
2731 break;
2732 case NeovimApi6::NEOVIM_FN_NVIM_BUF_CLEAR_NAMESPACE:
2733 {
2734 emit on_nvim_buf_clear_namespace();
2735
2736 }
2737 break;
2738 case NeovimApi6::NEOVIM_FN_NVIM_BUF_CLEAR_HIGHLIGHT:
2739 {
2740 emit on_nvim_buf_clear_highlight();
2741
2742 }
2743 break;
2744 case NeovimApi6::NEOVIM_FN_NVIM_BUF_SET_VIRTUAL_TEXT:
2745 {
2746 int64_t data;
2747 if (decode(res, data)) {
2748 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_buf_set_virtual_text");
2749 return;
2750 } else {
2751 emit on_nvim_buf_set_virtual_text(data);
2752 }
2753
2754 }
2755 break;
2756 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_LIST_WINS:
2757 {
2758 QList<int64_t> data;
2759 if (decode(res, data)) {
2760 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_tabpage_list_wins");
2761 return;
2762 } else {
2763 emit on_nvim_tabpage_list_wins(data);
2764 }
2765
2766 }
2767 break;
2768 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_VAR:
2769 {
2770 QVariant data;
2771 if (decode(res, data)) {
2772 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_tabpage_get_var");
2773 return;
2774 } else {
2775 emit on_nvim_tabpage_get_var(data);
2776 }
2777
2778 }
2779 break;
2780 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_SET_VAR:
2781 {
2782 emit on_nvim_tabpage_set_var();
2783
2784 }
2785 break;
2786 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_DEL_VAR:
2787 {
2788 emit on_nvim_tabpage_del_var();
2789
2790 }
2791 break;
2792 case NeovimApi6::NEOVIM_FN_TABPAGE_SET_VAR:
2793 {
2794 QVariant data;
2795 if (decode(res, data)) {
2796 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for tabpage_set_var");
2797 return;
2798 } else {
2799 emit on_tabpage_set_var(data);
2800 }
2801
2802 }
2803 break;
2804 case NeovimApi6::NEOVIM_FN_TABPAGE_DEL_VAR:
2805 {
2806 QVariant data;
2807 if (decode(res, data)) {
2808 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for tabpage_del_var");
2809 return;
2810 } else {
2811 emit on_tabpage_del_var(data);
2812 }
2813
2814 }
2815 break;
2816 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_WIN:
2817 {
2818 int64_t data;
2819 if (decode(res, data)) {
2820 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_tabpage_get_win");
2821 return;
2822 } else {
2823 emit on_nvim_tabpage_get_win(data);
2824 }
2825
2826 }
2827 break;
2828 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_GET_NUMBER:
2829 {
2830 int64_t data;
2831 if (decode(res, data)) {
2832 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_tabpage_get_number");
2833 return;
2834 } else {
2835 emit on_nvim_tabpage_get_number(data);
2836 }
2837
2838 }
2839 break;
2840 case NeovimApi6::NEOVIM_FN_NVIM_TABPAGE_IS_VALID:
2841 {
2842 bool data;
2843 if (decode(res, data)) {
2844 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_tabpage_is_valid");
2845 return;
2846 } else {
2847 emit on_nvim_tabpage_is_valid(data);
2848 }
2849
2850 }
2851 break;
2852 case NeovimApi6::NEOVIM_FN_NVIM_UI_ATTACH:
2853 {
2854 emit on_nvim_ui_attach();
2855
2856 }
2857 break;
2858 case NeovimApi6::NEOVIM_FN_UI_ATTACH:
2859 {
2860 emit on_ui_attach();
2861
2862 }
2863 break;
2864 case NeovimApi6::NEOVIM_FN_NVIM_UI_DETACH:
2865 {
2866 emit on_nvim_ui_detach();
2867
2868 }
2869 break;
2870 case NeovimApi6::NEOVIM_FN_NVIM_UI_TRY_RESIZE:
2871 {
2872 emit on_nvim_ui_try_resize();
2873
2874 }
2875 break;
2876 case NeovimApi6::NEOVIM_FN_NVIM_UI_SET_OPTION:
2877 {
2878 emit on_nvim_ui_set_option();
2879
2880 }
2881 break;
2882 case NeovimApi6::NEOVIM_FN_NVIM_UI_TRY_RESIZE_GRID:
2883 {
2884 emit on_nvim_ui_try_resize_grid();
2885
2886 }
2887 break;
2888 case NeovimApi6::NEOVIM_FN_NVIM_COMMAND:
2889 {
2890 emit on_nvim_command();
2891
2892 }
2893 break;
2894 case NeovimApi6::NEOVIM_FN_NVIM_GET_HL_BY_NAME:
2895 {
2896 QVariantMap data;
2897 if (decode(res, data)) {
2898 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_hl_by_name");
2899 return;
2900 } else {
2901 emit on_nvim_get_hl_by_name(data);
2902 }
2903
2904 }
2905 break;
2906 case NeovimApi6::NEOVIM_FN_NVIM_GET_HL_BY_ID:
2907 {
2908 QVariantMap data;
2909 if (decode(res, data)) {
2910 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_hl_by_id");
2911 return;
2912 } else {
2913 emit on_nvim_get_hl_by_id(data);
2914 }
2915
2916 }
2917 break;
2918 case NeovimApi6::NEOVIM_FN_NVIM_FEEDKEYS:
2919 {
2920 emit on_nvim_feedkeys();
2921
2922 }
2923 break;
2924 case NeovimApi6::NEOVIM_FN_NVIM_INPUT:
2925 {
2926 int64_t data;
2927 if (decode(res, data)) {
2928 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_input");
2929 return;
2930 } else {
2931 emit on_nvim_input(data);
2932 }
2933
2934 }
2935 break;
2936 case NeovimApi6::NEOVIM_FN_NVIM_REPLACE_TERMCODES:
2937 {
2938 QByteArray data;
2939 if (decode(res, data)) {
2940 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_replace_termcodes");
2941 return;
2942 } else {
2943 emit on_nvim_replace_termcodes(data);
2944 }
2945
2946 }
2947 break;
2948 case NeovimApi6::NEOVIM_FN_NVIM_COMMAND_OUTPUT:
2949 {
2950 QByteArray data;
2951 if (decode(res, data)) {
2952 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_command_output");
2953 return;
2954 } else {
2955 emit on_nvim_command_output(data);
2956 }
2957
2958 }
2959 break;
2960 case NeovimApi6::NEOVIM_FN_NVIM_EVAL:
2961 {
2962 QVariant data;
2963 if (decode(res, data)) {
2964 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_eval");
2965 return;
2966 } else {
2967 emit on_nvim_eval(data);
2968 }
2969
2970 }
2971 break;
2972 case NeovimApi6::NEOVIM_FN_NVIM_EXECUTE_LUA:
2973 {
2974 QVariant data;
2975 if (decode(res, data)) {
2976 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_execute_lua");
2977 return;
2978 } else {
2979 emit on_nvim_execute_lua(data);
2980 }
2981
2982 }
2983 break;
2984 case NeovimApi6::NEOVIM_FN_NVIM_CALL_FUNCTION:
2985 {
2986 QVariant data;
2987 if (decode(res, data)) {
2988 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_call_function");
2989 return;
2990 } else {
2991 emit on_nvim_call_function(data);
2992 }
2993
2994 }
2995 break;
2996 case NeovimApi6::NEOVIM_FN_NVIM_CALL_DICT_FUNCTION:
2997 {
2998 QVariant data;
2999 if (decode(res, data)) {
3000 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_call_dict_function");
3001 return;
3002 } else {
3003 emit on_nvim_call_dict_function(data);
3004 }
3005
3006 }
3007 break;
3008 case NeovimApi6::NEOVIM_FN_NVIM_STRWIDTH:
3009 {
3010 int64_t data;
3011 if (decode(res, data)) {
3012 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_strwidth");
3013 return;
3014 } else {
3015 emit on_nvim_strwidth(data);
3016 }
3017
3018 }
3019 break;
3020 case NeovimApi6::NEOVIM_FN_NVIM_LIST_RUNTIME_PATHS:
3021 {
3022 QList<QByteArray> data;
3023 if (decode(res, data)) {
3024 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_list_runtime_paths");
3025 return;
3026 } else {
3027 emit on_nvim_list_runtime_paths(data);
3028 }
3029
3030 }
3031 break;
3032 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_DIR:
3033 {
3034 emit on_nvim_set_current_dir();
3035
3036 }
3037 break;
3038 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_LINE:
3039 {
3040 QByteArray data;
3041 if (decode(res, data)) {
3042 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_current_line");
3043 return;
3044 } else {
3045 emit on_nvim_get_current_line(data);
3046 }
3047
3048 }
3049 break;
3050 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_LINE:
3051 {
3052 emit on_nvim_set_current_line();
3053
3054 }
3055 break;
3056 case NeovimApi6::NEOVIM_FN_NVIM_DEL_CURRENT_LINE:
3057 {
3058 emit on_nvim_del_current_line();
3059
3060 }
3061 break;
3062 case NeovimApi6::NEOVIM_FN_NVIM_GET_VAR:
3063 {
3064 QVariant data;
3065 if (decode(res, data)) {
3066 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_var");
3067 return;
3068 } else {
3069 emit on_nvim_get_var(data);
3070 }
3071
3072 }
3073 break;
3074 case NeovimApi6::NEOVIM_FN_NVIM_SET_VAR:
3075 {
3076 emit on_nvim_set_var();
3077
3078 }
3079 break;
3080 case NeovimApi6::NEOVIM_FN_NVIM_DEL_VAR:
3081 {
3082 emit on_nvim_del_var();
3083
3084 }
3085 break;
3086 case NeovimApi6::NEOVIM_FN_VIM_SET_VAR:
3087 {
3088 QVariant data;
3089 if (decode(res, data)) {
3090 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_set_var");
3091 return;
3092 } else {
3093 emit on_vim_set_var(data);
3094 }
3095
3096 }
3097 break;
3098 case NeovimApi6::NEOVIM_FN_VIM_DEL_VAR:
3099 {
3100 QVariant data;
3101 if (decode(res, data)) {
3102 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_del_var");
3103 return;
3104 } else {
3105 emit on_vim_del_var(data);
3106 }
3107
3108 }
3109 break;
3110 case NeovimApi6::NEOVIM_FN_NVIM_GET_VVAR:
3111 {
3112 QVariant data;
3113 if (decode(res, data)) {
3114 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_vvar");
3115 return;
3116 } else {
3117 emit on_nvim_get_vvar(data);
3118 }
3119
3120 }
3121 break;
3122 case NeovimApi6::NEOVIM_FN_NVIM_GET_OPTION:
3123 {
3124 QVariant data;
3125 if (decode(res, data)) {
3126 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_option");
3127 return;
3128 } else {
3129 emit on_nvim_get_option(data);
3130 }
3131
3132 }
3133 break;
3134 case NeovimApi6::NEOVIM_FN_NVIM_SET_OPTION:
3135 {
3136 emit on_nvim_set_option();
3137
3138 }
3139 break;
3140 case NeovimApi6::NEOVIM_FN_NVIM_OUT_WRITE:
3141 {
3142 emit on_nvim_out_write();
3143
3144 }
3145 break;
3146 case NeovimApi6::NEOVIM_FN_NVIM_ERR_WRITE:
3147 {
3148 emit on_nvim_err_write();
3149
3150 }
3151 break;
3152 case NeovimApi6::NEOVIM_FN_NVIM_ERR_WRITELN:
3153 {
3154 emit on_nvim_err_writeln();
3155
3156 }
3157 break;
3158 case NeovimApi6::NEOVIM_FN_NVIM_LIST_BUFS:
3159 {
3160 QList<int64_t> data;
3161 if (decode(res, data)) {
3162 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_list_bufs");
3163 return;
3164 } else {
3165 emit on_nvim_list_bufs(data);
3166 }
3167
3168 }
3169 break;
3170 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_BUF:
3171 {
3172 int64_t data;
3173 if (decode(res, data)) {
3174 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_current_buf");
3175 return;
3176 } else {
3177 emit on_nvim_get_current_buf(data);
3178 }
3179
3180 }
3181 break;
3182 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_BUF:
3183 {
3184 emit on_nvim_set_current_buf();
3185
3186 }
3187 break;
3188 case NeovimApi6::NEOVIM_FN_NVIM_LIST_WINS:
3189 {
3190 QList<int64_t> data;
3191 if (decode(res, data)) {
3192 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_list_wins");
3193 return;
3194 } else {
3195 emit on_nvim_list_wins(data);
3196 }
3197
3198 }
3199 break;
3200 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_WIN:
3201 {
3202 int64_t data;
3203 if (decode(res, data)) {
3204 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_current_win");
3205 return;
3206 } else {
3207 emit on_nvim_get_current_win(data);
3208 }
3209
3210 }
3211 break;
3212 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_WIN:
3213 {
3214 emit on_nvim_set_current_win();
3215
3216 }
3217 break;
3218 case NeovimApi6::NEOVIM_FN_NVIM_LIST_TABPAGES:
3219 {
3220 QList<int64_t> data;
3221 if (decode(res, data)) {
3222 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_list_tabpages");
3223 return;
3224 } else {
3225 emit on_nvim_list_tabpages(data);
3226 }
3227
3228 }
3229 break;
3230 case NeovimApi6::NEOVIM_FN_NVIM_GET_CURRENT_TABPAGE:
3231 {
3232 int64_t data;
3233 if (decode(res, data)) {
3234 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_current_tabpage");
3235 return;
3236 } else {
3237 emit on_nvim_get_current_tabpage(data);
3238 }
3239
3240 }
3241 break;
3242 case NeovimApi6::NEOVIM_FN_NVIM_SET_CURRENT_TABPAGE:
3243 {
3244 emit on_nvim_set_current_tabpage();
3245
3246 }
3247 break;
3248 case NeovimApi6::NEOVIM_FN_NVIM_CREATE_NAMESPACE:
3249 {
3250 int64_t data;
3251 if (decode(res, data)) {
3252 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_create_namespace");
3253 return;
3254 } else {
3255 emit on_nvim_create_namespace(data);
3256 }
3257
3258 }
3259 break;
3260 case NeovimApi6::NEOVIM_FN_NVIM_GET_NAMESPACES:
3261 {
3262 QVariantMap data;
3263 if (decode(res, data)) {
3264 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_namespaces");
3265 return;
3266 } else {
3267 emit on_nvim_get_namespaces(data);
3268 }
3269
3270 }
3271 break;
3272 case NeovimApi6::NEOVIM_FN_NVIM_SUBSCRIBE:
3273 {
3274 emit on_nvim_subscribe();
3275
3276 }
3277 break;
3278 case NeovimApi6::NEOVIM_FN_NVIM_UNSUBSCRIBE:
3279 {
3280 emit on_nvim_unsubscribe();
3281
3282 }
3283 break;
3284 case NeovimApi6::NEOVIM_FN_NVIM_GET_COLOR_BY_NAME:
3285 {
3286 int64_t data;
3287 if (decode(res, data)) {
3288 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_color_by_name");
3289 return;
3290 } else {
3291 emit on_nvim_get_color_by_name(data);
3292 }
3293
3294 }
3295 break;
3296 case NeovimApi6::NEOVIM_FN_NVIM_GET_COLOR_MAP:
3297 {
3298 QVariantMap data;
3299 if (decode(res, data)) {
3300 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_color_map");
3301 return;
3302 } else {
3303 emit on_nvim_get_color_map(data);
3304 }
3305
3306 }
3307 break;
3308 case NeovimApi6::NEOVIM_FN_NVIM_GET_MODE:
3309 {
3310 QVariantMap data;
3311 if (decode(res, data)) {
3312 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_mode");
3313 return;
3314 } else {
3315 emit on_nvim_get_mode(data);
3316 }
3317
3318 }
3319 break;
3320 case NeovimApi6::NEOVIM_FN_NVIM_GET_KEYMAP:
3321 {
3322 QList<QVariantMap> data;
3323 if (decode(res, data)) {
3324 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_keymap");
3325 return;
3326 } else {
3327 emit on_nvim_get_keymap(data);
3328 }
3329
3330 }
3331 break;
3332 case NeovimApi6::NEOVIM_FN_NVIM_GET_COMMANDS:
3333 {
3334 QVariantMap data;
3335 if (decode(res, data)) {
3336 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_commands");
3337 return;
3338 } else {
3339 emit on_nvim_get_commands(data);
3340 }
3341
3342 }
3343 break;
3344 case NeovimApi6::NEOVIM_FN_NVIM_GET_API_INFO:
3345 {
3346 QVariantList data;
3347 if (decode(res, data)) {
3348 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_api_info");
3349 return;
3350 } else {
3351 emit on_nvim_get_api_info(data);
3352 }
3353
3354 }
3355 break;
3356 case NeovimApi6::NEOVIM_FN_NVIM_SET_CLIENT_INFO:
3357 {
3358 emit on_nvim_set_client_info();
3359
3360 }
3361 break;
3362 case NeovimApi6::NEOVIM_FN_NVIM_GET_CHAN_INFO:
3363 {
3364 QVariantMap data;
3365 if (decode(res, data)) {
3366 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_chan_info");
3367 return;
3368 } else {
3369 emit on_nvim_get_chan_info(data);
3370 }
3371
3372 }
3373 break;
3374 case NeovimApi6::NEOVIM_FN_NVIM_LIST_CHANS:
3375 {
3376 QVariantList data;
3377 if (decode(res, data)) {
3378 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_list_chans");
3379 return;
3380 } else {
3381 emit on_nvim_list_chans(data);
3382 }
3383
3384 }
3385 break;
3386 case NeovimApi6::NEOVIM_FN_NVIM_CALL_ATOMIC:
3387 {
3388 QVariantList data;
3389 if (decode(res, data)) {
3390 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_call_atomic");
3391 return;
3392 } else {
3393 emit on_nvim_call_atomic(data);
3394 }
3395
3396 }
3397 break;
3398 case NeovimApi6::NEOVIM_FN_NVIM_PARSE_EXPRESSION:
3399 {
3400 QVariantMap data;
3401 if (decode(res, data)) {
3402 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_parse_expression");
3403 return;
3404 } else {
3405 emit on_nvim_parse_expression(data);
3406 }
3407
3408 }
3409 break;
3410 case NeovimApi6::NEOVIM_FN_NVIM_LIST_UIS:
3411 {
3412 QVariantList data;
3413 if (decode(res, data)) {
3414 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_list_uis");
3415 return;
3416 } else {
3417 emit on_nvim_list_uis(data);
3418 }
3419
3420 }
3421 break;
3422 case NeovimApi6::NEOVIM_FN_NVIM_GET_PROC_CHILDREN:
3423 {
3424 QVariantList data;
3425 if (decode(res, data)) {
3426 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_proc_children");
3427 return;
3428 } else {
3429 emit on_nvim_get_proc_children(data);
3430 }
3431
3432 }
3433 break;
3434 case NeovimApi6::NEOVIM_FN_NVIM_GET_PROC:
3435 {
3436 QVariant data;
3437 if (decode(res, data)) {
3438 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_get_proc");
3439 return;
3440 } else {
3441 emit on_nvim_get_proc(data);
3442 }
3443
3444 }
3445 break;
3446 case NeovimApi6::NEOVIM_FN_NVIM_SELECT_POPUPMENU_ITEM:
3447 {
3448 emit on_nvim_select_popupmenu_item();
3449
3450 }
3451 break;
3452 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_BUF:
3453 {
3454 int64_t data;
3455 if (decode(res, data)) {
3456 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_buf");
3457 return;
3458 } else {
3459 emit on_nvim_win_get_buf(data);
3460 }
3461
3462 }
3463 break;
3464 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_BUF:
3465 {
3466 emit on_nvim_win_set_buf();
3467
3468 }
3469 break;
3470 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_CURSOR:
3471 {
3472 QPoint data;
3473 if (decode(res, data)) {
3474 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_cursor");
3475 return;
3476 } else {
3477 emit on_nvim_win_get_cursor(data);
3478 }
3479
3480 }
3481 break;
3482 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_CURSOR:
3483 {
3484 emit on_nvim_win_set_cursor();
3485
3486 }
3487 break;
3488 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_HEIGHT:
3489 {
3490 int64_t data;
3491 if (decode(res, data)) {
3492 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_height");
3493 return;
3494 } else {
3495 emit on_nvim_win_get_height(data);
3496 }
3497
3498 }
3499 break;
3500 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_HEIGHT:
3501 {
3502 emit on_nvim_win_set_height();
3503
3504 }
3505 break;
3506 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_WIDTH:
3507 {
3508 int64_t data;
3509 if (decode(res, data)) {
3510 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_width");
3511 return;
3512 } else {
3513 emit on_nvim_win_get_width(data);
3514 }
3515
3516 }
3517 break;
3518 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_WIDTH:
3519 {
3520 emit on_nvim_win_set_width();
3521
3522 }
3523 break;
3524 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_VAR:
3525 {
3526 QVariant data;
3527 if (decode(res, data)) {
3528 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_var");
3529 return;
3530 } else {
3531 emit on_nvim_win_get_var(data);
3532 }
3533
3534 }
3535 break;
3536 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_VAR:
3537 {
3538 emit on_nvim_win_set_var();
3539
3540 }
3541 break;
3542 case NeovimApi6::NEOVIM_FN_NVIM_WIN_DEL_VAR:
3543 {
3544 emit on_nvim_win_del_var();
3545
3546 }
3547 break;
3548 case NeovimApi6::NEOVIM_FN_WINDOW_SET_VAR:
3549 {
3550 QVariant data;
3551 if (decode(res, data)) {
3552 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_set_var");
3553 return;
3554 } else {
3555 emit on_window_set_var(data);
3556 }
3557
3558 }
3559 break;
3560 case NeovimApi6::NEOVIM_FN_WINDOW_DEL_VAR:
3561 {
3562 QVariant data;
3563 if (decode(res, data)) {
3564 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_del_var");
3565 return;
3566 } else {
3567 emit on_window_del_var(data);
3568 }
3569
3570 }
3571 break;
3572 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_OPTION:
3573 {
3574 QVariant data;
3575 if (decode(res, data)) {
3576 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_option");
3577 return;
3578 } else {
3579 emit on_nvim_win_get_option(data);
3580 }
3581
3582 }
3583 break;
3584 case NeovimApi6::NEOVIM_FN_NVIM_WIN_SET_OPTION:
3585 {
3586 emit on_nvim_win_set_option();
3587
3588 }
3589 break;
3590 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_POSITION:
3591 {
3592 QPoint data;
3593 if (decode(res, data)) {
3594 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_position");
3595 return;
3596 } else {
3597 emit on_nvim_win_get_position(data);
3598 }
3599
3600 }
3601 break;
3602 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_TABPAGE:
3603 {
3604 int64_t data;
3605 if (decode(res, data)) {
3606 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_tabpage");
3607 return;
3608 } else {
3609 emit on_nvim_win_get_tabpage(data);
3610 }
3611
3612 }
3613 break;
3614 case NeovimApi6::NEOVIM_FN_NVIM_WIN_GET_NUMBER:
3615 {
3616 int64_t data;
3617 if (decode(res, data)) {
3618 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_get_number");
3619 return;
3620 } else {
3621 emit on_nvim_win_get_number(data);
3622 }
3623
3624 }
3625 break;
3626 case NeovimApi6::NEOVIM_FN_NVIM_WIN_IS_VALID:
3627 {
3628 bool data;
3629 if (decode(res, data)) {
3630 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for nvim_win_is_valid");
3631 return;
3632 } else {
3633 emit on_nvim_win_is_valid(data);
3634 }
3635
3636 }
3637 break;
3638 case NeovimApi6::NEOVIM_FN_BUFFER_LINE_COUNT:
3639 {
3640 int64_t data;
3641 if (decode(res, data)) {
3642 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_line_count");
3643 return;
3644 } else {
3645 emit on_buffer_line_count(data);
3646 }
3647
3648 }
3649 break;
3650 case NeovimApi6::NEOVIM_FN_BUFFER_GET_LINES:
3651 {
3652 QList<QByteArray> data;
3653 if (decode(res, data)) {
3654 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_lines");
3655 return;
3656 } else {
3657 emit on_buffer_get_lines(data);
3658 }
3659
3660 }
3661 break;
3662 case NeovimApi6::NEOVIM_FN_BUFFER_SET_LINES:
3663 {
3664 emit on_buffer_set_lines();
3665
3666 }
3667 break;
3668 case NeovimApi6::NEOVIM_FN_BUFFER_GET_VAR:
3669 {
3670 QVariant data;
3671 if (decode(res, data)) {
3672 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_var");
3673 return;
3674 } else {
3675 emit on_buffer_get_var(data);
3676 }
3677
3678 }
3679 break;
3680 case NeovimApi6::NEOVIM_FN_BUFFER_GET_OPTION:
3681 {
3682 QVariant data;
3683 if (decode(res, data)) {
3684 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_option");
3685 return;
3686 } else {
3687 emit on_buffer_get_option(data);
3688 }
3689
3690 }
3691 break;
3692 case NeovimApi6::NEOVIM_FN_BUFFER_SET_OPTION:
3693 {
3694 emit on_buffer_set_option();
3695
3696 }
3697 break;
3698 case NeovimApi6::NEOVIM_FN_BUFFER_GET_NUMBER:
3699 {
3700 int64_t data;
3701 if (decode(res, data)) {
3702 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_number");
3703 return;
3704 } else {
3705 emit on_buffer_get_number(data);
3706 }
3707
3708 }
3709 break;
3710 case NeovimApi6::NEOVIM_FN_BUFFER_GET_NAME:
3711 {
3712 QByteArray data;
3713 if (decode(res, data)) {
3714 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_name");
3715 return;
3716 } else {
3717 emit on_buffer_get_name(data);
3718 }
3719
3720 }
3721 break;
3722 case NeovimApi6::NEOVIM_FN_BUFFER_SET_NAME:
3723 {
3724 emit on_buffer_set_name();
3725
3726 }
3727 break;
3728 case NeovimApi6::NEOVIM_FN_BUFFER_IS_VALID:
3729 {
3730 bool data;
3731 if (decode(res, data)) {
3732 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_is_valid");
3733 return;
3734 } else {
3735 emit on_buffer_is_valid(data);
3736 }
3737
3738 }
3739 break;
3740 case NeovimApi6::NEOVIM_FN_BUFFER_GET_MARK:
3741 {
3742 QPoint data;
3743 if (decode(res, data)) {
3744 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_get_mark");
3745 return;
3746 } else {
3747 emit on_buffer_get_mark(data);
3748 }
3749
3750 }
3751 break;
3752 case NeovimApi6::NEOVIM_FN_BUFFER_ADD_HIGHLIGHT:
3753 {
3754 int64_t data;
3755 if (decode(res, data)) {
3756 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for buffer_add_highlight");
3757 return;
3758 } else {
3759 emit on_buffer_add_highlight(data);
3760 }
3761
3762 }
3763 break;
3764 case NeovimApi6::NEOVIM_FN_BUFFER_CLEAR_HIGHLIGHT:
3765 {
3766 emit on_buffer_clear_highlight();
3767
3768 }
3769 break;
3770 case NeovimApi6::NEOVIM_FN_TABPAGE_GET_WINDOWS:
3771 {
3772 QList<int64_t> data;
3773 if (decode(res, data)) {
3774 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for tabpage_get_windows");
3775 return;
3776 } else {
3777 emit on_tabpage_get_windows(data);
3778 }
3779
3780 }
3781 break;
3782 case NeovimApi6::NEOVIM_FN_TABPAGE_GET_VAR:
3783 {
3784 QVariant data;
3785 if (decode(res, data)) {
3786 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for tabpage_get_var");
3787 return;
3788 } else {
3789 emit on_tabpage_get_var(data);
3790 }
3791
3792 }
3793 break;
3794 case NeovimApi6::NEOVIM_FN_TABPAGE_GET_WINDOW:
3795 {
3796 int64_t data;
3797 if (decode(res, data)) {
3798 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for tabpage_get_window");
3799 return;
3800 } else {
3801 emit on_tabpage_get_window(data);
3802 }
3803
3804 }
3805 break;
3806 case NeovimApi6::NEOVIM_FN_TABPAGE_IS_VALID:
3807 {
3808 bool data;
3809 if (decode(res, data)) {
3810 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for tabpage_is_valid");
3811 return;
3812 } else {
3813 emit on_tabpage_is_valid(data);
3814 }
3815
3816 }
3817 break;
3818 case NeovimApi6::NEOVIM_FN_UI_DETACH:
3819 {
3820 emit on_ui_detach();
3821
3822 }
3823 break;
3824 case NeovimApi6::NEOVIM_FN_UI_TRY_RESIZE:
3825 {
3826 QVariant data;
3827 if (decode(res, data)) {
3828 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for ui_try_resize");
3829 return;
3830 } else {
3831 emit on_ui_try_resize(data);
3832 }
3833
3834 }
3835 break;
3836 case NeovimApi6::NEOVIM_FN_VIM_COMMAND:
3837 {
3838 emit on_vim_command();
3839
3840 }
3841 break;
3842 case NeovimApi6::NEOVIM_FN_VIM_FEEDKEYS:
3843 {
3844 emit on_vim_feedkeys();
3845
3846 }
3847 break;
3848 case NeovimApi6::NEOVIM_FN_VIM_INPUT:
3849 {
3850 int64_t data;
3851 if (decode(res, data)) {
3852 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_input");
3853 return;
3854 } else {
3855 emit on_vim_input(data);
3856 }
3857
3858 }
3859 break;
3860 case NeovimApi6::NEOVIM_FN_VIM_REPLACE_TERMCODES:
3861 {
3862 QByteArray data;
3863 if (decode(res, data)) {
3864 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_replace_termcodes");
3865 return;
3866 } else {
3867 emit on_vim_replace_termcodes(data);
3868 }
3869
3870 }
3871 break;
3872 case NeovimApi6::NEOVIM_FN_VIM_COMMAND_OUTPUT:
3873 {
3874 QByteArray data;
3875 if (decode(res, data)) {
3876 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_command_output");
3877 return;
3878 } else {
3879 emit on_vim_command_output(data);
3880 }
3881
3882 }
3883 break;
3884 case NeovimApi6::NEOVIM_FN_VIM_EVAL:
3885 {
3886 QVariant data;
3887 if (decode(res, data)) {
3888 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_eval");
3889 return;
3890 } else {
3891 emit on_vim_eval(data);
3892 }
3893
3894 }
3895 break;
3896 case NeovimApi6::NEOVIM_FN_VIM_CALL_FUNCTION:
3897 {
3898 QVariant data;
3899 if (decode(res, data)) {
3900 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_call_function");
3901 return;
3902 } else {
3903 emit on_vim_call_function(data);
3904 }
3905
3906 }
3907 break;
3908 case NeovimApi6::NEOVIM_FN_VIM_STRWIDTH:
3909 {
3910 int64_t data;
3911 if (decode(res, data)) {
3912 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_strwidth");
3913 return;
3914 } else {
3915 emit on_vim_strwidth(data);
3916 }
3917
3918 }
3919 break;
3920 case NeovimApi6::NEOVIM_FN_VIM_LIST_RUNTIME_PATHS:
3921 {
3922 QList<QByteArray> data;
3923 if (decode(res, data)) {
3924 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_list_runtime_paths");
3925 return;
3926 } else {
3927 emit on_vim_list_runtime_paths(data);
3928 }
3929
3930 }
3931 break;
3932 case NeovimApi6::NEOVIM_FN_VIM_CHANGE_DIRECTORY:
3933 {
3934 emit on_vim_change_directory();
3935
3936 }
3937 break;
3938 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_LINE:
3939 {
3940 QByteArray data;
3941 if (decode(res, data)) {
3942 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_current_line");
3943 return;
3944 } else {
3945 emit on_vim_get_current_line(data);
3946 }
3947
3948 }
3949 break;
3950 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_LINE:
3951 {
3952 emit on_vim_set_current_line();
3953
3954 }
3955 break;
3956 case NeovimApi6::NEOVIM_FN_VIM_DEL_CURRENT_LINE:
3957 {
3958 emit on_vim_del_current_line();
3959
3960 }
3961 break;
3962 case NeovimApi6::NEOVIM_FN_VIM_GET_VAR:
3963 {
3964 QVariant data;
3965 if (decode(res, data)) {
3966 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_var");
3967 return;
3968 } else {
3969 emit on_vim_get_var(data);
3970 }
3971
3972 }
3973 break;
3974 case NeovimApi6::NEOVIM_FN_VIM_GET_VVAR:
3975 {
3976 QVariant data;
3977 if (decode(res, data)) {
3978 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_vvar");
3979 return;
3980 } else {
3981 emit on_vim_get_vvar(data);
3982 }
3983
3984 }
3985 break;
3986 case NeovimApi6::NEOVIM_FN_VIM_GET_OPTION:
3987 {
3988 QVariant data;
3989 if (decode(res, data)) {
3990 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_option");
3991 return;
3992 } else {
3993 emit on_vim_get_option(data);
3994 }
3995
3996 }
3997 break;
3998 case NeovimApi6::NEOVIM_FN_VIM_SET_OPTION:
3999 {
4000 emit on_vim_set_option();
4001
4002 }
4003 break;
4004 case NeovimApi6::NEOVIM_FN_VIM_OUT_WRITE:
4005 {
4006 emit on_vim_out_write();
4007
4008 }
4009 break;
4010 case NeovimApi6::NEOVIM_FN_VIM_ERR_WRITE:
4011 {
4012 emit on_vim_err_write();
4013
4014 }
4015 break;
4016 case NeovimApi6::NEOVIM_FN_VIM_REPORT_ERROR:
4017 {
4018 emit on_vim_report_error();
4019
4020 }
4021 break;
4022 case NeovimApi6::NEOVIM_FN_VIM_GET_BUFFERS:
4023 {
4024 QList<int64_t> data;
4025 if (decode(res, data)) {
4026 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_buffers");
4027 return;
4028 } else {
4029 emit on_vim_get_buffers(data);
4030 }
4031
4032 }
4033 break;
4034 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_BUFFER:
4035 {
4036 int64_t data;
4037 if (decode(res, data)) {
4038 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_current_buffer");
4039 return;
4040 } else {
4041 emit on_vim_get_current_buffer(data);
4042 }
4043
4044 }
4045 break;
4046 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_BUFFER:
4047 {
4048 emit on_vim_set_current_buffer();
4049
4050 }
4051 break;
4052 case NeovimApi6::NEOVIM_FN_VIM_GET_WINDOWS:
4053 {
4054 QList<int64_t> data;
4055 if (decode(res, data)) {
4056 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_windows");
4057 return;
4058 } else {
4059 emit on_vim_get_windows(data);
4060 }
4061
4062 }
4063 break;
4064 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_WINDOW:
4065 {
4066 int64_t data;
4067 if (decode(res, data)) {
4068 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_current_window");
4069 return;
4070 } else {
4071 emit on_vim_get_current_window(data);
4072 }
4073
4074 }
4075 break;
4076 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_WINDOW:
4077 {
4078 emit on_vim_set_current_window();
4079
4080 }
4081 break;
4082 case NeovimApi6::NEOVIM_FN_VIM_GET_TABPAGES:
4083 {
4084 QList<int64_t> data;
4085 if (decode(res, data)) {
4086 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_tabpages");
4087 return;
4088 } else {
4089 emit on_vim_get_tabpages(data);
4090 }
4091
4092 }
4093 break;
4094 case NeovimApi6::NEOVIM_FN_VIM_GET_CURRENT_TABPAGE:
4095 {
4096 int64_t data;
4097 if (decode(res, data)) {
4098 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_current_tabpage");
4099 return;
4100 } else {
4101 emit on_vim_get_current_tabpage(data);
4102 }
4103
4104 }
4105 break;
4106 case NeovimApi6::NEOVIM_FN_VIM_SET_CURRENT_TABPAGE:
4107 {
4108 emit on_vim_set_current_tabpage();
4109
4110 }
4111 break;
4112 case NeovimApi6::NEOVIM_FN_VIM_SUBSCRIBE:
4113 {
4114 emit on_vim_subscribe();
4115
4116 }
4117 break;
4118 case NeovimApi6::NEOVIM_FN_VIM_UNSUBSCRIBE:
4119 {
4120 emit on_vim_unsubscribe();
4121
4122 }
4123 break;
4124 case NeovimApi6::NEOVIM_FN_VIM_NAME_TO_COLOR:
4125 {
4126 int64_t data;
4127 if (decode(res, data)) {
4128 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_name_to_color");
4129 return;
4130 } else {
4131 emit on_vim_name_to_color(data);
4132 }
4133
4134 }
4135 break;
4136 case NeovimApi6::NEOVIM_FN_VIM_GET_COLOR_MAP:
4137 {
4138 QVariantMap data;
4139 if (decode(res, data)) {
4140 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for vim_get_color_map");
4141 return;
4142 } else {
4143 emit on_vim_get_color_map(data);
4144 }
4145
4146 }
4147 break;
4148 case NeovimApi6::NEOVIM_FN_WINDOW_GET_BUFFER:
4149 {
4150 int64_t data;
4151 if (decode(res, data)) {
4152 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_buffer");
4153 return;
4154 } else {
4155 emit on_window_get_buffer(data);
4156 }
4157
4158 }
4159 break;
4160 case NeovimApi6::NEOVIM_FN_WINDOW_GET_CURSOR:
4161 {
4162 QPoint data;
4163 if (decode(res, data)) {
4164 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_cursor");
4165 return;
4166 } else {
4167 emit on_window_get_cursor(data);
4168 }
4169
4170 }
4171 break;
4172 case NeovimApi6::NEOVIM_FN_WINDOW_SET_CURSOR:
4173 {
4174 emit on_window_set_cursor();
4175
4176 }
4177 break;
4178 case NeovimApi6::NEOVIM_FN_WINDOW_GET_HEIGHT:
4179 {
4180 int64_t data;
4181 if (decode(res, data)) {
4182 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_height");
4183 return;
4184 } else {
4185 emit on_window_get_height(data);
4186 }
4187
4188 }
4189 break;
4190 case NeovimApi6::NEOVIM_FN_WINDOW_SET_HEIGHT:
4191 {
4192 emit on_window_set_height();
4193
4194 }
4195 break;
4196 case NeovimApi6::NEOVIM_FN_WINDOW_GET_WIDTH:
4197 {
4198 int64_t data;
4199 if (decode(res, data)) {
4200 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_width");
4201 return;
4202 } else {
4203 emit on_window_get_width(data);
4204 }
4205
4206 }
4207 break;
4208 case NeovimApi6::NEOVIM_FN_WINDOW_SET_WIDTH:
4209 {
4210 emit on_window_set_width();
4211
4212 }
4213 break;
4214 case NeovimApi6::NEOVIM_FN_WINDOW_GET_VAR:
4215 {
4216 QVariant data;
4217 if (decode(res, data)) {
4218 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_var");
4219 return;
4220 } else {
4221 emit on_window_get_var(data);
4222 }
4223
4224 }
4225 break;
4226 case NeovimApi6::NEOVIM_FN_WINDOW_GET_OPTION:
4227 {
4228 QVariant data;
4229 if (decode(res, data)) {
4230 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_option");
4231 return;
4232 } else {
4233 emit on_window_get_option(data);
4234 }
4235
4236 }
4237 break;
4238 case NeovimApi6::NEOVIM_FN_WINDOW_SET_OPTION:
4239 {
4240 emit on_window_set_option();
4241
4242 }
4243 break;
4244 case NeovimApi6::NEOVIM_FN_WINDOW_GET_POSITION:
4245 {
4246 QPoint data;
4247 if (decode(res, data)) {
4248 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_position");
4249 return;
4250 } else {
4251 emit on_window_get_position(data);
4252 }
4253
4254 }
4255 break;
4256 case NeovimApi6::NEOVIM_FN_WINDOW_GET_TABPAGE:
4257 {
4258 int64_t data;
4259 if (decode(res, data)) {
4260 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_get_tabpage");
4261 return;
4262 } else {
4263 emit on_window_get_tabpage(data);
4264 }
4265
4266 }
4267 break;
4268 case NeovimApi6::NEOVIM_FN_WINDOW_IS_VALID:
4269 {
4270 bool data;
4271 if (decode(res, data)) {
4272 m_c->setError(NeovimConnector::RuntimeMsgpackError, "Error unpacking return type for window_is_valid");
4273 return;
4274 } else {
4275 emit on_window_is_valid(data);
4276 }
4277
4278 }
4279 break;
4280 default:
4281 qWarning() << "Received unexpected response";
4282 }
4283 }
4284
4285 /**
4286 * Check function table from api_metadata[1]
4287 *
4288 * This checks the API metadata build from the bindings against the metadata
4289 * passed as argument.
4290 *
4291 * Returns false if there is an API mismatch
4292 */
checkFunctions(const QVariantList & ftable)4293 bool NeovimApi6::checkFunctions(const QVariantList& ftable)
4294 {
4295
4296 QList<Function> required;
4297 required
4298 << Function("Integer", "nvim_buf_line_count",
4299 QList<QString>()
4300 << QString("Buffer")
4301 , false)
4302 << Function("String", "buffer_get_line",
4303 QList<QString>()
4304 << QString("Buffer")
4305 << QString("Integer")
4306 , false)
4307 << Function("Boolean", "nvim_buf_attach",
4308 QList<QString>()
4309 << QString("Buffer")
4310 << QString("Boolean")
4311 << QString("Dictionary")
4312 , false)
4313 << Function("Boolean", "nvim_buf_detach",
4314 QList<QString>()
4315 << QString("Buffer")
4316 , false)
4317 << Function("void", "buffer_set_line",
4318 QList<QString>()
4319 << QString("Buffer")
4320 << QString("Integer")
4321 << QString("String")
4322 , false)
4323 << Function("void", "buffer_del_line",
4324 QList<QString>()
4325 << QString("Buffer")
4326 << QString("Integer")
4327 , false)
4328 << Function("ArrayOf(String)", "buffer_get_line_slice",
4329 QList<QString>()
4330 << QString("Buffer")
4331 << QString("Integer")
4332 << QString("Integer")
4333 << QString("Boolean")
4334 << QString("Boolean")
4335 , false)
4336 << Function("ArrayOf(String)", "nvim_buf_get_lines",
4337 QList<QString>()
4338 << QString("Buffer")
4339 << QString("Integer")
4340 << QString("Integer")
4341 << QString("Boolean")
4342 , false)
4343 << Function("void", "buffer_set_line_slice",
4344 QList<QString>()
4345 << QString("Buffer")
4346 << QString("Integer")
4347 << QString("Integer")
4348 << QString("Boolean")
4349 << QString("Boolean")
4350 << QString("ArrayOf(String)")
4351 , false)
4352 << Function("void", "nvim_buf_set_lines",
4353 QList<QString>()
4354 << QString("Buffer")
4355 << QString("Integer")
4356 << QString("Integer")
4357 << QString("Boolean")
4358 << QString("ArrayOf(String)")
4359 , false)
4360 << Function("Integer", "nvim_buf_get_offset",
4361 QList<QString>()
4362 << QString("Buffer")
4363 << QString("Integer")
4364 , false)
4365 << Function("Object", "nvim_buf_get_var",
4366 QList<QString>()
4367 << QString("Buffer")
4368 << QString("String")
4369 , false)
4370 << Function("Integer", "nvim_buf_get_changedtick",
4371 QList<QString>()
4372 << QString("Buffer")
4373 , false)
4374 << Function("ArrayOf(Dictionary)", "nvim_buf_get_keymap",
4375 QList<QString>()
4376 << QString("Buffer")
4377 << QString("String")
4378 , false)
4379 << Function("Dictionary", "nvim_buf_get_commands",
4380 QList<QString>()
4381 << QString("Buffer")
4382 << QString("Dictionary")
4383 , false)
4384 << Function("void", "nvim_buf_set_var",
4385 QList<QString>()
4386 << QString("Buffer")
4387 << QString("String")
4388 << QString("Object")
4389 , false)
4390 << Function("void", "nvim_buf_del_var",
4391 QList<QString>()
4392 << QString("Buffer")
4393 << QString("String")
4394 , false)
4395 << Function("Object", "buffer_set_var",
4396 QList<QString>()
4397 << QString("Buffer")
4398 << QString("String")
4399 << QString("Object")
4400 , false)
4401 << Function("Object", "buffer_del_var",
4402 QList<QString>()
4403 << QString("Buffer")
4404 << QString("String")
4405 , false)
4406 << Function("Object", "nvim_buf_get_option",
4407 QList<QString>()
4408 << QString("Buffer")
4409 << QString("String")
4410 , false)
4411 << Function("void", "nvim_buf_set_option",
4412 QList<QString>()
4413 << QString("Buffer")
4414 << QString("String")
4415 << QString("Object")
4416 , false)
4417 << Function("Integer", "nvim_buf_get_number",
4418 QList<QString>()
4419 << QString("Buffer")
4420 , false)
4421 << Function("String", "nvim_buf_get_name",
4422 QList<QString>()
4423 << QString("Buffer")
4424 , false)
4425 << Function("void", "nvim_buf_set_name",
4426 QList<QString>()
4427 << QString("Buffer")
4428 << QString("String")
4429 , false)
4430 << Function("Boolean", "nvim_buf_is_loaded",
4431 QList<QString>()
4432 << QString("Buffer")
4433 , false)
4434 << Function("Boolean", "nvim_buf_is_valid",
4435 QList<QString>()
4436 << QString("Buffer")
4437 , false)
4438 << Function("void", "buffer_insert",
4439 QList<QString>()
4440 << QString("Buffer")
4441 << QString("Integer")
4442 << QString("ArrayOf(String)")
4443 , false)
4444 << Function("ArrayOf(Integer, 2)", "nvim_buf_get_mark",
4445 QList<QString>()
4446 << QString("Buffer")
4447 << QString("String")
4448 , false)
4449 << Function("Integer", "nvim_buf_add_highlight",
4450 QList<QString>()
4451 << QString("Buffer")
4452 << QString("Integer")
4453 << QString("String")
4454 << QString("Integer")
4455 << QString("Integer")
4456 << QString("Integer")
4457 , false)
4458 << Function("void", "nvim_buf_clear_namespace",
4459 QList<QString>()
4460 << QString("Buffer")
4461 << QString("Integer")
4462 << QString("Integer")
4463 << QString("Integer")
4464 , false)
4465 << Function("void", "nvim_buf_clear_highlight",
4466 QList<QString>()
4467 << QString("Buffer")
4468 << QString("Integer")
4469 << QString("Integer")
4470 << QString("Integer")
4471 , false)
4472 << Function("Integer", "nvim_buf_set_virtual_text",
4473 QList<QString>()
4474 << QString("Buffer")
4475 << QString("Integer")
4476 << QString("Integer")
4477 << QString("Array")
4478 << QString("Dictionary")
4479 , false)
4480 << Function("ArrayOf(Window)", "nvim_tabpage_list_wins",
4481 QList<QString>()
4482 << QString("Tabpage")
4483 , false)
4484 << Function("Object", "nvim_tabpage_get_var",
4485 QList<QString>()
4486 << QString("Tabpage")
4487 << QString("String")
4488 , false)
4489 << Function("void", "nvim_tabpage_set_var",
4490 QList<QString>()
4491 << QString("Tabpage")
4492 << QString("String")
4493 << QString("Object")
4494 , false)
4495 << Function("void", "nvim_tabpage_del_var",
4496 QList<QString>()
4497 << QString("Tabpage")
4498 << QString("String")
4499 , false)
4500 << Function("Object", "tabpage_set_var",
4501 QList<QString>()
4502 << QString("Tabpage")
4503 << QString("String")
4504 << QString("Object")
4505 , false)
4506 << Function("Object", "tabpage_del_var",
4507 QList<QString>()
4508 << QString("Tabpage")
4509 << QString("String")
4510 , false)
4511 << Function("Window", "nvim_tabpage_get_win",
4512 QList<QString>()
4513 << QString("Tabpage")
4514 , false)
4515 << Function("Integer", "nvim_tabpage_get_number",
4516 QList<QString>()
4517 << QString("Tabpage")
4518 , false)
4519 << Function("Boolean", "nvim_tabpage_is_valid",
4520 QList<QString>()
4521 << QString("Tabpage")
4522 , false)
4523 << Function("void", "nvim_ui_attach",
4524 QList<QString>()
4525 << QString("Integer")
4526 << QString("Integer")
4527 << QString("Dictionary")
4528 , false)
4529 << Function("void", "ui_attach",
4530 QList<QString>()
4531 << QString("Integer")
4532 << QString("Integer")
4533 << QString("Boolean")
4534 , false)
4535 << Function("void", "nvim_ui_detach",
4536 QList<QString>()
4537 , false)
4538 << Function("void", "nvim_ui_try_resize",
4539 QList<QString>()
4540 << QString("Integer")
4541 << QString("Integer")
4542 , false)
4543 << Function("void", "nvim_ui_set_option",
4544 QList<QString>()
4545 << QString("String")
4546 << QString("Object")
4547 , false)
4548 << Function("void", "nvim_ui_try_resize_grid",
4549 QList<QString>()
4550 << QString("Integer")
4551 << QString("Integer")
4552 << QString("Integer")
4553 , false)
4554 << Function("void", "nvim_command",
4555 QList<QString>()
4556 << QString("String")
4557 , false)
4558 << Function("Dictionary", "nvim_get_hl_by_name",
4559 QList<QString>()
4560 << QString("String")
4561 << QString("Boolean")
4562 , false)
4563 << Function("Dictionary", "nvim_get_hl_by_id",
4564 QList<QString>()
4565 << QString("Integer")
4566 << QString("Boolean")
4567 , false)
4568 << Function("void", "nvim_feedkeys",
4569 QList<QString>()
4570 << QString("String")
4571 << QString("String")
4572 << QString("Boolean")
4573 , false)
4574 << Function("Integer", "nvim_input",
4575 QList<QString>()
4576 << QString("String")
4577 , false)
4578 << Function("String", "nvim_replace_termcodes",
4579 QList<QString>()
4580 << QString("String")
4581 << QString("Boolean")
4582 << QString("Boolean")
4583 << QString("Boolean")
4584 , false)
4585 << Function("String", "nvim_command_output",
4586 QList<QString>()
4587 << QString("String")
4588 , false)
4589 << Function("Object", "nvim_eval",
4590 QList<QString>()
4591 << QString("String")
4592 , false)
4593 << Function("Object", "nvim_execute_lua",
4594 QList<QString>()
4595 << QString("String")
4596 << QString("Array")
4597 , false)
4598 << Function("Object", "nvim_call_function",
4599 QList<QString>()
4600 << QString("String")
4601 << QString("Array")
4602 , false)
4603 << Function("Object", "nvim_call_dict_function",
4604 QList<QString>()
4605 << QString("Object")
4606 << QString("String")
4607 << QString("Array")
4608 , false)
4609 << Function("Integer", "nvim_strwidth",
4610 QList<QString>()
4611 << QString("String")
4612 , false)
4613 << Function("ArrayOf(String)", "nvim_list_runtime_paths",
4614 QList<QString>()
4615 , false)
4616 << Function("void", "nvim_set_current_dir",
4617 QList<QString>()
4618 << QString("String")
4619 , false)
4620 << Function("String", "nvim_get_current_line",
4621 QList<QString>()
4622 , false)
4623 << Function("void", "nvim_set_current_line",
4624 QList<QString>()
4625 << QString("String")
4626 , false)
4627 << Function("void", "nvim_del_current_line",
4628 QList<QString>()
4629 , false)
4630 << Function("Object", "nvim_get_var",
4631 QList<QString>()
4632 << QString("String")
4633 , false)
4634 << Function("void", "nvim_set_var",
4635 QList<QString>()
4636 << QString("String")
4637 << QString("Object")
4638 , false)
4639 << Function("void", "nvim_del_var",
4640 QList<QString>()
4641 << QString("String")
4642 , false)
4643 << Function("Object", "vim_set_var",
4644 QList<QString>()
4645 << QString("String")
4646 << QString("Object")
4647 , false)
4648 << Function("Object", "vim_del_var",
4649 QList<QString>()
4650 << QString("String")
4651 , false)
4652 << Function("Object", "nvim_get_vvar",
4653 QList<QString>()
4654 << QString("String")
4655 , false)
4656 << Function("Object", "nvim_get_option",
4657 QList<QString>()
4658 << QString("String")
4659 , false)
4660 << Function("void", "nvim_set_option",
4661 QList<QString>()
4662 << QString("String")
4663 << QString("Object")
4664 , false)
4665 << Function("void", "nvim_out_write",
4666 QList<QString>()
4667 << QString("String")
4668 , false)
4669 << Function("void", "nvim_err_write",
4670 QList<QString>()
4671 << QString("String")
4672 , false)
4673 << Function("void", "nvim_err_writeln",
4674 QList<QString>()
4675 << QString("String")
4676 , false)
4677 << Function("ArrayOf(Buffer)", "nvim_list_bufs",
4678 QList<QString>()
4679 , false)
4680 << Function("Buffer", "nvim_get_current_buf",
4681 QList<QString>()
4682 , false)
4683 << Function("void", "nvim_set_current_buf",
4684 QList<QString>()
4685 << QString("Buffer")
4686 , false)
4687 << Function("ArrayOf(Window)", "nvim_list_wins",
4688 QList<QString>()
4689 , false)
4690 << Function("Window", "nvim_get_current_win",
4691 QList<QString>()
4692 , false)
4693 << Function("void", "nvim_set_current_win",
4694 QList<QString>()
4695 << QString("Window")
4696 , false)
4697 << Function("ArrayOf(Tabpage)", "nvim_list_tabpages",
4698 QList<QString>()
4699 , false)
4700 << Function("Tabpage", "nvim_get_current_tabpage",
4701 QList<QString>()
4702 , false)
4703 << Function("void", "nvim_set_current_tabpage",
4704 QList<QString>()
4705 << QString("Tabpage")
4706 , false)
4707 << Function("Integer", "nvim_create_namespace",
4708 QList<QString>()
4709 << QString("String")
4710 , false)
4711 << Function("Dictionary", "nvim_get_namespaces",
4712 QList<QString>()
4713 , false)
4714 << Function("void", "nvim_subscribe",
4715 QList<QString>()
4716 << QString("String")
4717 , false)
4718 << Function("void", "nvim_unsubscribe",
4719 QList<QString>()
4720 << QString("String")
4721 , false)
4722 << Function("Integer", "nvim_get_color_by_name",
4723 QList<QString>()
4724 << QString("String")
4725 , false)
4726 << Function("Dictionary", "nvim_get_color_map",
4727 QList<QString>()
4728 , false)
4729 << Function("Dictionary", "nvim_get_mode",
4730 QList<QString>()
4731 , false)
4732 << Function("ArrayOf(Dictionary)", "nvim_get_keymap",
4733 QList<QString>()
4734 << QString("String")
4735 , false)
4736 << Function("Dictionary", "nvim_get_commands",
4737 QList<QString>()
4738 << QString("Dictionary")
4739 , false)
4740 << Function("Array", "nvim_get_api_info",
4741 QList<QString>()
4742 , false)
4743 << Function("void", "nvim_set_client_info",
4744 QList<QString>()
4745 << QString("String")
4746 << QString("Dictionary")
4747 << QString("String")
4748 << QString("Dictionary")
4749 << QString("Dictionary")
4750 , false)
4751 << Function("Dictionary", "nvim_get_chan_info",
4752 QList<QString>()
4753 << QString("Integer")
4754 , false)
4755 << Function("Array", "nvim_list_chans",
4756 QList<QString>()
4757 , false)
4758 << Function("Array", "nvim_call_atomic",
4759 QList<QString>()
4760 << QString("Array")
4761 , false)
4762 << Function("Dictionary", "nvim_parse_expression",
4763 QList<QString>()
4764 << QString("String")
4765 << QString("String")
4766 << QString("Boolean")
4767 , false)
4768 << Function("Array", "nvim_list_uis",
4769 QList<QString>()
4770 , false)
4771 << Function("Array", "nvim_get_proc_children",
4772 QList<QString>()
4773 << QString("Integer")
4774 , false)
4775 << Function("Object", "nvim_get_proc",
4776 QList<QString>()
4777 << QString("Integer")
4778 , false)
4779 << Function("void", "nvim_select_popupmenu_item",
4780 QList<QString>()
4781 << QString("Integer")
4782 << QString("Boolean")
4783 << QString("Boolean")
4784 << QString("Dictionary")
4785 , false)
4786 << Function("Buffer", "nvim_win_get_buf",
4787 QList<QString>()
4788 << QString("Window")
4789 , false)
4790 << Function("void", "nvim_win_set_buf",
4791 QList<QString>()
4792 << QString("Window")
4793 << QString("Buffer")
4794 , false)
4795 << Function("ArrayOf(Integer, 2)", "nvim_win_get_cursor",
4796 QList<QString>()
4797 << QString("Window")
4798 , false)
4799 << Function("void", "nvim_win_set_cursor",
4800 QList<QString>()
4801 << QString("Window")
4802 << QString("ArrayOf(Integer, 2)")
4803 , false)
4804 << Function("Integer", "nvim_win_get_height",
4805 QList<QString>()
4806 << QString("Window")
4807 , false)
4808 << Function("void", "nvim_win_set_height",
4809 QList<QString>()
4810 << QString("Window")
4811 << QString("Integer")
4812 , false)
4813 << Function("Integer", "nvim_win_get_width",
4814 QList<QString>()
4815 << QString("Window")
4816 , false)
4817 << Function("void", "nvim_win_set_width",
4818 QList<QString>()
4819 << QString("Window")
4820 << QString("Integer")
4821 , false)
4822 << Function("Object", "nvim_win_get_var",
4823 QList<QString>()
4824 << QString("Window")
4825 << QString("String")
4826 , false)
4827 << Function("void", "nvim_win_set_var",
4828 QList<QString>()
4829 << QString("Window")
4830 << QString("String")
4831 << QString("Object")
4832 , false)
4833 << Function("void", "nvim_win_del_var",
4834 QList<QString>()
4835 << QString("Window")
4836 << QString("String")
4837 , false)
4838 << Function("Object", "window_set_var",
4839 QList<QString>()
4840 << QString("Window")
4841 << QString("String")
4842 << QString("Object")
4843 , false)
4844 << Function("Object", "window_del_var",
4845 QList<QString>()
4846 << QString("Window")
4847 << QString("String")
4848 , false)
4849 << Function("Object", "nvim_win_get_option",
4850 QList<QString>()
4851 << QString("Window")
4852 << QString("String")
4853 , false)
4854 << Function("void", "nvim_win_set_option",
4855 QList<QString>()
4856 << QString("Window")
4857 << QString("String")
4858 << QString("Object")
4859 , false)
4860 << Function("ArrayOf(Integer, 2)", "nvim_win_get_position",
4861 QList<QString>()
4862 << QString("Window")
4863 , false)
4864 << Function("Tabpage", "nvim_win_get_tabpage",
4865 QList<QString>()
4866 << QString("Window")
4867 , false)
4868 << Function("Integer", "nvim_win_get_number",
4869 QList<QString>()
4870 << QString("Window")
4871 , false)
4872 << Function("Boolean", "nvim_win_is_valid",
4873 QList<QString>()
4874 << QString("Window")
4875 , false)
4876 << Function("Integer", "buffer_line_count",
4877 QList<QString>()
4878 << QString("Buffer")
4879 , false)
4880 << Function("ArrayOf(String)", "buffer_get_lines",
4881 QList<QString>()
4882 << QString("Buffer")
4883 << QString("Integer")
4884 << QString("Integer")
4885 << QString("Boolean")
4886 , false)
4887 << Function("void", "buffer_set_lines",
4888 QList<QString>()
4889 << QString("Buffer")
4890 << QString("Integer")
4891 << QString("Integer")
4892 << QString("Boolean")
4893 << QString("ArrayOf(String)")
4894 , false)
4895 << Function("Object", "buffer_get_var",
4896 QList<QString>()
4897 << QString("Buffer")
4898 << QString("String")
4899 , false)
4900 << Function("Object", "buffer_get_option",
4901 QList<QString>()
4902 << QString("Buffer")
4903 << QString("String")
4904 , false)
4905 << Function("void", "buffer_set_option",
4906 QList<QString>()
4907 << QString("Buffer")
4908 << QString("String")
4909 << QString("Object")
4910 , false)
4911 << Function("Integer", "buffer_get_number",
4912 QList<QString>()
4913 << QString("Buffer")
4914 , false)
4915 << Function("String", "buffer_get_name",
4916 QList<QString>()
4917 << QString("Buffer")
4918 , false)
4919 << Function("void", "buffer_set_name",
4920 QList<QString>()
4921 << QString("Buffer")
4922 << QString("String")
4923 , false)
4924 << Function("Boolean", "buffer_is_valid",
4925 QList<QString>()
4926 << QString("Buffer")
4927 , false)
4928 << Function("ArrayOf(Integer, 2)", "buffer_get_mark",
4929 QList<QString>()
4930 << QString("Buffer")
4931 << QString("String")
4932 , false)
4933 << Function("Integer", "buffer_add_highlight",
4934 QList<QString>()
4935 << QString("Buffer")
4936 << QString("Integer")
4937 << QString("String")
4938 << QString("Integer")
4939 << QString("Integer")
4940 << QString("Integer")
4941 , false)
4942 << Function("void", "buffer_clear_highlight",
4943 QList<QString>()
4944 << QString("Buffer")
4945 << QString("Integer")
4946 << QString("Integer")
4947 << QString("Integer")
4948 , false)
4949 << Function("ArrayOf(Window)", "tabpage_get_windows",
4950 QList<QString>()
4951 << QString("Tabpage")
4952 , false)
4953 << Function("Object", "tabpage_get_var",
4954 QList<QString>()
4955 << QString("Tabpage")
4956 << QString("String")
4957 , false)
4958 << Function("Window", "tabpage_get_window",
4959 QList<QString>()
4960 << QString("Tabpage")
4961 , false)
4962 << Function("Boolean", "tabpage_is_valid",
4963 QList<QString>()
4964 << QString("Tabpage")
4965 , false)
4966 << Function("void", "ui_detach",
4967 QList<QString>()
4968 , false)
4969 << Function("Object", "ui_try_resize",
4970 QList<QString>()
4971 << QString("Integer")
4972 << QString("Integer")
4973 , false)
4974 << Function("void", "vim_command",
4975 QList<QString>()
4976 << QString("String")
4977 , false)
4978 << Function("void", "vim_feedkeys",
4979 QList<QString>()
4980 << QString("String")
4981 << QString("String")
4982 << QString("Boolean")
4983 , false)
4984 << Function("Integer", "vim_input",
4985 QList<QString>()
4986 << QString("String")
4987 , false)
4988 << Function("String", "vim_replace_termcodes",
4989 QList<QString>()
4990 << QString("String")
4991 << QString("Boolean")
4992 << QString("Boolean")
4993 << QString("Boolean")
4994 , false)
4995 << Function("String", "vim_command_output",
4996 QList<QString>()
4997 << QString("String")
4998 , false)
4999 << Function("Object", "vim_eval",
5000 QList<QString>()
5001 << QString("String")
5002 , false)
5003 << Function("Object", "vim_call_function",
5004 QList<QString>()
5005 << QString("String")
5006 << QString("Array")
5007 , false)
5008 << Function("Integer", "vim_strwidth",
5009 QList<QString>()
5010 << QString("String")
5011 , false)
5012 << Function("ArrayOf(String)", "vim_list_runtime_paths",
5013 QList<QString>()
5014 , false)
5015 << Function("void", "vim_change_directory",
5016 QList<QString>()
5017 << QString("String")
5018 , false)
5019 << Function("String", "vim_get_current_line",
5020 QList<QString>()
5021 , false)
5022 << Function("void", "vim_set_current_line",
5023 QList<QString>()
5024 << QString("String")
5025 , false)
5026 << Function("void", "vim_del_current_line",
5027 QList<QString>()
5028 , false)
5029 << Function("Object", "vim_get_var",
5030 QList<QString>()
5031 << QString("String")
5032 , false)
5033 << Function("Object", "vim_get_vvar",
5034 QList<QString>()
5035 << QString("String")
5036 , false)
5037 << Function("Object", "vim_get_option",
5038 QList<QString>()
5039 << QString("String")
5040 , false)
5041 << Function("void", "vim_set_option",
5042 QList<QString>()
5043 << QString("String")
5044 << QString("Object")
5045 , false)
5046 << Function("void", "vim_out_write",
5047 QList<QString>()
5048 << QString("String")
5049 , false)
5050 << Function("void", "vim_err_write",
5051 QList<QString>()
5052 << QString("String")
5053 , false)
5054 << Function("void", "vim_report_error",
5055 QList<QString>()
5056 << QString("String")
5057 , false)
5058 << Function("ArrayOf(Buffer)", "vim_get_buffers",
5059 QList<QString>()
5060 , false)
5061 << Function("Buffer", "vim_get_current_buffer",
5062 QList<QString>()
5063 , false)
5064 << Function("void", "vim_set_current_buffer",
5065 QList<QString>()
5066 << QString("Buffer")
5067 , false)
5068 << Function("ArrayOf(Window)", "vim_get_windows",
5069 QList<QString>()
5070 , false)
5071 << Function("Window", "vim_get_current_window",
5072 QList<QString>()
5073 , false)
5074 << Function("void", "vim_set_current_window",
5075 QList<QString>()
5076 << QString("Window")
5077 , false)
5078 << Function("ArrayOf(Tabpage)", "vim_get_tabpages",
5079 QList<QString>()
5080 , false)
5081 << Function("Tabpage", "vim_get_current_tabpage",
5082 QList<QString>()
5083 , false)
5084 << Function("void", "vim_set_current_tabpage",
5085 QList<QString>()
5086 << QString("Tabpage")
5087 , false)
5088 << Function("void", "vim_subscribe",
5089 QList<QString>()
5090 << QString("String")
5091 , false)
5092 << Function("void", "vim_unsubscribe",
5093 QList<QString>()
5094 << QString("String")
5095 , false)
5096 << Function("Integer", "vim_name_to_color",
5097 QList<QString>()
5098 << QString("String")
5099 , false)
5100 << Function("Dictionary", "vim_get_color_map",
5101 QList<QString>()
5102 , false)
5103 << Function("Buffer", "window_get_buffer",
5104 QList<QString>()
5105 << QString("Window")
5106 , false)
5107 << Function("ArrayOf(Integer, 2)", "window_get_cursor",
5108 QList<QString>()
5109 << QString("Window")
5110 , false)
5111 << Function("void", "window_set_cursor",
5112 QList<QString>()
5113 << QString("Window")
5114 << QString("ArrayOf(Integer, 2)")
5115 , false)
5116 << Function("Integer", "window_get_height",
5117 QList<QString>()
5118 << QString("Window")
5119 , false)
5120 << Function("void", "window_set_height",
5121 QList<QString>()
5122 << QString("Window")
5123 << QString("Integer")
5124 , false)
5125 << Function("Integer", "window_get_width",
5126 QList<QString>()
5127 << QString("Window")
5128 , false)
5129 << Function("void", "window_set_width",
5130 QList<QString>()
5131 << QString("Window")
5132 << QString("Integer")
5133 , false)
5134 << Function("Object", "window_get_var",
5135 QList<QString>()
5136 << QString("Window")
5137 << QString("String")
5138 , false)
5139 << Function("Object", "window_get_option",
5140 QList<QString>()
5141 << QString("Window")
5142 << QString("String")
5143 , false)
5144 << Function("void", "window_set_option",
5145 QList<QString>()
5146 << QString("Window")
5147 << QString("String")
5148 << QString("Object")
5149 , false)
5150 << Function("ArrayOf(Integer, 2)", "window_get_position",
5151 QList<QString>()
5152 << QString("Window")
5153 , false)
5154 << Function("Tabpage", "window_get_tabpage",
5155 QList<QString>()
5156 << QString("Window")
5157 , false)
5158 << Function("Boolean", "window_is_valid",
5159 QList<QString>()
5160 << QString("Window")
5161 , false)
5162 ;
5163
5164
5165 QList<Function> supported;
5166 foreach(const QVariant& val, ftable) {
5167 auto f = Function::fromVariant(val);
5168 if (!f.isValid()) {
5169 qDebug() << "Invalid function in metadata" << f;
5170 continue;
5171 }
5172 supported.append(f);
5173
5174 if (!required.contains(f)) {
5175 qDebug() << "Unknown function(api 6)" << f;
5176 }
5177 }
5178
5179 bool ok = true;
5180 foreach(const Function& f, required) {
5181 if (!supported.contains(f)) {
5182 qDebug() << "- instance DOES NOT support API6:" << f;
5183 ok = false;
5184 }
5185 }
5186 return ok;
5187 }
5188
5189 } // Namespace