From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK3Vz-0007w5-V3 for qemu-devel@nongnu.org; Wed, 20 Aug 2014 06:53:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK3Vo-0003KB-5l for qemu-devel@nongnu.org; Wed, 20 Aug 2014 06:53:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK3Vn-0003K5-Vd for qemu-devel@nongnu.org; Wed, 20 Aug 2014 06:53:04 -0400 From: Fam Zheng Date: Wed, 20 Aug 2014 18:01:23 +0800 Message-Id: <1408528887-22200-3-git-send-email-famz@redhat.com> In-Reply-To: <1408528887-22200-1-git-send-email-famz@redhat.com> References: <1408528887-22200-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 2/6] stubs: Add iohandler.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, mjt@tls.msk.ru, stefanha@redhat.com Add stub function "qemu_set_fd_handler" which is used by util/event_notifier-posix.c. Signed-off-by: Fam Zheng --- stubs/Makefile.objs | 1 + stubs/iohandler.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 stubs/iohandler.c diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 5e347d0..d9cad1b 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -40,3 +40,4 @@ stub-obj-$(CONFIG_WIN32) += fd-register.o stub-obj-y += cpus.o stub-obj-y += kvm.o stub-obj-y += qmp_pc_dimm_device_list.o +stub-obj-y += iohandler.o diff --git a/stubs/iohandler.c b/stubs/iohandler.c new file mode 100644 index 0000000..97c0ce5 --- /dev/null +++ b/stubs/iohandler.c @@ -0,0 +1,20 @@ +/* + * iohandler stub functions + * + * Copyright Red Hat, Inc., 2014 + * + * Author: Fam Zheng + * + * This work is licensed under the terms of the GNU GPL, version 2 or + * later. See the COPYING file in the top-level directory. + */ + +#include "qemu/main-loop.h" + +int qemu_set_fd_handler(int fd, + IOHandler *fd_read, + IOHandler *fd_write, + void *opaque) +{ + abort(); +} -- 2.0.3