mirror of
https://dev.lirent.ru/Vatrog/vm-automation-signaling.git
synced 2026-06-25 20:36:36 +03:00
15 lines
505 B
C
15 lines
505 B
C
|
|
#ifndef VMCTL_QMP_H
|
||
|
|
#define VMCTL_QMP_H
|
||
|
|
#include <stddef.h>
|
||
|
|
|
||
|
|
/* qmp.h — minimal QMP client over an AF_UNIX socket: connect (with capability
|
||
|
|
* negotiation), disconnect, and synchronous command execution. */
|
||
|
|
|
||
|
|
typedef struct qmp_conn qmp_conn;
|
||
|
|
|
||
|
|
qmp_conn* qmp_connect(const char* sock_path); /* connect + qmp_capabilities; NULL on error */
|
||
|
|
void qmp_disconnect(qmp_conn* c);
|
||
|
|
int qmp_exec(qmp_conn* c, const char* cmd, char* resp, size_t cap); /* 0=return, -1=error */
|
||
|
|
|
||
|
|
#endif /* VMCTL_QMP_H */
|