From patchwork Thu Aug 11 12:25:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 109603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7769AB70B9 for ; Thu, 11 Aug 2011 22:23:33 +1000 (EST) Received: from localhost ([::1]:49705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrUIM-0001F6-IK for incoming@patchwork.ozlabs.org; Thu, 11 Aug 2011 08:23:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrUI7-0001Aa-04 for qemu-devel@nongnu.org; Thu, 11 Aug 2011 08:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrUI2-0006SJ-FS for qemu-devel@nongnu.org; Thu, 11 Aug 2011 08:23:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrUI2-0006SD-8W for qemu-devel@nongnu.org; Thu, 11 Aug 2011 08:23:10 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7BCN8eJ027539 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Aug 2011 08:23:08 -0400 Received: from shalem.localdomain.com (vpn1-5-213.ams2.redhat.com [10.36.5.213]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7BCN6ev023599; Thu, 11 Aug 2011 08:23:07 -0400 From: Hans de Goede To: Gerd Hoffmann Date: Thu, 11 Aug 2011 14:25:11 +0200 Message-Id: <1313065515-3815-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Hans de Goede , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 1/5] qemu-char: make qemu_chr_event public 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 Make qemu_chr_event public so that it can be used by chardev code which lives outside of qemu-char.c Signed-off-by: Hans de Goede --- qemu-char.c | 2 +- qemu-char.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 8d39500..5d5a6d5 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -119,7 +119,7 @@ static void char_write_unblocked(void *opaque) chr->chr_write_unblocked(chr->handler_opaque); } -static void qemu_chr_event(CharDriverState *s, int event) +void qemu_chr_event(CharDriverState *s, int event) { /* Keep track if the char device is open */ switch (event) { diff --git a/qemu-char.h b/qemu-char.h index 68e7b5b..77ad62d 100644 --- a/qemu-char.h +++ b/qemu-char.h @@ -107,6 +107,7 @@ int qemu_chr_ioctl(CharDriverState *s, int cmd, void *arg); void qemu_chr_generic_open(CharDriverState *s); int qemu_chr_can_read(CharDriverState *s); void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len); +void qemu_chr_event(CharDriverState *s, int event); int qemu_chr_get_msgfd(CharDriverState *s); void qemu_chr_accept_input(CharDriverState *s); int qemu_chr_add_client(CharDriverState *s, int fd);