From patchwork Thu Jul 5 15:16:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 169218 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A954C2C0204 for ; Fri, 6 Jul 2012 02:13:59 +1000 (EST) Received: from localhost ([::1]:56341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smnoc-0003Ui-L0 for incoming@patchwork.ozlabs.org; Thu, 05 Jul 2012 11:17:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smnnq-0001Co-ID for qemu-devel@nongnu.org; Thu, 05 Jul 2012 11:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Smnnl-0001xf-J4 for qemu-devel@nongnu.org; Thu, 05 Jul 2012 11:17:10 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:39325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smnnl-0001v8-CC for qemu-devel@nongnu.org; Thu, 05 Jul 2012 11:17:05 -0400 Received: by mail-yw0-f45.google.com with SMTP id o21so9365393yho.4 for ; Thu, 05 Jul 2012 08:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=gSou+3AH6I276ht3dSrvS4UVgTjSN67oajxgFSM6pEQ=; b=l1UOxoNmMIzz81HDMJv8aCtmzlKKnxwx3tlrPnaLmMacbFVZITeXfGqCMGOxDucAgG UG6YFfn3XtlqlA5sk7IbVkme0ftFYrmyN2ZqeLcKP12XNae+mQJxBeJE+vrr4VQbiv0k Mt9emzb8ddvxSsIvKtx6XCf5DKD4R+LCA4muiLTUA/6ez28ZJ4RzzdaGEc7X2HcCzuO0 52vJno0O3pkAJPhvKrAPogwkM/gEtBPJBHMDbZQja0skWUI7+Nh43+TVmlFpxGb194yf zugLG5P3BDW1hw52+FxvLdCLySu2iwfE4SaSh2otsFHecaQmqvIgfgJyIWMG20YfVgG9 V7Sw== Received: by 10.66.9.2 with SMTP id v2mr37961081paa.65.1341501424025; Thu, 05 Jul 2012 08:17:04 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-189-113.ip51.fastwebnet.it. [93.34.189.113]) by mx.google.com with ESMTPS id jv6sm19931888pbc.40.2012.07.05.08.17.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 08:17:03 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 5 Jul 2012 17:16:24 +0200 Message-Id: <1341501390-797-4-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.10.2 In-Reply-To: <1341501390-797-1-git-send-email-pbonzini@redhat.com> References: <1341501390-797-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.45 Cc: kvm@vger.kernel.org, mst@redhat.com, jan.kiszka@siemens.com, mtosatti@redhat.com, avi@redhat.com, anthony.perard@citrix.com, stefano.stabellini@eu.citrix.com Subject: [Qemu-devel] [PATCH uq/master 3/9] event_notifier: add event_notifier_init_fd X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Paolo Bonzini --- event_notifier.c | 7 +++++++ event_notifier.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/event_notifier.c b/event_notifier.c index c339bfe..99c376c 100644 --- a/event_notifier.c +++ b/event_notifier.c @@ -10,11 +10,18 @@ * See the COPYING file in the top-level directory. */ +#include "qemu-common.h" #include "event_notifier.h" + #ifdef CONFIG_EVENTFD #include #endif +void event_notifier_init_fd(EventNotifier *e, int fd) +{ + e->fd = fd; +} + int event_notifier_init(EventNotifier *e, int active) { #ifdef CONFIG_EVENTFD diff --git a/event_notifier.h b/event_notifier.h index 9b2edf4..30c12dd 100644 --- a/event_notifier.h +++ b/event_notifier.h @@ -16,9 +16,10 @@ #include "qemu-common.h" struct EventNotifier { - int fd; + int fd; }; +void event_notifier_init_fd(EventNotifier *, int fd); int event_notifier_init(EventNotifier *, int active); void event_notifier_cleanup(EventNotifier *); int event_notifier_get_fd(EventNotifier *);