aboutsummaryrefslogtreecommitdiff
path: root/guile_interface.scm.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-02-26 00:07:42 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-02-26 00:07:42 +0100
commitd1cde5a4c2b656f696ac42aa1ab338551c67e275 (patch)
treeb46e253c8484a78d0719be3c5be33931c4cf5930 /guile_interface.scm.c
parentSingle elemnt lists in components now return their CAR. (diff)
downloadcalp-d1cde5a4c2b656f696ac42aa1ab338551c67e275.tar.gz
calp-d1cde5a4c2b656f696ac42aa1ab338551c67e275.tar.xz
Rename some functions.
Diffstat (limited to 'guile_interface.scm.c')
-rw-r--r--guile_interface.scm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/guile_interface.scm.c b/guile_interface.scm.c
index 725d16e6..537224f6 100644
--- a/guile_interface.scm.c
+++ b/guile_interface.scm.c
@@ -13,7 +13,7 @@ void init_vcomponent_type (void) {
vcomponent_type = scm_make_foreign_object_type(name, slots, NULL);
}
-SCM_DEFINE (make_vcomponent, "make-vcomponent", 1, 0, 0,
+SCM_DEFINE (make_vcomponent, "%vcomponent-make", 1, 0, 0,
(SCM path),
"Loads a vdir iCalendar from the given path.")
{
@@ -34,7 +34,7 @@ SCM_DEFINE (make_vcomponent, "make-vcomponent", 1, 0, 0,
/*
* Returns a line from a component.
*/
-SCM_DEFINE (vcomponent_get_attribute, "vcomponent-get-attribute", 2, 0, 0,
+SCM_DEFINE (vcomponent_get_attribute, "%vcomponent-get-attribute", 2, 0, 0,
(SCM calendar, SCM attr),
"Retuns the given attribute from the vevent object at index in calendar.")
{
@@ -60,7 +60,7 @@ SCM_DEFINE (vcomponent_get_attribute, "vcomponent-get-attribute", 2, 0, 0,
}
}
-SCM_DEFINE (vcomponent_set_attr_x, "vcomponent-set-attribute!", 3, 0, 0,
+SCM_DEFINE (vcomponent_set_attr_x, "%vcomponent-set-attribute!", 3, 0, 0,
(SCM component, SCM attr, SCM new_value),
"")
{
@@ -78,7 +78,7 @@ SCM_DEFINE (vcomponent_set_attr_x, "vcomponent-set-attribute!", 3, 0, 0,
return SCM_UNSPECIFIED;
}
-SCM_DEFINE (vcomponent_child_count, "vcomponent-child-count", 1, 0, 0,
+SCM_DEFINE (vcomponent_child_count, "%vcomponent-child-count", 1, 0, 0,
(SCM component),
"Returns number of child components.")
{
@@ -87,7 +87,7 @@ SCM_DEFINE (vcomponent_child_count, "vcomponent-child-count", 1, 0, 0,
return scm_from_size_t (SIZE(VECT(vcomponent))(&c->components));
}
-SCM_DEFINE(vcomponent_children, "vcomponent-children", 1, 0, 0,
+SCM_DEFINE(vcomponent_children, "%vcomponent-children", 1, 0, 0,
(SCM component),
"")
{
@@ -96,7 +96,7 @@ SCM_DEFINE(vcomponent_children, "vcomponent-children", 1, 0, 0,
return scm_from_vector(&cal->components, vcomponent_type);
}
-SCM_DEFINE(vcomponent_typeof, "vcomponent-typeof", 1, 0, 0,
+SCM_DEFINE(vcomponent_typeof, "%vcomponent-type", 1, 0, 0,
(SCM component),
"Returns type of vcomponent")
{
@@ -105,7 +105,7 @@ SCM_DEFINE(vcomponent_typeof, "vcomponent-typeof", 1, 0, 0,
return scm_from_utf8_symbol(comp->type);
}
-void init_vcomponent () {
+void init_lib (void) {
init_vcomponent_type();
#ifndef SCM_MAGIC_SNARFER