aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-11-11 11:07:33 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-11-11 11:07:33 +0100
commit46ea14114b6d944824de941b60862cdd7c0d35ef (patch)
treec7b3f577ca1fd8ee8f8c6dea5987bb462fd39539 /module
parentAdd error for invalid main. (diff)
downloadcalp-46ea14114b6d944824de941b60862cdd7c0d35ef.tar.gz
calp-46ea14114b6d944824de941b60862cdd7c0d35ef.tar.xz
Change attribute to return hash-map.
Diffstat (limited to 'module')
-rw-r--r--module/vcomponent/base.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/vcomponent/base.scm b/module/vcomponent/base.scm
index 2041e126..aa5b9de9 100644
--- a/module/vcomponent/base.scm
+++ b/module/vcomponent/base.scm
@@ -100,9 +100,12 @@
;; Returns the properties of attribute as an assoc list.
;; @code{(map car <>)} leads to available properties.
(define-public (properties attrptr)
- (hash-map->list cons (get-vline-parameters attrptr)))
+ (hash-map->list list (get-vline-parameters attrptr)))
(define-public (attributes component)
+ (get-component-attributes component))
+
+(define-public (attribute-keys component)
(map car (hash-map->list cons (get-component-attributes component))))
(define (copy-vline vline)