-/**
- * gras_datadesc_get_id_from_name:
- * Returns: -1 in case of error.
- *
- * Retrieve the ID of a previously declared datatype from its name.
- */
-long int
-gras_datadesc_get_id_from_name(const char *name) {
- gras_error_t errcode;
- gras_datadesc_type_t *type;
-
- errcode = gras_datadesc_by_name(name,&type);
- if (errcode != no_error)
- return -1;
- return type->code;
-}
-