From 79f4b0d33cbb490f957d081bd7c8bc97bd4c689c Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 7 Feb 2023 17:52:17 -0600 Subject: fix parser using REJECT so that example works --- include/kalmia.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') diff --git a/include/kalmia.h b/include/kalmia.h index a09ab9d..79fb004 100644 --- a/include/kalmia.h +++ b/include/kalmia.h @@ -151,4 +151,24 @@ struct ka_geometry_t { }; +struct ka_library_geometries_t { + char *id; + char *name; + + unsigned int geometry_count; + struct ka_geometry_t *geometry; +}; + + +/******** kalmia_t ********/ + +struct kalmia_t { + struct ka_library_geometries_t *library_geometries; +}; + + +struct kalmia_t * kalmia_parse_file(const char *filename); +void kalmia_destroy(struct kalmia_t *k); + + #endif -- cgit v1.2.1