1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef LIBQMP_H
19#define LIBQMP_H
20
21#include "qapi/qmp/qdict.h"
22
23QDict *qmp_fd_receive(int fd);
24#ifndef _WIN32
25void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num,
26 const char *fmt, va_list ap) G_GNUC_PRINTF(4, 0);
27#endif
28void qmp_fd_vsend(int fd, const char *fmt, va_list ap) G_GNUC_PRINTF(2, 0);
29void qmp_fd_send(int fd, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
30void qmp_fd_send_raw(int fd, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
31void qmp_fd_vsend_raw(int fd, const char *fmt, va_list ap) G_GNUC_PRINTF(2, 0);
32QDict *qmp_fdv(int fd, const char *fmt, va_list ap) G_GNUC_PRINTF(2, 0);
33QDict *qmp_fd(int fd, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
34
35
36
37
38
39
40
41
42bool qmp_rsp_is_err(QDict *rsp);
43
44
45
46
47
48
49
50
51void qmp_expect_error_and_unref(QDict *rsp, const char *class);
52
53#endif
54