Use glib functions.