Skip to content

Commit

Permalink
stubs: group all monitor_fdset_* functions in a single file
Browse files Browse the repository at this point in the history
It makes little sense to implement only one of them, so avoid
proliferation of stubs files.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Jan 16, 2017
1 parent 5564edb commit 858d436
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 35 deletions.
5 changes: 1 addition & 4 deletions stubs/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ stub-obj-y += cpu-get-clock.o
stub-obj-y += cpu-get-icount.o
stub-obj-y += dump.o
stub-obj-y += error-printf.o
stub-obj-y += fdset-add-fd.o
stub-obj-y += fdset-find-fd.o
stub-obj-y += fdset-get-fd.o
stub-obj-y += fdset-remove-fd.o
stub-obj-y += fdset.o
stub-obj-y += gdbstub.o
stub-obj-y += get-vm-name.o
stub-obj-y += iothread.o
Expand Down
8 changes: 0 additions & 8 deletions stubs/fdset-add-fd.c

This file was deleted.

8 changes: 0 additions & 8 deletions stubs/fdset-find-fd.c

This file was deleted.

8 changes: 0 additions & 8 deletions stubs/fdset-get-fd.c

This file was deleted.

7 changes: 0 additions & 7 deletions stubs/fdset-remove-fd.c

This file was deleted.

22 changes: 22 additions & 0 deletions stubs/fdset.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "monitor/monitor.h"

int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
{
return -1;
}

int monitor_fdset_dup_fd_find(int dup_fd)
{
return -1;
}

int monitor_fdset_get_fd(int64_t fdset_id, int flags)
{
return -1;
}

void monitor_fdset_dup_fd_remove(int dupfd)
{
}

0 comments on commit 858d436

Please sign in to comment.