mapped-devices: Add 'location' and 'check' fields.

* gnu/system/mapped-devices.scm (<mapped-device>)[location]: New field.
(<mapped-device-type>)[check]: New field.
This commit is contained in:
Ludovic Courtès 2017-12-18 14:57:20 +01:00
parent de2032b912
commit 4ca90ff597
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 8 additions and 2 deletions

View File

@ -34,11 +34,13 @@
mapped-device-source mapped-device-source
mapped-device-target mapped-device-target
mapped-device-type mapped-device-type
mapped-device-location
mapped-device-kind mapped-device-kind
mapped-device-kind? mapped-device-kind?
mapped-device-kind-open mapped-device-kind-open
mapped-device-kind-close mapped-device-kind-close
mapped-device-kind-check
device-mapping-service-type device-mapping-service-type
device-mapping-service device-mapping-service
@ -58,14 +60,18 @@
mapped-device? mapped-device?
(source mapped-device-source) ;string | list of strings (source mapped-device-source) ;string | list of strings
(target mapped-device-target) ;string (target mapped-device-target) ;string
(type mapped-device-type)) ;<mapped-device-kind> (type mapped-device-type) ;<mapped-device-kind>
(location mapped-device-location
(default (current-source-location)) (innate)))
(define-record-type* <mapped-device-type> mapped-device-kind (define-record-type* <mapped-device-type> mapped-device-kind
make-mapped-device-kind make-mapped-device-kind
mapped-device-kind? mapped-device-kind?
(open mapped-device-kind-open) ;source target -> gexp (open mapped-device-kind-open) ;source target -> gexp
(close mapped-device-kind-close ;source target -> gexp (close mapped-device-kind-close ;source target -> gexp
(default (const #~(const #f))))) (default (const #~(const #f))))
(check mapped-device-kind-check ;source -> Boolean
(default (const #t))))
;;; ;;;