#include #include #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; } char *count_str = kai_tag_get_attr(src, "count"); if (count_str == NULL) { /* missing required count attribute! */ return -1; } return 0; }