From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oR5B6-00046e-Nk for mharc-grub-devel@gnu.org; Thu, 25 Aug 2022 01:13:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR5B5-00046W-Df for grub-devel@gnu.org; Thu, 25 Aug 2022 01:13:15 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:38537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR5B3-00050p-Dw for grub-devel@gnu.org; Thu, 25 Aug 2022 01:13:15 -0400 Received: by mail-qk1-x731.google.com with SMTP id g21so14365189qka.5 for ; Wed, 24 Aug 2022 22:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=FRMVymdgYoFdJEaX7cQ246y8nqmP4OFGSbAjDAir8b4=; b=NUc2vbTrE/CZ/Db0O3wJP/9toE2DEXUHetPsZ86Cx+7dtETGXppoyQLDzNTbanp2M1 alQOIJP3rCsZrvpBjXG/FM4eNcFnryqKDaUw+ejGoftpPfpPe2uyLdGFoRZcLJgabRf+ QoFz6JYm1OCi4JztXeKMG1h79vev3qRqjbPIfxHTqFPfJDgQeSk7YFThAV0VzwLN4Z7Y U999WgmAu3bmh2eOtirdDEA4LAZ5c8hsx7pw6Z8HnkHZf+Q5uPvxvoLkPqTasE//TVTA NgdjL7JxXsU4JlkMJCxsjUPg+DAqc0Iok6puzU2RaMKqNFx1uBe1I50uQUH+tJuHrAsO LOSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=FRMVymdgYoFdJEaX7cQ246y8nqmP4OFGSbAjDAir8b4=; b=0fCVnuBsxEo9Sb/kWQMbOXXxW2Qa0Bn2vePuFinTpqqKvGaUxx0FBNLLpkpmwbFr3/ dAV7Fu/OYsfjrSUqHTT9Jit3ZAsDjBxM0Q01toe8TieuqDgPf3Iqnu5LEvjGWnAwFMS+ WP+CWNNGKaXkZzsSt8eMB5ZTgTK0OlkRCc78UTcLg+6K25hXNkt9XVKGhRdfSRnxP9Rz gqUXozISGTS2Mg/G4CU6SzI3dWyZjyBb5R1sgojt8SuUBeL8eTA6+7q2tHt2WBuuIXpv YdcKhBLKmxM0jjPTOYRVilK967+f4Q+jq9KAbSZPoIlMp22ht/gkWPtXs4MsZ9jBMO6b PTYQ== X-Gm-Message-State: ACgBeo2o2i36h5VP6vV4ohNvUAlJoKuE0mSbHaTKRmprH007ZjcaeTUf Zsu9ZepN5rvOpLq8jV6od7nY34R0KrCuOw== X-Google-Smtp-Source: AA6agR5nTTVnuDMtUzx3bExGzb0uZ7iFewM6nb1QzGpihjTYdCgk3KB/PNDUARyHq9I4hHHUjK40oA== X-Received: by 2002:a05:620a:2545:b0:6a5:b8ed:4087 with SMTP id s5-20020a05620a254500b006a5b8ed4087mr1877557qko.626.1661404391505; Wed, 24 Aug 2022 22:13:11 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.249]) by smtp.gmail.com with ESMTPSA id az44-20020a05620a172c00b006bb87c4833asm16594950qkb.109.2022.08.24.22.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 22:13:11 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Li Gen , Glenn Washburn Subject: [PATCH] efi: Correct function prototype for register_key_notify method of grub_efi_simple_text_input_ex_interface Date: Thu, 25 Aug 2022 00:12:17 -0500 Message-Id: <20220825051216.127081-1-development@efficientek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=development@efficientek.com; helo=mail-qk1-x731.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2022 05:13:15 -0000 From: Li Gen The register_key_notify() method should have an output parameter which is a pointer to the unique handle assigned to the registered notification. Signed-off-by: Li Gen Signed-off-by: Glenn Washburn --- include/grub/efi/api.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h index 1ef404622..7325d3c9f 100644 --- a/include/grub/efi/api.h +++ b/include/grub/efi/api.h @@ -1442,7 +1442,8 @@ struct grub_efi_simple_text_input_ex_interface grub_efi_status_t (*register_key_notify) (struct grub_efi_simple_text_input_ex_interface *this, grub_efi_key_data_t *key_data, - grub_efi_key_notify_function_t key_notification_function); + grub_efi_key_notify_function_t key_notification_function, + void **notify_handle); grub_efi_status_t (*unregister_key_notify) (struct grub_efi_simple_text_input_ex_interface *this, -- 2.34.1