| 9415 | #endif |
| 9416 | |
| 9417 | int GMT_Inquire_VirtualFile (void *V_API, const char *string) { |
| 9418 | /* Given a VirtualFile name, retrieve the family of the resulting object */ |
| 9419 | int object_ID, item; |
| 9420 | struct GMTAPI_CTRL *API = NULL; |
| 9421 | if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION); |
| 9422 | if (string == NULL) return_error (V_API, GMT_PTR_IS_NULL); |
| 9423 | if ((object_ID = gmtapi_decode_id (string)) == GMT_NOTSET) |
| 9424 | return_error (V_API, GMT_OBJECT_NOT_FOUND); |
| 9425 | if ((item = gmtlib_validate_id (V_API, GMT_NOTSET, object_ID, GMT_NOTSET, GMT_NOTSET)) == GMT_NOTSET) |
| 9426 | return_error (API, GMT_OBJECT_NOT_FOUND); |
| 9427 | API = gmtapi_get_api_ptr (V_API); |
| 9428 | return API->object[item]->family; |
| 9429 | } |
| 9430 | |
| 9431 | #ifdef FORTRAN_API |
| 9432 | int GMT_Inquire_VirtualFile_ (char *string, int len) { |
no test coverage detected