aboutsummaryrefslogtreecommitdiff
path: root/stubs/monitor-internal.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-04-08 17:53:29 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-18 11:17:27 +0200
commit3a15604900c4f433c970cc6294520a98f201287e (patch)
treebade01ad1922eb87584e578986bfe56954c4fe02 /stubs/monitor-internal.c
parent957eca9e73279453899193c053d1a47304e9aa58 (diff)
stubs: include stubs only if needed
Currently it is not documented anywhere why some functions need to be stubbed. Group the files in stubs/meson.build according to who needs them, both to reduce the size of the compilation and to clarify the use of stubs. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20240408155330.522792-18-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs/monitor-internal.c')
-rw-r--r--stubs/monitor-internal.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/stubs/monitor-internal.c b/stubs/monitor-internal.c
new file mode 100644
index 0000000000..20786ac4ff
--- /dev/null
+++ b/stubs/monitor-internal.c
@@ -0,0 +1,18 @@
+#include "qemu/osdep.h"
+#include "qapi/error.h"
+#include "monitor/monitor.h"
+#include "../monitor/monitor-internal.h"
+
+int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
+{
+ error_setg(errp, "only QEMU supports file descriptor passing");
+ return -1;
+}
+
+void monitor_init_hmp(Chardev *chr, bool use_readline, Error **errp)
+{
+}
+
+void monitor_fdsets_cleanup(void)
+{
+}