diff options
Diffstat (limited to '')
-rw-r--r-- | src/struct.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/struct.h b/src/struct.h new file mode 100644 index 00000000..838d8180 --- /dev/null +++ b/src/struct.h @@ -0,0 +1,23 @@ +#ifndef STRUCT_H +#define STRUCT_H + +#include <libguile.h> + +#define vcomponent_type scm_from_uint8(0) +#define vcomponent_children scm_from_uint8(1) +#define vcomponent_parent scm_from_uint8(2) +#define vcomponent_lines scm_from_uint8(3) + +inline SCM scm_component_parent(SCM component) { + return scm_struct_ref (component, vcomponent_parent); } + +#define vline_value scm_from_uint8(0) +#define vline_attributes scm_from_uint8(1) + +SCM scm_make_vcomponent(SCM); +SCM scm_add_line_x (SCM, SCM, SCM); +SCM scm_add_child_x (SCM, SCM); +SCM scm_make_vline (); +SCM scm_add_attribute_x (SCM, SCM, SCM); + +#endif /* STRUCT_H */ |