MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / GMT_Inquire_VirtualFile

Function GMT_Inquire_VirtualFile

src/gmt_api.c:9417–9429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9415#endif
9416
9417int 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
9432int GMT_Inquire_VirtualFile_ (char *string, int len) {

Callers 1

GMT_Inquire_VirtualFile_Function · 0.85

Calls 3

gmtapi_decode_idFunction · 0.85
gmtlib_validate_idFunction · 0.85
gmtapi_get_api_ptrFunction · 0.85

Tested by

no test coverage detected