From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4wrAEvMPk2DTUQEAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 23:36:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2FHXDfMPk2BzMgAAB5/wlQ (envelope-from ) for ; Wed, 05 May 2021 21:36:51 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE48511D69 for ; Wed, 5 May 2021 23:36:50 +0200 (CEST) Received: from localhost ([::1]:35036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lePCL-00073l-Qn for larch@yhetil.org; Wed, 05 May 2021 17:36:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leP8i-0002HW-Jn for bug-guix@gnu.org; Wed, 05 May 2021 17:33:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leP8h-0008MP-9v for bug-guix@gnu.org; Wed, 05 May 2021 17:33:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leP8h-0004rC-5b for bug-guix@gnu.org; Wed, 05 May 2021 17:33:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48240: [PATCH 3/4] store: Export 'connect-to-daemon'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 05 May 2021 21:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48240 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48240@debbugs.gnu.org Received: via spool by 48240-submit@debbugs.gnu.org id=B48240.162025034618637 (code B ref 48240); Wed, 05 May 2021 21:33:03 +0000 Received: (at 48240) by debbugs.gnu.org; 5 May 2021 21:32:26 +0000 Received: from localhost ([127.0.0.1]:34620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP86-0004qW-Iz for submit@debbugs.gnu.org; Wed, 05 May 2021 17:32:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leP84-0004px-11 for 48240@debbugs.gnu.org; Wed, 05 May 2021 17:32:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33914) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leP7x-0007rj-Bh; Wed, 05 May 2021 17:32:18 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56410 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1leP7x-0005m1-4J; Wed, 05 May 2021 17:32:17 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 5 May 2021 23:32:04 +0200 Message-Id: <20210505213205.28519-3-ludo@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210505213205.28519-1-ludo@gnu.org> References: <87a6p9rwu7.fsf@elephly.net> <20210505213205.28519-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620250610; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=dJMMCBxVrlEtp2FWUrP+JuRo5YNgMeRSqnLGLsL2OGw=; b=Qu4pEuBPaKU6JFb1+GXZ96avS5nP8sm6iNQh3cExq9rglDV14t8cQmozfGp7yweqJJn1SD R+v1wxXU/7O2Oc0LInR7SIUhHTppeCDrD5n+gLFwtElipdObWMAUNwygPaypmKMmBEtyM+ kljYLzIt4EV5jCpLTUWisV8zuJPnNaoTZYXv8AwFb2ZWrtgtuw6ZYcE0Vitv+vFFGT5KLw ZPId/FolXShxgB5dY8PRijJ79FqFzjiMClzlt1Us7oyYVXRTHkIMM5JEU/8GKL72JAbqM5 bHZiZuTcMQR7qu33bxpIPRfb1QcKVgx9XwTr6hhoxmJyNHD0VJT8OpDGkaFVaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620250610; a=rsa-sha256; cv=none; b=Jtf8p2EaWYJtqH/Hv6HdyrMpUdyzrTAe73rAXftKPNqZefoXoVT4zdmZILlNAYiOM1u8/g wdrFTFCgetNC/e5JgpN0faQ3ps7g57AWykKA6icM5fQX21GanqNKoYspE7xNk16HxhA1Wg Ja9B8RI7U9UY8QfRh5tqrXUwNBRy8elWuzhs0TZElntoP8N/XZ8DUd0kmOyRr4lLqYCJ9o X7Pze4ovQe1k43BBbw6vd9lO5PoZSE7O5fvBnBXvH7PSz7zjYhKF6EfhPNXX4zluVZEyd7 zkWT+DtMmlLw70Gho5Gmmeph2uD8/yn2JnaQwbAsJ3o8doHMucuk4/9MXt6m7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 2.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: AE48511D69 X-Spam-Score: 2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: AYJ2lvOTd5TW * guix/store.scm (connect-to-daemon): Make public. Improve docstring. --- guix/store.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guix/store.scm b/guix/store.scm index 315ae4cdce..9d706ae590 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -90,6 +90,7 @@ hash-algo build-mode + connect-to-daemon open-connection port->connection close-connection @@ -501,7 +502,10 @@ (define (connect-to-daemon uri) "Connect to the daemon at URI, a string that may be an actual URI or a file -name." +name, and return an input/output port. + +This is a low-level procedure that does not perform the initial handshake with +the daemon. Use 'open-connection' for that." (define (not-supported) (raise (condition (&store-connection-error (file uri) -- 2.31.1