summaryrefslogtreecommitdiff
path: root/src/geometry/geometry.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-03 23:01:31 -0600
committersanine <sanine.not@pm.me>2023-02-03 23:01:31 -0600
commit1b4564c02380d10f7f8630d73441e7f9aa83c812 (patch)
treeda0f9294e1fc7c637547629faab4b45ed3e3494c /src/geometry/geometry.c
parentea512c3b1d2d85ff76aa7d4979c73dd7f1217757 (diff)
begin implementing kai_read_float_array()
Diffstat (limited to 'src/geometry/geometry.c')
-rw-r--r--src/geometry/geometry.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/geometry/geometry.c b/src/geometry/geometry.c
index ba1ca58..5e93c55 100644
--- a/src/geometry/geometry.c
+++ b/src/geometry/geometry.c
@@ -2,4 +2,16 @@
#include <kalmia.h>
#include "util/util.h"
+#include "xml/xml.h"
#include "geometry.h"
+
+
+int kai_read_float_array(struct ka_float_array_t *dest, struct kai_tag_t *src)
+{
+ if (strcmp(src->type, "float_array") != 0) {
+ /* incorrect tag type */
+ return -1;
+ }
+
+ return 0;
+}