From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: [PATCH] gnu: services: New exported procedures Date: Sun, 15 Jan 2017 09:00:59 +0000 Message-ID: <20170115090059.3536-1-mail@cbaines.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSggk-0001VJ-0H for guix-devel@gnu.org; Sun, 15 Jan 2017 04:01:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSggf-0002Z1-6q for guix-devel@gnu.org; Sun, 15 Jan 2017 04:01:22 -0500 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:42952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSggf-0002Yb-1g for guix-devel@gnu.org; Sun, 15 Jan 2017 04:01:17 -0500 Received: from localhost (79-71-8-223.dynamic.dsl.as9105.com [79.71.8.223]) by mira.cbaines.net (Postfix) with ESMTPSA id 018D613D1DB for ; Sun, 15 Jan 2017 09:01:14 +0000 (GMT) Received: from dhcppc78.dlink.com (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 23456ab6 for ; Sun, 15 Jan 2017 09:01:14 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/services.scm: Export service-extension-target and service-extension-compute. This allows for greater extensiblity of services by enabling service extensions to be wrapped. For example, the parameters passed to the compute function can be modified, or the return value of the compute function can be modified. --- gnu/services.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/services.scm b/gnu/services.scm index 03112f751..4020fd37e 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -38,6 +38,8 @@ #:use-module (ice-9 match) #:export (service-extension service-extension? + service-extension-target + service-extension-compute service-type service-type? -- 2.11.0