RES_STRING
&& res->type == RES_STRING
if (res->type != RES_STRING)
error = resource_create(name, unit, resname, RES_STRING, &res);
case RES_STRING: