diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2004-08-25 03:44:59 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2004-08-25 03:44:59 (GMT) |
commit | 0a965d2236a811f66ff42df732031a150e1020ac (patch) | |
tree | 001765c51deca6aaac80cb48763a2d073869e43d /fortran/src/H5If.c | |
parent | 98623b2787525823f1020a291e534024cbbfe851 (diff) | |
download | hdf5-0a965d2236a811f66ff42df732031a150e1020ac.zip hdf5-0a965d2236a811f66ff42df732031a150e1020ac.tar.gz hdf5-0a965d2236a811f66ff42df732031a150e1020ac.tar.bz2 |
[svn-r9154]
Purpose: Maintenance/bug fixes (OSF1 C++ and missing Fortran APIs)
Description: bringing 1.6 changes to 1.7
Solution:
Platforms tested: OSF1, Solaris 2.8, AIX5.1
Misc. update:
Diffstat (limited to 'fortran/src/H5If.c')
-rw-r--r-- | fortran/src/H5If.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/fortran/src/H5If.c b/fortran/src/H5If.c index 3807778..e739508 100644 --- a/fortran/src/H5If.c +++ b/fortran/src/H5If.c @@ -176,3 +176,33 @@ nh5iget_ref_c(hid_t_f *obj_id, int_f *ref_count) done: return ret_value; } + +/*---------------------------------------------------------------------------- + * Name: h5iget_file_id_c + * Purpose: Call H5Iget_file_id to obtain file identifier from object identifier + * Inputs: obj_id - object identifier + * Outputs: file_id - file identifier + * Returns: 0 on success, -1 on failure + * Programmer: Elena Pourmal + * Tuesday, August 24, 2004 + * Modifications: + *---------------------------------------------------------------------------*/ +int_f +nh5iget_file_id_c(hid_t_f *obj_id, hid_t_f *file_id) +{ + int ret_value; + hid_t c_file_id; + + /* + * Call H5Iget_file_id + */ + if ((c_file_id = H5Iget_file_id(*obj_id)) < 0) + HGOTO_DONE(FAIL); + + /* Set output & return values */ + *file_id=(hid_t_f)c_file_id; + ret_value=0; + +done: + return ret_value; +} |