aboutsummaryrefslogtreecommitdiff
path: root/src/guile_interface.h.disabled
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-10-01 23:39:00 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-10-01 23:39:00 +0200
commit7539f8c8804849294e100c5442e0397f4f4d2c40 (patch)
tree129fa0bb0f18604bd378724794c855e8e4d230dc /src/guile_interface.h.disabled
parentStart moving to scheme structs. (diff)
downloadcalp-7539f8c8804849294e100c5442e0397f4f4d2c40.tar.gz
calp-7539f8c8804849294e100c5442e0397f4f4d2c40.tar.xz
Disabled bunch of old stuff, new stuff kinda builds.
Diffstat (limited to 'src/guile_interface.h.disabled')
-rw-r--r--src/guile_interface.h.disabled28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/guile_interface.h.disabled b/src/guile_interface.h.disabled
new file mode 100644
index 00000000..76ec24d3
--- /dev/null
+++ b/src/guile_interface.h.disabled
@@ -0,0 +1,28 @@
+#ifndef GUILE_INTERFACE_H
+#define GUILE_INTERFACE_H
+
+#include <libguile.h>
+#include "vcal.h"
+
+/*
+ * At a number of places scm_gc_{un,}protect_object is called.
+ * This is needed since most of my structures are allocated with the
+ * regular malloc, instead of the scm_gc_malloc variants.
+ * This leads to the garbage collector not realizing that I still have
+ * the components, and deletes them.
+ *
+ * The protection markers stop the GC from doing its thing.
+ */
+
+void init_lib (void);
+void init_vcomponent_type (void);
+
+SCM make_vcomponent (SCM);
+SCM vcomponent_get_attribute (SCM, SCM);
+SCM vcomponent_child_count (SCM);
+SCM vcomponent_children (SCM);
+SCM vcomponent_typeof (SCM);
+
+SCM scm_from_vcomponent (vcomponent*);
+
+#endif /* GUILE_INTERFACE_H */