diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2008-06-18 19:53:28 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2008-06-18 19:53:28 (GMT) |
commit | b98dea5cf1a6fc0e4ce37621720cf339148d3e3b (patch) | |
tree | 89330bd1d6d8b866f1a6d90df8a86ceb3957fc38 /fortran/src/H5Tf.c | |
parent | 922a109192727c1d091e81069acd743da082872f (diff) | |
download | hdf5-b98dea5cf1a6fc0e4ce37621720cf339148d3e3b.zip hdf5-b98dea5cf1a6fc0e4ce37621720cf339148d3e3b.tar.gz hdf5-b98dea5cf1a6fc0e4ce37621720cf339148d3e3b.tar.bz2 |
[svn-r15233] Description:
Added the function h5tget_native_type and associated
requirements.
Diffstat (limited to 'fortran/src/H5Tf.c')
-rw-r--r-- | fortran/src/H5Tf.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fortran/src/H5Tf.c b/fortran/src/H5Tf.c index 633389b..490d739 100644 --- a/fortran/src/H5Tf.c +++ b/fortran/src/H5Tf.c @@ -1840,3 +1840,29 @@ nh5tcompiler_conv_c ( hid_t_f *src_id, hid_t_f *dst_id, int_f *c_flag) ret_value = 0; return ret_value; } +/*---------------------------------------------------------------------------- + * Name: h5tget_native_type_c + * Purpose: Call H5Tget_native_type + * Inputs: + * dtype_id - Datatype identifier for the dataset datatype. + * direction - Direction of search. + * Outputs: native_dtype_id - The native datatype identifier for the specified dataset datatype + * Returns: 0 on success, -1 on failure + * Programmer: M.S. Breitenfeld + * June 18, 2008 + * Modifications: + *---------------------------------------------------------------------------*/ + +int_f +nh5tget_native_type_c(hid_t_f *dtype_id, int_f *direction, hid_t_f *native_dtype_id) +{ + int ret_value = -1; + hid_t status; + + status = H5Tget_native_type( (hid_t)*dtype_id, (H5T_direction_t)*direction); + if ( status < 0 ) return ret_value; + *native_dtype_id = (hid_t_f)status; + ret_value = 0; + return ret_value; +} + |