Skip to content

Commit

Permalink
stubs: Add qemu_set_fd_handler
Browse files Browse the repository at this point in the history
Some qemu_set_fd_handler2 stub callers will be converted to
call qemu_set_fd_handler, add this stub for them before making the
change.

Signed-off-by: Fam Zheng <[email protected]>
Message-id: [email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
Fam Zheng authored and stefanhaRH committed Jun 12, 2015
1 parent d8e3b72 commit 0bc12c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stubs/set-fd-handler.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#include "qemu-common.h"
#include "qemu/main-loop.h"

int qemu_set_fd_handler(int fd,
IOHandler *fd_read,
IOHandler *fd_write,
void *opaque)
{
abort();
}

int qemu_set_fd_handler2(int fd,
IOCanReadHandler *fd_read_poll,
IOHandler *fd_read,
Expand Down

0 comments on commit 0bc12c4

Please sign in to comment.