stubs: move monitor_fdsets_cleanup with other fdset stubs
Even though monitor_get_fd() has to remain separate because it is mocked by tests/unit/test-util-sockets, monitor_fdsets_cleanup() is logically part of the stubs for monitor/fds.c, so move it there. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240408155330.522792-19-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3a15604900
commit
748e62dbf5
@ -1,5 +1,7 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "monitor/monitor.h"
|
||||
#include "../monitor/monitor-internal.h"
|
||||
|
||||
int monitor_fdset_dup_fd_add(int64_t fdset_id, int flags)
|
||||
{
|
||||
@ -15,3 +17,7 @@ int64_t monitor_fdset_dup_fd_find(int dup_fd)
|
||||
void monitor_fdset_dup_fd_remove(int dupfd)
|
||||
{
|
||||
}
|
||||
|
||||
void monitor_fdsets_cleanup(void)
|
||||
{
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
#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)
|
||||
{
|
||||
@ -12,7 +11,3 @@ int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
|
||||
void monitor_init_hmp(Chardev *chr, bool use_readline, Error **errp)
|
||||
{
|
||||
}
|
||||
|
||||
void monitor_fdsets_cleanup(void)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user