mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
4b7f34acc1
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* Apply patch for dynamically registering optional VOL operations
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Remove H5Dwait & H5Fwait (moved to the async connector). Added H5atclose
routine. Updated 'optional op' operations.
* Fix missed merge marker, and reformatted line
* Update API tracing infrastructure for H5atclose callback
* Clean up some warnings
* Normalize against develop branch
* Correct level of indirection
* Add doxygen info for H5is_library_terminating and regression tests for it and H5atclose
* Relocate prototype (and doxygen info) for H5Aclose
* Align w/changes on develop
* Move group package initialization code to H5Gint.c, and update tracing macros
* Change non-static function declarations to be static
* Correct GCC diagnostic macro
* Ensure that H5TSpublic.h header gets installed (#129)
* Finish moving API routines that invoke VOL framework to main source files.
* Fix position of H5Fmount and H5Funmount
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Add wrappers for dynamically registered optional operations
* Fix typo
* Update doxygen comment for H5atclose with additional detail.
* Add H5VL\*_vararg versions of H5VL routines that use va_list parameters
* Implement and test H5S_BLOCK
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Finish another iteration on public H5ES routines, along with running the code reformatter
* Another round of reformatting
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
* Remove H5Dwait and H5Fwait calls, which were incorrectly brought back in
* Tiny cleanup of H5Lcreate_hard_async
* Run source formatter
* Allow for canceled operation in wait_cb
* Attempt to fix switch on string value
* Re-run source formatter
* Add H5S_BLOCK testfile to CMake clean target
* Add H5Pset_vol_async API routine and 'get_cap_flags' VOL introspection callback
* Clean up warnings
* Add H5P(set\|get)_vol_implicit_async API routines to allow \/ disallow implicit asynchronous operations (default is disallowed)
* Run formatting script
* Remove H5VL_REQUEST_WAIT\*
* Warning cleanup
* Eliminate strdup()s on statically allocated strings
* Warning cleanup
* Split H5VLrestore_lib_state into H5VLstart_lib_state and H5VLrestore_lib_state, and rename H5VLreset_lib_state to H5VLfinish_lib_state.
* Duplicate strings when building err_info to return to applicatin
* Move connector author routines into seperate header files, all included in the new hdf5dev.h header
* Run bin/trace to add TRACE macros
* Allow H5ES_NONE as a valid, but no-op, parameter to all H5ES API routines that accept an event set ID
* Clean up formatting
* Remove H5Pset/get_vol_implicit_async
* Clean up warning
* Remove H5Pget_vol_async and replace with more generic H5Pget_vol_cap_flags
* Clean up warnings
* Add H5ESfree_err_info convenience routine
* Fix typo
* Correct matching for cached VOL plugins
* Add developer header file
* Update for C99 compatibility
* Add missing trace macro
* Stop clang-format from messing with the trace macros. Don't set up VOL wrappers for 'infrastructure' objects like requests and blobs
* Fix warning about formatting a directory
* Clean up formatting for H5E_BEGIN_TRY / H5E_END_TRY
* Reduce scope of H5ES__close
* Enable CMake checks for various types on MacOS
* Clean up properly when H5CX_retrieve_state() fails. Also clean up many compiler warnings.
* Committing clang-format changes
* Merge from develop
* Fix mis-placed assert
* Remove commented-out code
* Re-add macro for unsetenv on Windows (I think it accidentally was merged out)
* Strengthen sanity check from error report to assertion
* Committing clang-format changes
* Add units to the comments for a few fields
* Switch 'get execution time' operation for async request tokens to be an optional operation and query if connector supports operation before retrieving it.
* Committing clang-format changes
* Remove H5ESget_time_estimate
* Committing clang-format changes
* Create developer header for datatype routines and move type conversion register/unregister routines there.
* Simplify internal H5VL_setup_name_args and H5VL_setup_idx_args routines
* Add H5VLlink_optional_op, allowing dynamicly registered optional operations for the link VOL subclass, also added H5VL_loc_params argument to the link 'optional' callback to allow them to work correctly.
* Run bin/format_source on current code
* Add H5VLobject_optional_op, allowing dynamicly registered optional operations for the object VOL subclass, also added H5VL_loc_params argument to the object 'optional' callback to allow them to work correctly.
* Run bin/format_source on current code
* Committing clang-format changes
* Revert "Switch 'get execution time' operation for async request tokens to be an optional operation and query if connector supports operation before retrieving it."
This reverts commit 5ac92014da
.
* Committing clang-format changes
* Convert attribute 'get' operation to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs.
* Update tracing macros
* Convert attribute 'specific' operation to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs.
* Convert dataset 'get' and 'specific' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs. Also, minor tweaks to attribute 'get' and 'specific' operation parameters.
* Convert datatype 'get' and 'specific' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs. Also, minor tweaks to H5O_refresh_metadata arguments.
* Reduce warnings
* Reduce warnings
* Track change to datatype 'get' callback
* Fix bug with file pointer getting invalidated when object closed
* Reformat source
* Convert file and group VOL classes 'get' and 'specific' operations to use
struct-of-tagged-union pattern for VOL callback arguments, instead of using
varargs. Also small cleanup to the attribute get name operation. Also moved
'mount' and 'unmount' operations to be group specific operations, instead of
file specific, to better align with their behavior (mounted files are on
groups, so a group is what is operated on).
* Remove remainder of merge conflict marking
* Convert link VOL class 'create' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs.
* Remove some unused local variables
* Convert link VOL class 'get' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs. Also refactor 'get name by idx' routines to return actual length of name with a parameter instead of the return value, and move some callback context structs for the link interface from the private header file into the source code module, to reduce their visibility scope.
* Update tracing macros
* Convert link VOL class 'specific' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs.
* Convert object VOL class 'get' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs.
* Convert object VOL class 'specific' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs. Also refactor H5G_loc_exists, et al, to return 'exists' flag in a parameter and errors with the function return value, instead of overloading both into the return value. And, corrected logic error in test/links.c around non-existant objects in a file.
* Convert request VOL class 'specific' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs.
* Convert blob VOL class 'specific' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs. Also removes the H5VL_BLOB_GETSIZE operation, as it's unused in the library and the blob ID size for a container is now returned with H5VL_FILE_GET_CONT_INFO.
* Add 'const' to several parameters that are only queried.
* Convert all VOL classes' 'optional' operations to use struct-of-tagged-union pattern for VOL callback arguments, instead of using varargs. Convert several 'get' routines to return the length of an array in a parameter instead of combining it into the return value. Move several routines to be in less public namespace. Correct direct_chunk test to verify that parameters aren't modified on error.
* Switch get/specific/optional VOL callback argument structures to be 'async-friendly'. Also other minor cleanups and bug-fixes.
* Add H5Pset_dataset_io_hyperslab_selection / H5S_PLIST feature, to allow skipping H5Dget_space + H5Sselect_hyperslab for async operation
* Add dynamic optional operations for request objects
* Update dynamic operation test for optional request operations
* Update a comment for an operation argument
* Run trace and format_source scripts
* Committing clang-format changes
* Committing clang-format changes
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
266 lines
13 KiB
C
266 lines
13 KiB
C
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Copyright by The HDF Group. *
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
* All rights reserved. *
|
|
* *
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
* the COPYING file, which can be found at the root of the source code *
|
|
* distribution tree, or in https://www.hdfgroup.org/licenses. *
|
|
* If you do not have access to either file, you may request a copy from *
|
|
* help@hdfgroup.org. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
/*
|
|
* Programmer: Quincey Koziol
|
|
* Monday, Apr 20
|
|
*
|
|
* Purpose: This file contains declarations which are visible only within
|
|
* the H5A package. Source files outside the H5A package should
|
|
* include H5Aprivate.h instead.
|
|
*/
|
|
#if !(defined H5A_FRIEND || defined H5A_MODULE)
|
|
#error "Do not include this file outside the H5A package!"
|
|
#endif
|
|
|
|
#ifndef H5Apkg_H
|
|
#define H5Apkg_H
|
|
|
|
/*
|
|
* Define this to enable debugging.
|
|
*/
|
|
#ifdef NDEBUG
|
|
#undef H5A_DEBUG
|
|
#endif
|
|
|
|
/* Get package's private header */
|
|
#include "H5Aprivate.h"
|
|
|
|
/* Other private headers needed by this file */
|
|
#include "H5B2private.h" /* v2 B-trees */
|
|
#include "H5FLprivate.h" /* Free Lists */
|
|
#include "H5HFprivate.h" /* Fractal heaps */
|
|
#include "H5Oprivate.h" /* Object headers */
|
|
#include "H5Sprivate.h" /* Dataspace */
|
|
#include "H5Tprivate.h" /* Datatype functions */
|
|
|
|
/**************************/
|
|
/* Package Private Macros */
|
|
/**************************/
|
|
|
|
/* This is the initial version, which does not have support for shared datatypes */
|
|
#define H5O_ATTR_VERSION_1 1
|
|
|
|
/* This version allows support for shared datatypes & dataspaces by adding a
|
|
* 'flag' byte indicating when those components are shared. This version
|
|
* also dropped the alignment on all the components.
|
|
*/
|
|
#define H5O_ATTR_VERSION_2 2
|
|
|
|
/* Add support for different character encodings of attribute names */
|
|
#define H5O_ATTR_VERSION_3 3
|
|
|
|
/* The latest version of the format. Look through the 'encode', 'decode'
|
|
* and 'size' message callbacks for places to change when updating this.
|
|
*/
|
|
#define H5O_ATTR_VERSION_LATEST H5O_ATTR_VERSION_3
|
|
|
|
/****************************/
|
|
/* Package Private Typedefs */
|
|
/****************************/
|
|
/* Define the shared attribute structure */
|
|
typedef struct H5A_shared_t {
|
|
uint8_t version; /* Version to encode attribute with */
|
|
|
|
char * name; /* Attribute's name */
|
|
H5T_cset_t encoding; /* Character encoding of attribute name */
|
|
|
|
H5T_t *dt; /* Attribute's datatype */
|
|
size_t dt_size; /* Size of datatype on disk */
|
|
|
|
H5S_t *ds; /* Attribute's dataspace */
|
|
size_t ds_size; /* Size of dataspace on disk */
|
|
|
|
void * data; /* Attribute data (on a temporary basis) */
|
|
size_t data_size; /* Size of data on disk */
|
|
H5O_msg_crt_idx_t crt_idx; /* Attribute's creation index in the object header */
|
|
unsigned nrefs; /* Ref count for times this object is referred */
|
|
} H5A_shared_t;
|
|
|
|
/* Define the main attribute structure */
|
|
struct H5A_t {
|
|
H5O_shared_t sh_loc; /* Shared message info (must be first) */
|
|
H5O_loc_t oloc; /* Object location for object attribute is on */
|
|
hbool_t obj_opened; /* Object header entry opened? */
|
|
H5G_name_t path; /* Group hierarchy path */
|
|
H5A_shared_t *shared; /* Shared attribute information */
|
|
};
|
|
|
|
/* Typedefs for "dense" attribute storage */
|
|
/* (fractal heap & v2 B-tree info) */
|
|
|
|
/* Typedef for native 'name' field index records in the v2 B-tree */
|
|
/* (Keep 'id' field first so generic record handling in callbacks works) */
|
|
typedef struct H5A_dense_bt2_name_rec_t {
|
|
H5O_fheap_id_t id; /* Heap ID for attribute */
|
|
uint8_t flags; /* Object header message flags for attribute */
|
|
H5O_msg_crt_idx_t corder; /* 'creation order' field value */
|
|
uint32_t hash; /* Hash of 'name' field value */
|
|
} H5A_dense_bt2_name_rec_t;
|
|
|
|
/* Typedef for native 'creation order' field index records in the v2 B-tree */
|
|
/* (Keep 'id' field first so generic record handling in callbacks works) */
|
|
typedef struct H5A_dense_bt2_corder_rec_t {
|
|
H5O_fheap_id_t id; /* Heap ID for attribute */
|
|
uint8_t flags; /* Object header message flags for attribute */
|
|
H5O_msg_crt_idx_t corder; /* 'creation order' field value */
|
|
} H5A_dense_bt2_corder_rec_t;
|
|
|
|
/* Define the 'found' callback function pointer for matching an attribute record in a v2 B-tree */
|
|
typedef herr_t (*H5A_bt2_found_t)(const H5A_t *attr, hbool_t *took_ownership, void *op_data);
|
|
|
|
/*
|
|
* Common data exchange structure for dense attribute storage. This structure
|
|
* is passed through the v2 B-tree layer to the methods for the objects
|
|
* to which the v2 B-tree points.
|
|
*/
|
|
typedef struct H5A_bt2_ud_common_t {
|
|
/* downward */
|
|
H5F_t * f; /* Pointer to file that fractal heap is in */
|
|
H5HF_t * fheap; /* Fractal heap handle */
|
|
H5HF_t * shared_fheap; /* Fractal heap handle for shared messages */
|
|
const char * name; /* Name of attribute to compare */
|
|
uint32_t name_hash; /* Hash of name of attribute to compare */
|
|
uint8_t flags; /* Flags for attribute storage location */
|
|
H5O_msg_crt_idx_t corder; /* Creation order value of attribute to compare */
|
|
H5A_bt2_found_t found_op; /* Callback when correct attribute is found */
|
|
void * found_op_data; /* Callback data when correct attribute is found */
|
|
} H5A_bt2_ud_common_t;
|
|
|
|
/*
|
|
* Data exchange structure for dense attribute storage. This structure is
|
|
* passed through the v2 B-tree layer when inserting attributes.
|
|
*/
|
|
typedef struct H5A_bt2_ud_ins_t {
|
|
/* downward */
|
|
H5A_bt2_ud_common_t common; /* Common info for B-tree user data (must be first) */
|
|
H5O_fheap_id_t id; /* Heap ID of attribute to insert */
|
|
} H5A_bt2_ud_ins_t;
|
|
|
|
/* Data structure to hold table of attributes for an object */
|
|
typedef struct {
|
|
size_t nattrs; /* # of attributes in table */
|
|
H5A_t **attrs; /* Pointer to array of attribute pointers */
|
|
} H5A_attr_table_t;
|
|
|
|
/*****************************/
|
|
/* Package Private Variables */
|
|
/*****************************/
|
|
|
|
/* Declare extern the free list for H5A_t's */
|
|
H5FL_EXTERN(H5A_t);
|
|
|
|
/* Declare the external free lists for H5A_shared_t's */
|
|
H5FL_EXTERN(H5A_shared_t);
|
|
|
|
/* Declare extern a free list to manage blocks of type conversion data */
|
|
H5FL_BLK_EXTERN(attr_buf);
|
|
|
|
/* The v2 B-tree class for indexing 'name' field on attributes */
|
|
H5_DLLVAR const H5B2_class_t H5A_BT2_NAME[1];
|
|
|
|
/* The v2 B-tree class for indexing 'creation order' field on attributes */
|
|
H5_DLLVAR const H5B2_class_t H5A_BT2_CORDER[1];
|
|
|
|
/******************************/
|
|
/* Package Private Prototypes */
|
|
/******************************/
|
|
|
|
/* Function prototypes for H5A package scope */
|
|
H5_DLL H5A_t *H5A__create(const H5G_loc_t *loc, const char *attr_name, const H5T_t *type, const H5S_t *space,
|
|
hid_t acpl_id);
|
|
H5_DLL H5A_t *H5A__create_by_name(const H5G_loc_t *loc, const char *obj_name, const char *attr_name,
|
|
const H5T_t *type, const H5S_t *space, hid_t acpl_id);
|
|
H5_DLL H5A_t *H5A__open(const H5G_loc_t *loc, const char *attr_name);
|
|
H5_DLL H5A_t *H5A__open_by_name(const H5G_loc_t *loc, const char *obj_name, const char *attr_name);
|
|
H5_DLL H5A_t *H5A__open_by_idx(const H5G_loc_t *loc, const char *obj_name, H5_index_t idx_type,
|
|
H5_iter_order_t order, hsize_t n);
|
|
H5_DLL H5A_t *H5A__copy(H5A_t *new_attr, const H5A_t *old_attr);
|
|
H5_DLL hid_t H5A__get_type(H5A_t *attr);
|
|
H5_DLL herr_t H5A__get_info(const H5A_t *attr, H5A_info_t *ainfo);
|
|
H5_DLL hid_t H5A__get_create_plist(H5A_t *attr);
|
|
H5_DLL herr_t H5A__shared_free(H5A_t *attr);
|
|
H5_DLL herr_t H5A__close(H5A_t *attr);
|
|
H5_DLL htri_t H5A__get_ainfo(H5F_t *f, H5O_t *oh, H5O_ainfo_t *ainfo);
|
|
H5_DLL herr_t H5A__set_version(const H5F_t *f, H5A_t *attr);
|
|
H5_DLL herr_t H5A__rename_by_name(H5G_loc_t loc, const char *obj_name, const char *old_attr_name,
|
|
const char *new_attr_name);
|
|
H5_DLL herr_t H5A__iterate(const H5G_loc_t *loc, const char *obj_name, H5_index_t idx_type,
|
|
H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data);
|
|
#ifndef H5_NO_DEPRECATED_SYMBOLS
|
|
H5_DLL herr_t H5A__iterate_old(hid_t loc_id, unsigned *attr_num, H5A_operator1_t op, void *op_data);
|
|
#endif /* H5_NO_DEPRECATED_SYMBOLS */
|
|
H5_DLL herr_t H5A__delete_by_name(const H5G_loc_t *loc, const char *obj_name, const char *attr_name);
|
|
H5_DLL herr_t H5A__delete_by_idx(const H5G_loc_t *loc, const char *obj_name, H5_index_t idx_type,
|
|
H5_iter_order_t order, hsize_t n);
|
|
H5_DLL herr_t H5A__exists_by_name(H5G_loc_t loc, const char *obj_name, const char *attr_name,
|
|
hbool_t *attr_exists);
|
|
H5_DLL herr_t H5A__write(H5A_t *attr, const H5T_t *mem_type, const void *buf);
|
|
H5_DLL herr_t H5A__read(const H5A_t *attr, const H5T_t *mem_type, void *buf);
|
|
H5_DLL herr_t H5A__get_name(H5A_t *attr, size_t buf_size, char *buf, size_t *attr_name_len);
|
|
|
|
/* Attribute "dense" storage routines */
|
|
H5_DLL herr_t H5A__dense_create(H5F_t *f, H5O_ainfo_t *ainfo);
|
|
H5_DLL H5A_t *H5A__dense_open(H5F_t *f, const H5O_ainfo_t *ainfo, const char *name);
|
|
H5_DLL herr_t H5A__dense_insert(H5F_t *f, const H5O_ainfo_t *ainfo, H5A_t *attr);
|
|
H5_DLL herr_t H5A__dense_write(H5F_t *f, const H5O_ainfo_t *ainfo, H5A_t *attr);
|
|
H5_DLL herr_t H5A__dense_rename(H5F_t *f, const H5O_ainfo_t *ainfo, const char *old_name,
|
|
const char *new_name);
|
|
H5_DLL herr_t H5A__dense_iterate(H5F_t *f, hid_t loc_id, const H5O_ainfo_t *ainfo, H5_index_t idx_type,
|
|
H5_iter_order_t order, hsize_t skip, hsize_t *last_attr,
|
|
const H5A_attr_iter_op_t *attr_op, void *op_data);
|
|
H5_DLL herr_t H5A__dense_remove(H5F_t *f, const H5O_ainfo_t *ainfo, const char *name);
|
|
H5_DLL herr_t H5A__dense_remove_by_idx(H5F_t *f, const H5O_ainfo_t *ainfo, H5_index_t idx_type,
|
|
H5_iter_order_t order, hsize_t n);
|
|
H5_DLL herr_t H5A__dense_exists(H5F_t *f, const H5O_ainfo_t *ainfo, const char *name, hbool_t *attr_exists);
|
|
H5_DLL herr_t H5A__dense_delete(H5F_t *f, H5O_ainfo_t *ainfo);
|
|
|
|
/* Attribute table operations */
|
|
H5_DLL herr_t H5A__compact_build_table(H5F_t *f, H5O_t *oh, H5_index_t idx_type, H5_iter_order_t order,
|
|
H5A_attr_table_t *atable);
|
|
H5_DLL herr_t H5A__dense_build_table(H5F_t *f, const H5O_ainfo_t *ainfo, H5_index_t idx_type,
|
|
H5_iter_order_t order, H5A_attr_table_t *atable);
|
|
H5_DLL herr_t H5A__attr_iterate_table(const H5A_attr_table_t *atable, hsize_t skip, hsize_t *last_attr,
|
|
hid_t loc_id, const H5A_attr_iter_op_t *attr_op, void *op_data);
|
|
H5_DLL herr_t H5A__attr_release_table(H5A_attr_table_t *atable);
|
|
|
|
/* Attribute operations */
|
|
H5_DLL herr_t H5O__attr_create(const H5O_loc_t *loc, H5A_t *attr);
|
|
H5_DLL H5A_t *H5O__attr_open_by_name(const H5O_loc_t *loc, const char *name);
|
|
H5_DLL H5A_t *H5O__attr_open_by_idx(const H5O_loc_t *loc, H5_index_t idx_type, H5_iter_order_t order,
|
|
hsize_t n);
|
|
H5_DLL herr_t H5O__attr_update_shared(H5F_t *f, H5O_t *oh, H5A_t *attr, H5O_shared_t *sh_mesg);
|
|
H5_DLL herr_t H5O__attr_write(const H5O_loc_t *loc, H5A_t *attr);
|
|
H5_DLL herr_t H5O__attr_rename(const H5O_loc_t *loc, const char *old_name, const char *new_name);
|
|
H5_DLL herr_t H5O__attr_iterate(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t skip,
|
|
hsize_t *last_attr, const H5A_attr_iter_op_t *op, void *op_data);
|
|
H5_DLL herr_t H5O__attr_remove(const H5O_loc_t *loc, const char *name);
|
|
H5_DLL herr_t H5O__attr_remove_by_idx(const H5O_loc_t *loc, H5_index_t idx_type, H5_iter_order_t order,
|
|
hsize_t n);
|
|
H5_DLL herr_t H5O__attr_exists(const H5O_loc_t *loc, const char *name, hbool_t *attr_exists);
|
|
H5_DLL H5A_t *H5A__attr_copy_file(const H5A_t *attr_src, H5F_t *file_dst, hbool_t *recompute_size,
|
|
H5O_copy_t *cpy_info);
|
|
H5_DLL herr_t H5A__attr_post_copy_file(const H5O_loc_t *src_oloc, const H5A_t *mesg_src, H5O_loc_t *dst_oloc,
|
|
const H5A_t *mesg_dst, H5O_copy_t *cpy_info);
|
|
H5_DLL herr_t H5A__dense_post_copy_file_all(const H5O_loc_t *src_oloc, const H5O_ainfo_t *ainfo_src,
|
|
H5O_loc_t *dst_oloc, H5O_ainfo_t *ainfo_dst,
|
|
H5O_copy_t *cpy_info);
|
|
|
|
/* Testing functions */
|
|
#ifdef H5A_TESTING
|
|
H5_DLL htri_t H5A__is_shared_test(hid_t aid);
|
|
H5_DLL herr_t H5A__get_shared_rc_test(hid_t attr_id, hsize_t *ref_count);
|
|
#endif /* H5A_TESTING */
|
|
|
|
#endif /* H5Apkg_H */
|