From patchwork Wed Jul 5 13:31:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 699240 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp2781662wrs; Wed, 5 Jul 2023 06:34:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAqXVM8PzY3JaUDSYRhprEe+Xg1XIlRPL0xXGJsRZFXWzPCcI/qJxuLOZsz2v83Wubv75D X-Received: by 2002:a05:620a:4d8c:b0:765:a651:a60f with SMTP id uw12-20020a05620a4d8c00b00765a651a60fmr13205529qkn.60.1688564042848; Wed, 05 Jul 2023 06:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688564042; cv=none; d=google.com; s=arc-20160816; b=AulaDaYJAUd5oVEuUTW/sQ3re2s/udthEuwnGA3yLDwS6hDVJTArYTCX/XdZu1gdln /LIRHF9k12Ynorv+wJz3ngdQJyt0wpWxRPRfbBHoWn622QoeeZW6Yxg5L6FYNRKzm7gv 4xZascFL/qnYE3kXupgfdcNF6U+XlnbQ1TveN/ReCxPHcPeH0gYRvUNYrZRmsw5vVh26 I2OQ260cJmtnQJObOUalxxaXPFPR811bGJARUlJ63RjcROIocCOeBU74mLdz5oXpurDj rN6xkKkGWy6Lg/50/pDSzC6n/KpqZKnWZW710jn2YLNoyFHJcZNK5in1W2Ch8eKM0TPC Uvfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hTQw0+m/TSUjm/E7y2FkWg7UcKy3q1iulYca/mbmODQ=; fh=QXqlxiHoBliGFMptr7ZMhDvY0ya7oCRNrlYjmpX9sZY=; b=Ww1QYu9Yd/WGmXmywRJOlRUfooraULsXL6SYVovXB0XssxKgsVvWVdjcISh8TxAT3g 1JGDthy2V3raIxXuvo3P9TqR7yqXFfQRTEEJMJRv97KBrWHaT+YVh9xXHFZIIEijzgdS vT8zqcvH/c1QUh8LiXdZ6betNYS+stRchN2adOxeUYS5oy8dtOjz3/R68z8vuIYwlRVf jVte3WAZbnpNOtGoF+Kgt16Ei1EWjk5qegZvc0cZ64o7GUdximwavwGM2Nmp5RyPSGCW eJmUNDMDWJ0tJgIbnfPUHhHNM3zf+ZsWXFcuj5dJ60LXkVjTjNrWv7fkv/iw0XJBhI6p q3Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mgXBbAvo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id rg8-20020a05620a8ec800b007671f777aa5si10636753qkn.358.2023.07.05.06.34.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jul 2023 06:34:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mgXBbAvo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qH2co-0006XY-Fq; Wed, 05 Jul 2023 09:32:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qH2cX-0006OZ-Kj for qemu-devel@nongnu.org; Wed, 05 Jul 2023 09:32:42 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qH2cV-00024a-OT for qemu-devel@nongnu.org; Wed, 05 Jul 2023 09:32:37 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5149aafef44so7677523a12.0 for ; Wed, 05 Jul 2023 06:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688563953; x=1691155953; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hTQw0+m/TSUjm/E7y2FkWg7UcKy3q1iulYca/mbmODQ=; b=mgXBbAvoJ1d/4T84vYM7w9ALmPodsi78fAF8trS6HASjpjd+vvCvsUg98x6nHSmT5a l8GiM+pS/kcyjazWKzCtIuwBkHK/6u4cpLELSBpdkmbDPcFeCanwpP5tMRaqxnf2gnhX XQ1pvvnkgC6mQ8U2wXVw6qvikeSI4Tm+pi+2aQQywp6no31K+q0Kknyud979R+hE2b24 3xzJwbDquUDpIKKOebKsq4m6tWfG+UIFe5OTOzu1lnWt6fYoNxEXyg3prBYoFFpCvlfQ L38QIEQG/soeqypPOegcF1GlJ6HplJG2FalbawsxvzqZKwsIn03dEBFm+8Xn+a0Apau5 owgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688563953; x=1691155953; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hTQw0+m/TSUjm/E7y2FkWg7UcKy3q1iulYca/mbmODQ=; b=bN6f3g1b3dhMFawq4gF/lG0BaXXK1dA39tnP4jLCM1iEgHrkG7dHfwFChxoPSUnx9H 3BHcd67kUrv6QgBb9AFHEsBOzKZZCDyiTxPWLq59bqMhTZGypXNXS4NQUghzMu1PCutt Lp9+bPTiFTzLXjVcQum6y3Y8nzdET65raN6olUCdnMPqUGbGDGmDySqB6LZKQYP+N/Zj UB+7h5AMaVLPY1FLZTmKna2PtPTJ9Yg7pbJpOQyFejw9i2fSXvVQvvvLJjA7UCxJMnkK bayLukinySeAQV5WtOjbadznrV/Fv0HWNAv2/W6AHEwRfU/7eNcWDVQWqtS4nVjKuDRf 4ETg== X-Gm-Message-State: ABy/qLYQHp/UbD7mGQj55VOeF4zaSVRonb5DVq/YhhH1Gj2pbx1QtKqB 6BFTkzqw0DLugzIHJ/68+cRBdW71gNv6WhOiFe4= X-Received: by 2002:a17:906:c408:b0:991:caa8:fc3a with SMTP id u8-20020a170906c40800b00991caa8fc3amr10944746ejz.72.1688563953770; Wed, 05 Jul 2023 06:32:33 -0700 (PDT) Received: from m1x-phil.lan ([176.176.142.96]) by smtp.gmail.com with ESMTPSA id n17-20020a1709065e1100b00991481e7c53sm12507910eju.206.2023.07.05.06.32.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 05 Jul 2023 06:32:33 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Joel Stanley , Markus Armbruster , Alistair Francis , Laurent Vivier , "Edgar E. Iglesias" , Peter Maydell , "Dr. David Alan Gilbert" , =?utf-8?q?Marc-Andr=C3=A9_Lure?= =?utf-8?q?au?= , Paolo Bonzini , Amit Shah , qemu-riscv@nongnu.org, "Michael S. Tsirkin" , Jason Wang , qemu-arm@nongnu.org, =?utf-8?q?Daniel_P?= =?utf-8?q?=2E_Berrang=C3=A9?= , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 3/4] chardev/char-fe: Document FEWatchFunc typedef Date: Wed, 5 Jul 2023 15:31:38 +0200 Message-Id: <20230705133139.54419-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230705133139.54419-1-philmd@linaro.org> References: <20230705133139.54419-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=philmd@linaro.org; helo=mail-ed1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Acked-by: Marc-André Lureau --- include/chardev/char-fe.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/chardev/char-fe.h b/include/chardev/char-fe.h index 309960046a..ec3f706a14 100644 --- a/include/chardev/char-fe.h +++ b/include/chardev/char-fe.h @@ -175,6 +175,20 @@ void qemu_chr_fe_printf(CharBackend *be, const char *fmt, ...) G_GNUC_PRINTF(2, 3); +/** + * FEWatchFunc: a #GSourceFunc called when any conditions requested by + * qemu_chr_fe_add_watch() is satisfied. + * @do_not_use: depending on the underlying chardev, a GIOChannel or a + * QIOChannel. DO NOT USE! + * @cond: bitwise combination of conditions watched and satisfied + * before calling this callback. + * @data: user data passed at creation to qemu_chr_fe_add_watch(). Can + * be NULL. + * + * Returns: G_SOURCE_REMOVE if the GSource should be removed from the + * main loop, or G_SOURCE_CONTINUE to leave the GSource in + * the main loop. + */ typedef gboolean (*FEWatchFunc)(void *do_not_use, GIOCondition condition, void *data); /**