diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-07 03:09:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-07 03:09:03 (GMT) |
commit | eb36a96a79dd1cd6514794a18baac5f13ce633ae (patch) | |
tree | 2940bf00d7f8ee011c0de576bae7f10c5d68d36e /src/H5Lpublic.h | |
parent | db3632444bbbba2fdbe60516c89fb83ee4892c23 (diff) | |
download | hdf5-eb36a96a79dd1cd6514794a18baac5f13ce633ae.zip hdf5-eb36a96a79dd1cd6514794a18baac5f13ce633ae.tar.gz hdf5-eb36a96a79dd1cd6514794a18baac5f13ce633ae.tar.bz2 |
[svn-r12872] Description:
Implement basic framework for H5Lget_info_by_idx and get it working for
creation order indices on compact groups.
Clean up code a bit.
Close resource link in user-defined link traversal.
Tested on:
Linux/32 2.6 (chicago)
Diffstat (limited to 'src/H5Lpublic.h')
-rw-r--r-- | src/H5Lpublic.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/H5Lpublic.h b/src/H5Lpublic.h index e944965..eb24375 100644 --- a/src/H5Lpublic.h +++ b/src/H5Lpublic.h @@ -120,6 +120,18 @@ typedef struct { H5L_query_func_t query_func; /* Callback for queries */ } H5L_class_t; +/* + * The types of indices on links in groups. Primarily used for "<do> <foo> by + * index" routines and for iterating over links in groups. + */ +typedef enum H5L_index_t { + H5L_INDEX_UNKNOWN = -1, /* Unknown index type */ + H5L_INDEX_NAME, /* Index on names of links */ + H5L_INDEX_CORDER, /* Index on creation order of links */ + H5L_INDEX_N /* Number of indices defined on links in groups */ +} H5L_index_t; + + /********************/ /* Public Variables */ /********************/ @@ -144,6 +156,9 @@ H5_DLL herr_t H5Lget_val(hid_t loc_id, const char *name, size_t size, void *buf/*out*/, hid_t lapl_id); H5_DLL herr_t H5Lget_info(hid_t loc_id, const char *name, H5L_info_t *linkbuf /*out*/, hid_t lapl_id); +H5_DLL herr_t H5Lget_info_by_idx(hid_t loc_id, const char *group_name, + H5L_index_t idx_type, H5_iter_order_t order, hsize_t n, + H5L_info_t *linkbuf /*out*/, hid_t lapl_id); /* UD link functions */ H5_DLL herr_t H5Lcreate_ud(hid_t link_loc_id, const char *link_name, |