summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Gf.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2008-07-16 16:12:50 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2008-07-16 16:12:50 (GMT)
commit21401d18912008750bdd7b2b0406cd5ac9aa185a (patch)
tree098bfc1fc62701d81e3e5c48bf6a4f69e449f35a /fortran/src/H5Gf.c
parent27ee3e76fa5fbd82fabd014067dd16a73bec3c2e (diff)
downloadhdf5-21401d18912008750bdd7b2b0406cd5ac9aa185a.zip
hdf5-21401d18912008750bdd7b2b0406cd5ac9aa185a.tar.gz
hdf5-21401d18912008750bdd7b2b0406cd5ac9aa185a.tar.bz2
[svn-r15377] Description:
Added optional "mounted" parameter to H5Gget_info_f, H5Gget_info_by_idx_f, H5Gget_info_by_name_f
Diffstat (limited to 'fortran/src/H5Gf.c')
-rw-r--r--fortran/src/H5Gf.c30
1 files changed, 24 insertions, 6 deletions
diff --git a/fortran/src/H5Gf.c b/fortran/src/H5Gf.c
index 28e5312..1f3e416 100644
--- a/fortran/src/H5Gf.c
+++ b/fortran/src/H5Gf.c
@@ -725,14 +725,18 @@ done:
*
* nlinks - Number of links in group
* max_corder - Current maximum creation order value for group
+ * mounted - Whether group has a file mounted on it (0 = false, 1 = true)
*
* Returns: 0 on success, -1 on failure
* Programmer: M.S. Breitenfeld
* February 15, 2008
- * Modifications: N/A
+ * Modifications:
+ * - Added 'mounted' paramater
+ * M.S. Breitenfeld
+ * July 16, 2008
*---------------------------------------------------------------------------*/
int_f
-nh5gget_info_c (hid_t_f *group_id, int_f *storage_type, int_f *nlinks, int_f *max_corder)
+nh5gget_info_c (hid_t_f *group_id, int_f *storage_type, int_f *nlinks, int_f *max_corder, int_f *mounted )
{
int_f ret_value = 0; /* Return value */
@@ -749,6 +753,8 @@ nh5gget_info_c (hid_t_f *group_id, int_f *storage_type, int_f *nlinks, int_f *ma
*storage_type = (int_f)ginfo.storage_type;
*nlinks = (int_f)ginfo.nlinks;
*max_corder = (int_f)ginfo.max_corder;
+ *mounted = 0;
+ if(ginfo.mounted) *mounted = 1;
done:
return ret_value;
@@ -774,16 +780,20 @@ done:
*
* nlinks - Number of links in group
* max_corder - Current maximum creation order value for group
+ * mounted - Whether group has a file mounted on it (0 = false, 1 = true)
*
* Returns: 0 on success, -1 on failure
* Programmer: M.S. Breitenfeld
* February 18, 2008
- * Modifications: N/A
+ * Modifications:
+ * - Added 'mounted' paramater
+ * M.S. Breitenfeld
+ * July 16, 2008
*---------------------------------------------------------------------------*/
int_f
nh5gget_info_by_idx_c(hid_t_f *loc_id, _fcd group_name, size_t_f *group_namelen,
int_f *index_type, int_f *order, hsize_t_f *n, hid_t_f *lapl_id,
- int_f *storage_type, int_f *nlinks, int_f *max_corder)
+ int_f *storage_type, int_f *nlinks, int_f *max_corder, int_f *mounted )
{
char *c_group_name = NULL; /* Buffer to hold group name C string */
@@ -807,6 +817,8 @@ nh5gget_info_by_idx_c(hid_t_f *loc_id, _fcd group_name, size_t_f *group_namelen,
*storage_type = (int_f)ginfo.storage_type;
*nlinks = (int_f)ginfo.nlinks;
*max_corder = (int_f)ginfo.max_corder;
+ *mounted = 0;
+ if(ginfo.mounted) *mounted = 1;
done:
if(c_group_name)
@@ -830,15 +842,19 @@ nh5gget_info_by_idx_c(hid_t_f *loc_id, _fcd group_name, size_t_f *group_namelen,
*
* nlinks - Number of links in group
* max_corder - Current maximum creation order value for group
+ * mounted - Whether group has a file mounted on it (0 = false, 1 = true)
*
* Returns: 0 on success, -1 on failure
* Programmer: M.S. Breitenfeld
* February 18, 2008
- * Modifications: N/A
+ * Modifications:
+ * - Added 'mounted' paramater
+ * M.S. Breitenfeld
+ * July 16, 2008
*---------------------------------------------------------------------------*/
int_f
nh5gget_info_by_name_c(hid_t_f *loc_id, _fcd group_name, size_t_f *group_namelen, hid_t_f *lapl_id,
- int_f *storage_type, int_f *nlinks, int_f *max_corder)
+ int_f *storage_type, int_f *nlinks, int_f *max_corder, int_f *mounted)
{
char *c_group_name = NULL; /* Buffer to hold group name C string */
@@ -861,6 +877,8 @@ nh5gget_info_by_name_c(hid_t_f *loc_id, _fcd group_name, size_t_f *group_namelen
*storage_type = (int_f)ginfo.storage_type;
*nlinks = (int_f)ginfo.nlinks;
*max_corder = (int_f)ginfo.max_corder;
+ *mounted = 0;
+ if(ginfo.mounted) *mounted = 1;
done:
if(c_group_name)