GLib-based SDL parser in C