gpt_uuid_get
if (gpt_uuid_get(gpt, &type) == -1)
int gpt_uuid_get(gpt_t, gpt_uuid_t *);
if (gpt == NULL || gpt_uuid_get(gpt, &newtype) == -1)