+ } else if (strcasecmp(last_key, "orientation") == 0) {
+ char *buf = NULL;
+ asprintf(&buf, "%.*s", len, val);
+ if (strcasecmp(buf, "none") == 0)
+ json_node->orientation = NO_ORIENTATION;
+ else if (strcasecmp(buf, "horizontal") == 0)
+ json_node->orientation = HORIZ;
+ else if (strcasecmp(buf, "vertical") == 0)
+ json_node->orientation = VERT;
+ else LOG("Unhandled orientation: %s\n", buf);
+ free(buf);